/* ===== SmartAxis Color Palette - Professional Tech Theme ===== */
:root {
    /* Primary Colors - Enhanced Professional Green Palette */
    --primary-green: #00C853;
    --primary-green-dark: #00A344;
    --primary-green-light: #5EFC82;
    --dark-green: #00791E;
    --gradient-green-start: #00C853;
    --gradient-green-mid: #00E676;
    --gradient-green-end: #69F0AE;
    --gradient-green-vibrant: #B9F6CA;

    /* Background Colors - Deep Professional Gradients */
    --dark-bg: #0a1929;
    --darker-bg: #030B15;
    --darkest-bg: #000509;
    --light-bg: #0d1b2a;
    --lighter-bg: #162536;
    --card-bg: rgba(16, 30, 46, 0.7);
    --card-hover: rgba(16, 30, 46, 0.95);

    /* Text Colors - Professional Hierarchy */
    --text-primary: #ECEFF4;
    --text-secondary: #8FBCBB;
    --text-tertiary: #4C566A;
    --text-light: #5E81AC;
    --text-dark: #F8FAFC;
    --text-muted: #677489;

    /* Accent Colors */
    --accent-glow: rgba(0, 200, 83, 0.3);
    --accent-glow-strong: rgba(0, 200, 83, 0.5);
    --accent-glow-subtle: rgba(0, 200, 83, 0.15);

    /* Border Colors */
    --border-color: rgba(0, 200, 83, 0.18);
    --border-color-hover: rgba(0, 200, 83, 0.5);
    --border-color-focus: rgba(0, 200, 83, 0.7);
    --tech-border: rgba(0, 200, 83, 0.22);

    /* Gradient Overlays */
    --gradient-overlay: linear-gradient(135deg, #0a1929 0%, #162536 50%, #0a1929 100%);
    --gradient-radial: radial-gradient(circle at 50% 50%, rgba(0, 200, 83, 0.15) 0%, transparent 70%);
    --gradient-hero: linear-gradient(135deg, #030B15 0%, #0d1b2a 50%, #162536 100%);

    /* Shadow System */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 200, 83, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(0, 200, 83, 0.5);

    /* Animation timing - Enhanced for smooth interactions */
    --transition-fast: 0.15s;
    --transition-base: 0.3s;
    --transition-slow: 0.5s;
    --transition-slower: 0.8s;
    --transition-slowest: 1.2s;

    /* Easing functions - Professional motion curves */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gradient-green-start), var(--gradient-green-end));
    border-radius: 6px;
    border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gradient-green-end), var(--gradient-green-vibrant));
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(76, 175, 80, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambient-glow 15s ease-in-out infinite;
}

@keyframes ambient-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Navigation Header ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(3, 11, 21, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid rgba(0, 200, 83, 0.12);
    z-index: 1000;
    padding: 0;
    transition: all var(--transition-base) var(--ease-smooth);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 200, 83, 0.08),
        inset 0 -1px 0 rgba(0, 200, 83, 0.08);
}

.main-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 200, 83, 0.4) 20%,
        rgba(0, 230, 118, 0.6) 50%,
        rgba(0, 200, 83, 0.4) 80%,
        transparent 100%);
    opacity: 1;
    animation: header-glow 6s ease-in-out infinite;
    filter: blur(0.5px);
}

.main-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 200, 83, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 230, 118, 0.03) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
    animation: header-ambient 12s ease-in-out infinite;
}

@keyframes header-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.02);
    }
}

@keyframes header-ambient {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-base) var(--ease-smooth);
}

.header-logo:hover {
    transform: translateY(-2px);
}

.header-logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle at center, rgba(0, 200, 83, 0.15) 0%, transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity var(--transition-base) ease;
    pointer-events: none;
}

.header-logo:hover::before {
    opacity: 1;
}

.header-logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 200, 83, 0.3));
    transition: all var(--transition-base) ease;
}

.header-logo:hover .header-logo-img {
    filter: drop-shadow(0 6px 20px rgba(0, 200, 83, 0.5));
    transform: scale(1.05);
}

.header-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg,
        var(--primary-green) 0%,
        var(--gradient-green-mid) 50%,
        var(--gradient-green-end) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    letter-spacing: -0.03em;
    position: relative;
}

.header-logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--gradient-green-end));
    transform: scaleX(0);
    transition: transform var(--transition-base) var(--ease-out-expo);
    border-radius: 2px;
}

.header-logo:hover .header-logo-text::after {
    transform: scaleX(1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base) var(--ease-smooth);
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: -0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 200, 83, 0.08);
    border-radius: 8px;
    opacity: 0;
    transition: opacity var(--transition-base) ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--gradient-green-end));
    transform: scaleX(0);
    transition: transform var(--transition-base) var(--ease-out-expo);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher-header {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu {
    display: none;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-nav-link:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-green);
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .header-logo-img {
        height: 32px;
    }
    
    .header-logo-text {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding-top: 80px;
    }
}

/* ===== Language Switcher (Top) ===== */
.language-switcher-top {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.lang-dropdown-btn {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lang-dropdown-btn:hover {
    border-color: var(--primary-green);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    overflow: hidden;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-dropdown-item {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.05);
}

.lang-dropdown-item:last-child {
    border-bottom: none;
}

.lang-dropdown-item:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--text-primary);
    padding-left: 25px;
}

.lang-dropdown-item.active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary-green);
    font-weight: 600;
    border-left: 3px solid var(--primary-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 10vh 5vw 8vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(0, 200, 83, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(0, 230, 118, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 70%, rgba(105, 240, 174, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 200, 83, 0.08) 0%, transparent 40%);
    opacity: 1;
    animation: hero-ambient-rotate 30s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 200, 83, 0.015) 3px, rgba(0, 200, 83, 0.015) 6px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 200, 83, 0.015) 3px, rgba(0, 200, 83, 0.015) 6px);
    opacity: 0.5;
    pointer-events: none;
}

@keyframes hero-ambient-rotate {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.7;
        transform: scale(1.2) rotate(120deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(1.1) rotate(240deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(76, 175, 80, 0.03) 40px, rgba(76, 175, 80, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(76, 175, 80, 0.03) 40px, rgba(76, 175, 80, 0.03) 41px);
    opacity: 0.6;
    animation: grid-shimmer 15s linear infinite;
}

@keyframes grid-shimmer {
    0% { transform: translate(0, 0); opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { transform: translate(40px, 40px); opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 90vw;
    width: 100%;
    padding: 2vh 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    margin-bottom: 0.25rem;
}

.hero-logo {
    max-width: min(50vw, 600px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px var(--accent-glow));
    animation: float 6s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-green-start) 0%, var(--gradient-green-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    max-width: min(80vw, 700px);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 2rem;
}

/* Medium screens: Allow wrapping if needed */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-cta {
        flex-wrap: wrap;
        gap: 1.25rem;
        padding: 0 40px;
    }

    .btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

/* Small screens: Stack buttons vertically */
@media (max-width: 640px) {
    .hero-cta {
        flex-wrap: wrap;
        gap: 1rem;
    }
}


/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-base) var(--ease-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
    overflow: hidden;
    z-index: 1;
    min-width: 200px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow) var(--ease-smooth), height var(--transition-slow) var(--ease-smooth);
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--gradient-green-mid) 50%, var(--gradient-green-end) 100%);
    background-size: 200% 100%;
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 200, 83, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 200, 83, 0.5),
        0 0 80px rgba(0, 200, 83, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.3);
    background-position: 100% 50%;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--gradient-green-mid));
    transition: left 0.5s var(--ease-out-expo);
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: white;
    border-color: var(--gradient-green-mid);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 200, 83, 0.4),
        0 0 60px rgba(0, 200, 83, 0.2);
}

.btn-outline:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-green-start), var(--gradient-green-end));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== About Section ===== */
.about-section {
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    animation: scan-line 8s linear infinite;
}

@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px) saturate(180%);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.6s var(--ease-out-expo);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-gradient 12s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-card:hover::before {
    opacity: 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-green), var(--gradient-green-mid));
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.stat-card:hover::after {
    opacity: 0;
}

.stat-card:hover {
    transform: translateY(-16px) scale(1.05);
    border-color: var(--border-color-hover);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--card-hover);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: none;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all var(--transition-slow) var(--ease-out-back);
    display: inline-block;
    color: var(--primary-green);
    line-height: 1;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    vertical-align: -.125em;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end), var(--gradient-green-vibrant));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: gradient-shift 3s ease infinite;
    transition: all var(--transition-base) ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}


.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Services Section ===== */
.services-section {
    background: linear-gradient(180deg, var(--darker-bg) 0%, rgba(5, 15, 25, 1) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 200, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 230, 118, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(15, 25, 35, 0.6);
    border: 2px solid rgba(0, 200, 83, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--service-color),
        transparent
    );
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        transparent 30%,
        var(--service-color) 50%,
        transparent 70%
    );
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    border-color: var(--service-color);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px var(--service-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(15, 25, 35, 0.8);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 0.15;
}

.service-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px var(--service-color));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    color: var(--service-color);
    line-height: 1;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    vertical-align: -.125em;
}

.service-card:hover .service-icon {
    transform: scale(1.2) translateY(-10px);
    filter: drop-shadow(0 8px 20px var(--service-color));
}

.service-icon-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--service-color) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(15px);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.service-card:hover .service-icon-glow {
    opacity: 0.6;
    transform: scale(1.4);
    animation: none;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--service-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
    position: relative;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--service-color), transparent);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-title {
    background: linear-gradient(135deg, var(--service-color), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.service-card:hover .service-title::after {
    transform: translateX(-50%) scaleX(1);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.95rem;
    transition: color 0.4s ease;
}

.service-card:hover .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.85;
}

.service-feature:last-child {
    border-bottom: none;
}

.service-card:hover .service-feature {
    padding-left: 8px;
    border-color: rgba(0, 200, 83, 0.3);
    opacity: 1;
}

.service-card:hover .service-feature:nth-child(1) {
    transition-delay: 0.05s;
}

.service-card:hover .service-feature:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:hover .service-feature:nth-child(3) {
    transition-delay: 0.15s;
}

.service-card:hover .service-feature:nth-child(4) {
    transition-delay: 0.2s;
}

.service-card:hover .service-feature:nth-child(5) {
    transition-delay: 0.25s;
}

.feature-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--service-color);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px var(--service-color);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
}

.service-card:hover .feature-check {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 4px 16px var(--service-color), 0 0 20px var(--service-color);
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover .feature-text {
    color: var(--text-primary);
}

/* ===== Technologies Section ===== */
.technologies-section {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.technologies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(76, 175, 80, 0.03) 2px, rgba(76, 175, 80, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(76, 175, 80, 0.03) 2px, rgba(76, 175, 80, 0.03) 4px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: grid-flow 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.technologies-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-tech 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-tech {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.1; }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.tech-category {
    background: var(--card-bg);
    backdrop-filter: blur(15px) saturate(150%);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.15), transparent);
    transition: left 0.7s var(--ease-out-expo);
    pointer-events: none;
}

.tech-category:hover::before {
    left: 100%;
}

.tech-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-green),
        var(--gradient-green-mid),
        var(--gradient-green-end),
        var(--gradient-green-vibrant));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
    animation: gradient-flow 3s ease infinite;
}

.tech-category:hover::after {
    transform: scaleX(1);
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.tech-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px var(--primary-green));
    animation: icon-float-enhanced 4s ease-in-out infinite;
    transition: all 0.4s var(--ease-out-expo);
    color: var(--primary-green);
    display: inline-block;
    line-height: 1;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    vertical-align: -.125em;
}

@keyframes icon-float-enhanced {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(5deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-5deg);
    }
}

.tech-category:hover .tech-icon {
    filter: drop-shadow(0 0 25px var(--primary-green));
    transform: scale(1.15) rotateY(360deg);
}

.tech-category:hover {
    border-color: var(--primary-green);
    box-shadow:
        0 12px 40px rgba(0, 200, 83, 0.35),
        0 0 70px rgba(0, 200, 83, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-12px) scale(1.02);
}

.tech-category-title {
    font-size: 1.15rem;
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid var(--tech-border);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

/* ===== Team Section ===== */
.team-section {
    background: var(--light-bg);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px) saturate(150%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    transform-style: preserve-3d;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-green),
        var(--gradient-green-mid),
        var(--gradient-green-end),
        var(--primary-green));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
    animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.team-card:hover::after {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow:
        0 16px 48px rgba(0, 200, 83, 0.3),
        0 0 60px rgba(0, 200, 83, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.team-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(102, 187, 106, 0.15));
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-card:hover .team-image-wrapper {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(102, 187, 106, 0.25));
}

.team-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.08);
}

.team-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--primary-green);
    opacity: 0.5;
}

.team-info {
    padding: 30px;
}

.team-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.team-card:hover .team-name {
    color: var(--text-dark);
}

.team-title {
    font-size: 1rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-card:hover .team-title {
    color: var(--gradient-green-end);
}

.team-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.08);
    border-color: var(--primary-green);
}

/* ===== Projects Section ===== */
.projects-section {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(76, 175, 80, 0.03) 30%, rgba(76, 175, 80, 0.03) 70%, transparent 70%);
    background-size: 100px 100px;
    animation: project-pattern 20s linear infinite;
    pointer-events: none;
}

@keyframes project-pattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px) saturate(150%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.6s var(--ease-out-expo);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 200, 83, 0) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 0;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-green), var(--gradient-green-mid), var(--gradient-green-end));
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4);
        filter: blur(0px);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 200, 83, 0);
        filter: blur(2px);
    }
}

.project-card:hover::after {
    opacity: 0;
}

.project-card:hover {
    transform: translateY(-16px) scale(1.03) rotateX(2deg) rotateY(2deg);
    border-color: var(--primary-green);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
    padding-top: 66.67%;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 200, 83, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.25) 100%),
        linear-gradient(135deg, rgba(60, 75, 90, 1) 0%, rgba(45, 60, 75, 1) 100%);
    overflow: hidden;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
        rgba(0, 200, 83, 0.3),
        rgba(0, 230, 118, 0.5),
        rgba(0, 200, 83, 0.3)
    ) 1;
    transition: border-image 0.4s ease;
}

.project-card:hover .project-image {
    border-image: linear-gradient(90deg,
        rgba(0, 200, 83, 0.6),
        rgba(0, 230, 118, 0.8),
        rgba(0, 200, 83, 0.6)
    ) 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 200, 83, 0.03) 2px, rgba(0, 200, 83, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 200, 83, 0.03) 2px, rgba(0, 200, 83, 0.03) 4px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: grid-pulse 3s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.project-image::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .project-image::after {
    opacity: 1;
    animation: scan-light 2s ease-in-out infinite;
}

@keyframes scan-light {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(45deg);
    }
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease, filter 0.3s ease;
    z-index: 1;
    padding: 30px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3))
            drop-shadow(0 0 50px rgba(255, 255, 255, 0.15))
            drop-shadow(0 0 80px rgba(255, 255, 255, 0.08));
}

.project-card:hover .project-img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.12))
            brightness(1.05);
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--primary-green);
    opacity: 0.3;
}

.project-country-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(76, 175, 80, 0.2);
    transition: all 0.4s ease;
    z-index: 10;
    cursor: help;
    overflow: hidden;
}

.project-country-badge::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--gradient-green-end));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.project-card:hover .project-country-badge::before {
    opacity: 1;
}

.project-card:hover .project-country-badge {
    transform: scale(1.15) rotate(10deg);
    border-color: var(--primary-green);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.project-country-badge .fi {
    font-size: 2rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.project-card:hover .project-country-badge .fi {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid var(--primary-green);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-green);
    color: white;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light-bg);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--tech-border);
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--light-bg);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(76, 175, 80, 0.02) 80px, rgba(76, 175, 80, 0.02) 81px),
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(76, 175, 80, 0.02) 80px, rgba(76, 175, 80, 0.02) 81px);
    opacity: 0.6;
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-green);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    border-color: var(--primary-green);
    transform: translateX(12px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-icon::before {
    opacity: 1;
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-green);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--gradient-green-end), var(--primary-green));
    background-size: 200% 100%;
    animation: gradient-slide 3s ease-in-out infinite;
}

@keyframes gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #1a1a1a !important;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-family: inherit;
    position: relative;
    caret-color: #1a1a1a !important;
}

.form-control:hover {
    border-color: var(--border-color-hover);
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1a1a1a !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow:
        0 0 0 4px rgba(0, 200, 83, 0.15),
        0 0 20px rgba(0, 200, 83, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1) !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #666666 !important;
    transition: color 0.3s ease;
}

.form-control:focus::placeholder {
    color: #999999 !important;
}

.form-control::selection {
    background: rgba(0, 200, 83, 0.3) !important;
    color: #1a1a1a !important;
}

.form-control::-moz-selection {
    background: rgba(0, 200, 83, 0.3) !important;
    color: #1a1a1a !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.alert-error svg {
    color: #dc2626;
}

.validation-message {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 4px;
}

.success-message {
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    color: var(--primary-green);
}

.success-message h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-green);
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.btn-send-again {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out-expo);
    background: var(--primary-green);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-send-again:hover {
    background: #00c853;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px rgba(0, 200, 83, 0.15),
        0 8px 24px rgba(0, 200, 83, 0.3);
}

.btn-send-again svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-send-again:hover svg {
    transform: translateX(4px);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--darker-bg) 0%, #000509 100%);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(0, 200, 83, 0.15);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 200, 83, 0.3) 15%,
        rgba(0, 230, 118, 0.5) 50%,
        rgba(0, 200, 83, 0.3) 85%,
        transparent 100%);
    opacity: 1;
    animation: footer-glow 8s ease-in-out infinite;
    filter: blur(1px);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 200, 83, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 230, 118, 0.04) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(0, 200, 83, 0.02) 100px, rgba(0, 200, 83, 0.02) 101px);
    pointer-events: none;
    opacity: 0.6;
}

@keyframes footer-glow {
    0%, 100% {
        opacity: 0.7;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.02);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 20px rgba(0, 200, 83, 0.4));
    margin-bottom: 12px;
    transition: all var(--transition-base) ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 6px 30px rgba(0, 200, 83, 0.6));
    transform: scale(1.08) rotate(5deg);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--gradient-green-end));
    border-radius: 2px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base) var(--ease-smooth);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 4px 0;
    font-weight: 500;
}

.footer-nav a::before {
    content: '›';
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base) ease;
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-nav a:hover {
    color: var(--primary-green);
    transform: translateX(12px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base) var(--ease-smooth);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 200, 83, 0.08);
    border-radius: 8px;
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link:hover {
    color: var(--primary-green);
    transform: translateX(8px);
}

.social-icon-text {
    display: inline-block;
}

/* Remove old footer language switcher styles */

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 200, 83, 0.2) 25%,
        rgba(0, 200, 83, 0.4) 50%,
        rgba(0, 200, 83, 0.2) 75%,
        transparent 100%);
    margin: 60px 0 40px;
    border-radius: 2px;
    position: relative;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 230, 118, 0.3),
        transparent);
    filter: blur(4px);
    animation: divider-shimmer 4s ease-in-out infinite;
}

@keyframes divider-shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.85;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.footer-legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-base) ease;
    position: relative;
    padding: 4px 8px;
    font-weight: 500;
}

.footer-legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 1px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: transform var(--transition-base) var(--ease-out-expo);
}

.footer-legal-link:hover {
    color: var(--primary-green);
}

.footer-legal-link:hover::after {
    transform: scaleX(1);
}

.separator {
    color: var(--text-secondary);
    opacity: 0.4;
    font-weight: 300;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}


@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.2s both;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.4s both;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */

/* Large Tablets and Small Desktops (1024px - 1280px) */
@media (max-width: 1280px) {
    .header-container {
        padding: 16px 30px;
        gap: 30px;
    }

    .header-nav {
        gap: 30px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    /* Header - Simplify for tablet */
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 12px;
        background: rgba(0, 200, 83, 0.1);
        border-radius: 8px;
        transition: all var(--transition-base) ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 200, 83, 0.2);
        transform: scale(1.05);
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background: var(--primary-green);
    }

    .mobile-menu {
        display: block;
        padding: 24px 20px;
        background: rgba(3, 11, 21, 0.98);
        backdrop-filter: blur(20px);
        border-top: 2px solid rgba(0, 200, 83, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-link {
        padding: 16px 24px;
        font-size: 1.05rem;
        margin-bottom: 8px;
        border-left: 3px solid transparent;
        transition: all var(--transition-base) ease;
    }

    .mobile-nav-link:hover {
        background: rgba(0, 200, 83, 0.15);
        border-left-color: var(--primary-green);
        transform: translateX(8px);
    }

    /* Sections */
    section {
        padding: 70px 0;
    }

    .container {
        padding: 0 30px;
    }

    /* Hero */
    .hero-section {
        padding: 15vh 4vw 12vh;
    }

    .hero-logo {
        max-width: min(60vw, 450px);
    }

    .hero-cta {
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    /* About & Stats */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-card {
        padding: 35px 25px;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    /* Tech Grid */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .tech-category {
        padding: 28px 24px;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact-form-wrapper {
        padding: 35px 28px;
    }

    /* Footer */
    .footer {
        padding: 80px 0 35px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}

/* Large Mobile / Small Tablets (600px - 768px) */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        padding: 14px 20px;
        gap: 16px;
    }

    .header-logo-img {
        height: 36px;
    }

    .header-logo-text {
        font-size: 1.3rem;
    }

    .header-logo::before {
        display: none; /* Remove glow effect on mobile for performance */
    }

    .header-actions {
        gap: 12px;
    }

    /* Mobile Menu */
    .mobile-menu {
        padding: 20px 16px;
    }

    .mobile-nav-link {
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Hero */
    .hero-section {
        min-height: 100svh; /* Use svh for mobile browsers */
        height: auto;
        padding: 100px 5vw 60px;
    }

    .hero-logo {
        max-width: min(75vw, 380px);
    }

    .hero-title {
        margin-bottom: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 2.25rem;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        min-width: unset;
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    /* About & Stats */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 32px 24px;
    }

    .stat-card:hover {
        transform: translateY(-8px) scale(1.02); /* Reduce hover effect on mobile */
    }

    /* Tech Grid */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-category {
        padding: 24px 20px;
    }

    .tech-category:hover {
        transform: translateY(-8px) scale(1.01); /* Reduce hover effect */
    }

    .tech-icon {
        font-size: 2.2rem;
    }

    .tech-category-title {
        font-size: 1.1rem;
    }

    .tech-tag {
        font-size: 0.825rem;
        padding: 7px 14px;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }

    .team-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .team-info {
        padding: 24px 20px;
    }

    .team-name {
        font-size: 1.3rem;
    }

    .team-description {
        font-size: 0.9rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-card:hover {
        transform: translateY(-12px) scale(1.02);
    }

    .project-content {
        padding: 24px 20px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-item {
        padding: 20px 18px;
    }

    .contact-item:hover {
        transform: translateX(8px); /* Reduce movement on mobile */
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .form-control {
        padding: 14px 18px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    textarea.form-control {
        min-height: 140px;
    }

    /* Footer */
    .footer {
        padding: 70px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-logo {
        width: 55px;
        height: 55px;
    }

    .footer-heading {
        font-size: 1.15rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .separator {
        display: none;
    }

    /* Touch-friendly spacing */
    .footer-nav a,
    .footer-social-link {
        min-height: 44px; /* iOS recommended touch target */
        display: flex;
        align-items: center;
    }
}

/* Mobile Devices (480px - 600px) */
@media (max-width: 600px) {
    /* Further refinements for smaller mobile */
    .header-logo-img {
        height: 32px;
    }

    .header-logo-text {
        font-size: 1.15rem;
    }

    .hero-logo {
        max-width: 85vw;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .tech-category-header {
        gap: 12px;
    }

    .tech-icon {
        font-size: 2rem;
    }

    .project-country-badge {
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
    }

    .project-country-badge .fi {
        font-size: 1.6rem;
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Fine-tune for smallest devices */
    html {
        scroll-padding-top: 80px;
    }

    .header-container {
        padding: 12px 16px;
    }

    .header-logo-img {
        height: 28px;
    }

    .header-logo-text {
        font-size: 1.05rem;
    }

    .mobile-menu {
        padding: 16px 12px;
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 90px 4vw 50px;
    }

    .hero-logo {
        max-width: 90vw;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 14px 36px;
        font-size: 0.95rem;
    }

    .about-stats {
        gap: 18px;
    }

    .stat-card {
        padding: 28px 20px;
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .tech-category {
        padding: 20px 16px;
    }

    .tech-category-title {
        font-size: 1.05rem;
    }

    .tech-tags {
        gap: 8px;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .team-grid {
        max-width: 100%;
    }

    .team-info {
        padding: 20px 16px;
    }

    .team-name {
        font-size: 1.2rem;
    }

    .team-title {
        font-size: 0.95rem;
    }

    .team-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .team-social {
        gap: 12px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .project-content {
        padding: 20px 16px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.875rem;
    }

    .project-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
        gap: 16px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control {
        padding: 13px 16px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .footer {
        padding: 60px 0 28px;
    }

    .footer-grid {
        gap: 40px;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .footer-description {
        font-size: 0.95rem;
    }

    .footer-nav,
    .footer-social {
        gap: 14px;
    }

    .footer-nav a,
    .footer-social-link {
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    .footer-divider {
        margin: 50px 0 35px;
    }

    .footer-copyright,
    .footer-legal-link {
        font-size: 0.875rem;
    }

    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra Small Devices (< 375px) */
@media (max-width: 375px) {
    .header-logo-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tech-icon {
        font-size: 1.8rem;
    }
}

/* Landscape Orientation Fixes for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 120px 5vw 80px;
    }

    .hero-logo {
        max-width: 35vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable complex hover effects on touch devices */
    .nav-link:hover::before,
    .header-logo:hover::before {
        opacity: 0;
    }

    /* Make all interactive elements touch-friendly */
    button,
    a,
    .btn,
    .nav-link,
    .mobile-nav-link,
    .footer-nav a,
    .footer-social-link,
    .lang-dropdown-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Simplify transforms on touch */
    .stat-card:hover,
    .tech-category:hover,
    .team-card:hover,
    .project-card:hover {
        transform: none;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-logo-img,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== Blazor Error Boundary ===== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ===== Intersection Observer Classes ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition-base) var(--ease-smooth);
    z-index: 1000;
    box-shadow: 0 4px 20px var(--accent-glow), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: transform var(--transition-base) var(--ease-smooth);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--gradient-green-end), var(--gradient-green-vibrant));
    box-shadow: 0 6px 30px var(--accent-glow-strong), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1);
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
