/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent flashing on initial load - ensure cards are visible immediately */
.about-card,
.service-card,
.project-card,
.partner-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    animation: none !important; /* Prevent any default animations */
    transition: none !important; /* Prevent any transitions that might hide elements */
}

/* Ensure no animations interfere on load */
.about-card *,
.service-card *,
.project-card *,
.partner-card * {
    animation: none !important;
    transition: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-blue: #30419d;
    --light-blue: #3bc2f1;
    --primary-purple: #710dd7;
    --dark-purple: #4a0d8c;
    --gradient-primary: linear-gradient(135deg, #30419d 0%, #3bc2f1 50%, #710dd7 100%);
    --gradient-secondary: linear-gradient(135deg, #710dd7 0%, #30419d 100%);
    --gradient-accent: linear-gradient(135deg, #3bc2f1 0%, #30419d 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #3b82f6 50%, #06b6d4 75%, #7c3aed 100%);
    --gradient-contact: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #475569 100%),
                        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    --perspective: 1000px;
    --transform-origin: center center;
    --hero-color-1: #1e3c72;
    --hero-color-2: #2a5298;
    --hero-color-3: #3b82f6;
    --hero-color-4: #06b6d4;
    --hero-color-5: #7c3aed;
    --contact-color-1: #0f172a;
    --contact-color-2: #1e293b;
    --contact-color-3: #334155;
    --contact-color-4: #475569;
}

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

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-current {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.lang-current::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-selector.open .lang-current::after {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    color: #0f172a;
}

.language-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.lang-option {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 6px;
    margin: 2px;
}

.lang-option:hover {
    background: rgba(59, 130, 246, 0.1);
}

.lang-option.active {
    background: var(--gradient-secondary);
    color: white;
}

.lang-option.active:hover {
    background: var(--gradient-secondary);
}

.lang-code {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 28px;
}

.lang-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo h2 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Parallax Background Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-layer-1 {
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

.parallax-layer-2 {
    background: radial-gradient(circle at 80% 30%, rgba(30, 60, 114, 0.18) 0%, transparent 60%),
                radial-gradient(circle at 20% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 60% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 80%);
}

.parallax-layer-3 {
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
                radial-gradient(circle at 90% 10%, rgba(30, 60, 114, 0.07) 0%, transparent 30%),
                radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.parallax-layer-4 {
    background: radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 30% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: titleReveal .55s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    line-height: 1.6;
    animation: subtitleReveal 0.5s ease-out 0.6s forwards;
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: statsReveal 0.8s ease-out 1.3s forwards;
}

@keyframes statsReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: buttonsReveal 0.8s ease-out 1.8s forwards;
}

@keyframes buttonsReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(48, 65, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 65, 157, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(6, 182, 212, 0.1) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.15),
        0 4px 16px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.element:hover {
    transform: scale(1.1) rotateY(15deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(6, 182, 212, 0.18) 100%);
    box-shadow:
        0 12px 40px rgba(59, 130, 246, 0.25),
        0 6px 20px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
}

.element i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    border-radius: 50%;
}

.element-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
    border-radius: 50%;
}

.element-4 {
    top: 10%;
    right: 10%;
    animation-delay: 4.5s;
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.element-5 {
    bottom: 10%;
    right: 30%;
    animation-delay: 2s;
    border-radius: 50%;
}

.element-6 {
    top: 25%;
    right: 5%;
    animation-delay: 3s;
    border-radius: 50%;
    width: 58px;
    height: 58px;
}



/* Mouse-following 3D effect */
.hero-content {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}




/* Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.5px);
}

.particles-container canvas {
    filter: brightness(1.1) contrast(1.1);
}

/* Contact Section Particles */
.contact-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.2px) brightness(1.0);
}

.contact-particles-container canvas {
    filter: brightness(1.1) contrast(1.3) saturate(1.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="about-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(48,65,157,0.03)"/><circle cx="25" cy="75" r="0.5" fill="rgba(59,194,241,0.02)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23about-pattern)"/></svg>');
    opacity: 0.6;
    z-index: 1;
}

/* About Hero */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.highlight-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2.5rem;
}

.about-metrics {
    display: flex;
    gap: 2rem;
}

.metric {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(48, 65, 157, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Tech Stack */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    max-width: 450px;
}


.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(48, 65, 157, 0.06);
    border: 1px solid rgba(48, 65, 157, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: techStackFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.stack-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(59, 194, 241, 0.15),
        rgba(113, 13, 215, 0.15),
        transparent);
    transition: left 0.6s ease;
}

.stack-item:hover::before {
    left: 100%;
}

.stack-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(48, 65, 157, 0.12),
        0 6px 20px rgba(59, 194, 241, 0.1),
        0 0 20px rgba(113, 13, 215, 0.05);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(59, 194, 241, 0.05) 100%);
    border-color: rgba(59, 194, 241, 0.3);
}

.stack-item i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    margin-bottom: 0.25rem;
}

.stack-item:hover i {
    transform: scale(1.1) translateY(-2px);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(59, 194, 241, 0.3));
}

.stack-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: color 0.3s ease;
}

.stack-item:hover span {
    color: var(--primary-blue);
}

/* Subtle entrance animation */
@keyframes techStackFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stack-item:nth-child(1) { animation-delay: 0.1s; }
.stack-item:nth-child(2) { animation-delay: 0.2s; }
.stack-item:nth-child(3) { animation-delay: 0.3s; }
.stack-item:nth-child(4) { animation-delay: 0.4s; }
.stack-item:nth-child(5) { animation-delay: 0.5s; }
.stack-item:nth-child(6) { animation-delay: 0.6s; }
.stack-item:nth-child(7) { animation-delay: 0.7s; }
.stack-item:nth-child(8) { animation-delay: 0.8s; }
.stack-item:nth-child(9) { animation-delay: 0.9s; }
.stack-item:nth-child(10) { animation-delay: 1.0s; }
.stack-item:nth-child(11) { animation-delay: 1.1s; }
.stack-item:nth-child(12) { animation-delay: 1.2s; }

/* About Story */
.about-story {
    position: relative;
    z-index: 2;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.story-section.reverse {
    direction: rtl;
}

.story-section.reverse .story-content,
.story-section.reverse .story-visual {
    direction: ltr;
}

/* Full Width Section */
.story-section.full-width {
    grid-template-columns: 1fr;
    text-align: center;
    position: relative;
    margin: 4rem 0;
}

.importance-section {
    background: #ffffff;
    padding: 5rem 2rem;
    margin: 4rem 0;
    border-top: 1px solid rgba(48, 65, 157, 0.1);
    border-bottom: 1px solid rgba(48, 65, 157, 0.1);
    position: relative;
}

.importance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.centered-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.value-slideshow {
    position: relative;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slideshow-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, rgba(248, 250, 252, 0.8) 100%);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
}

.slide-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.slide:nth-child(1) .slide-icon {
    background: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(48, 65, 157, 0.4);
}

.slide:nth-child(2) .slide-icon {
    background: var(--light-blue);
    box-shadow: 0 8px 24px rgba(59, 194, 241, 0.4);
}

.slide:nth-child(3) .slide-icon {
    background: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(113, 13, 215, 0.4);
}

.slide-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    max-width: 500px;
    margin: 0;
}

.slideshow-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slide-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(48, 65, 157, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--light-blue);
}

.card-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.story-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.importance-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-align: center;
    position: relative;
}

.importance-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1.5rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Value Props */
.value-props {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.value-prop {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.prop-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.prop-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.prop-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Achievement Badges */
.story-visual .achievement-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(48, 65, 157, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.achievement-badge:hover {
    transform: translateY(-2px);
}

.achievement-badge i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.achievement-badge span {
    font-weight: 600;
    color: #555;
}

/* Company Metrics */
.company-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(48, 65, 157, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.metric-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(48, 65, 157, 0.15);
    border-color: rgba(59, 194, 241, 0.3);
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Company Legal Info */
.company-legal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(48, 65, 157, 0.1);
    position: relative;
    z-index: 2;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.legal-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.legal-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.legal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.legal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.legal-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.legal-value {
    color: #1a1a1a;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-list li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.project-category {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(48, 65, 157, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-content p {
    color: #666;
    line-height: 1.6;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.partner-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.partner-logo svg {
    max-width: 160px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.partner-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--gradient-contact);
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="testimonial-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(48,65,157,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23testimonial-pattern)"/></svg>');
    opacity: 0.5;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(48, 65, 157, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(48, 65, 157, 0.1);
    font-family: 'Georgia', serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: #0077b5;
    transform: translateY(-2px);
}

.social-links a:last-child {
    margin-right: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* Mobile Spacing Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
    }

    .nav-toggle span {
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .language-selector {
        display: none;
    }

    .logo-img {
        height: 40px;
        max-width: 160px;
    }

    .nav-menu.active .language-selector {
        display: block;
        margin-top: 1rem;
        margin-left: 0;
        width: 100%;
        max-width: 280px;
    }

    .nav-menu.active .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        margin-top: 0.5rem;
        width: 100%;
        color: #e2e8f0;
    }

    .nav-menu.active .lang-option {
        min-height: 48px;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 1rem;
    }

    .nav-menu.active .lang-option:hover {
        background: rgba(59, 130, 246, 0.2);
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        width: 100%;
        max-width: 280px;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .nav-menu .nav-link:active::before {
        width: 100%;
        height: 100%;
    }

    .nav-menu .nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        transform: translateY(-2px);
    }

    .nav-menu .nav-link.active {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
    }

    .hero {
        padding: 5rem 0 3rem;
        min-height: calc(100vh - 70px); /* Account for mobile navbar */
        padding-top: 5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Typography Optimization */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    p {
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        min-width: auto;
        padding: 1rem;
        text-align: center;
    }

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

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

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 52px;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1.25rem 2.5rem;
        touch-action: manipulation; /* Prevents double-tap zoom on mobile */
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }

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

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

    /* Project cards touch targets */
    .project-card {
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .project-card:active {
        transform: scale(0.98);
    }

    /* Service cards touch targets */
    .service-card {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    /* Footer links touch targets */
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }

    /* Social links touch targets */
    .social-links a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .floating-elements {
        width: 180px;
        height: 180px;
        opacity: 0.7;
        pointer-events: none; /* Prevents interaction issues on mobile */
    }

    .element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    .element:hover {
        opacity: 1;
    }

    /* Mobile Performance Optimizations */
    @media (max-width: 768px) {
        /* Reduce animations on mobile for better performance */
        .floating-elements {
            animation-duration: 20s; /* Slower animations on mobile */
        }

        .element {
            animation-duration: 15s;
        }

        /* Reduce particle density on mobile */
        #particles-js {
            opacity: 0.4;
        }

        /* Disable heavy backdrop filters on older mobile devices */
        .nav-menu {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            background: rgba(10, 25, 47, 0.95);
        }

        /* Optimize gradients for mobile */
        .hero {
            background-size: 200% 200%;
            animation-duration: 20s;
        }

        .contact {
            background-size: 200% 200%;
            animation-duration: 25s;
        }

        /* Reduce shadow complexity on mobile */
        .navbar.scrolled {
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        /* Optimize transforms for mobile GPU */
        .btn:hover {
            transform: none; /* Disable hover transforms on touch devices */
        }

        .nav-link:hover {
            transform: none;
        }
    }

    /* Respect user's motion preferences */
    @media (prefers-reduced-motion: reduce) {
        .floating-elements,
        .hero,
        .contact,
        .btn::before,
        .nav-toggle span,
        .element {
            animation: none !important;
            transition: none !important;
        }

        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Optimize for low-power mode */
    @media (prefers-reduced-motion: reduce) and (max-width: 768px) {
        #particles-js {
            display: none;
        }

        .floating-elements {
            display: none;
        }
    }

    .section-header h2 {
        font-size: 1.8rem;
        letter-spacing: -0.01em;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .about-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .about-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-section {
        padding: 4rem 0;
    }

    .about-metrics {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }

    .metric {
        padding: 1.5rem 1rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    /* Services spacing */
    .services-section {
        padding: 4rem 0;
    }

    .services-grid {
        gap: 2rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    /* Projects spacing */
    .projects-section {
        padding: 4rem 0;
    }

    .projects-grid {
        gap: 2rem;
        margin-top: 2rem;
    }

    .project-card {
        margin-bottom: 2rem;
        padding: 0;
    }

    .project-content {
        padding: 2rem 1.5rem;
    }

    /* Contact spacing */
    .contact-section {
        padding: 4rem 0;
    }

    .contact-grid {
        gap: 3rem;
        margin-top: 2rem;
    }

    .contact-info {
        padding: 0 1rem;
    }

    .metric-number {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .metric-label {
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* Services Typography */
    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .service-features {
        font-size: 0.9rem;
    }

    /* Projects Typography */
    .project-card {
        margin-bottom: 2rem;
    }

    .project-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .project-category {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Contact Typography */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
        width: 100%;
        min-height: 48px;
    }

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

    /* Form validation and mobile enhancements */
    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .form-input:invalid,
    .form-textarea:invalid {
        border-color: #ef4444;
    }

    .form-input:invalid:focus,
    .form-textarea:invalid:focus {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

    .form-input:valid,
    .form-textarea:valid {
        border-color: #10b981;
    }

    .form-input:-webkit-autofill,
    .form-textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px rgba(59, 130, 246, 0.05) inset;
        -webkit-text-fill-color: #fff;
        transition: background-color 5000s ease-in-out 0s;
    }

    /* Mobile form enhancements */
    .form-group {
        position: relative;
    }

    .form-input,
    .form-textarea {
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #fff;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: rgba(255, 255, 255, 0.6);
        opacity: 1;
    }

    /* Button loading state */
    .btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .btn-loading {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

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

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        max-width: 320px;
    }

    .story-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .story-section.reverse {
        direction: ltr;
    }

    .importance-section {
        padding: 3rem 1rem;
        margin: 2rem 0;
    }

    .importance-title {
        font-size: 2rem;
    }

    .value-slideshow {
        margin-top: 2rem;
    }

    .slideshow-container {
        height: 350px;
    }

    .slide-content {
        padding: 2rem 1.5rem;
    }

    .slide-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .slide-content h4 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .slideshow-nav {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .legal-details {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .services-grid,
    .projects-grid,
    .partners-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .about-card,
    .service-card,
    .partner-card {
        padding: 1.5rem;
    }

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

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

    .project-content {
        padding: 1.5rem;
    }

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

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

    .contact-form {
        padding: 1.5rem;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
        padding: 0.875rem;
    }

    .btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        min-height: 50px;
    }

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.75rem;
    }

    .tech-item {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity; /* Optimize for GPU */
}

/* Ensure elements start visible to prevent flashing */
.about-card,
.service-card,
.project-card,
.partner-card {
    opacity: 1;
    transform: translateY(0);
    transition: none; /* Disable transitions initially */
    will-change: auto; /* Reset GPU optimization */
}

/* Only apply animation when fade-in-up class is added */
.about-card.fade-in-up,
.service-card.fade-in-up,
.project-card.fade-in-up,
.partner-card.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity; /* Optimize for GPU during animation */
}

/* After animation completes, reset will-change */
.about-card.fade-in-up.completed,
.service-card.fade-in-up.completed,
.project-card.fade-in-up.completed,
.partner-card.fade-in-up.completed {
    will-change: auto;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Animated Gradient Backgrounds */
.hero {
    background: var(--gradient-hero);
    background-size: 300% 300%;
    animation: colorFlow 15s ease-in-out infinite;
}

.contact {
    background: var(--gradient-contact);
    background-size: 300% 300%;
    animation: colorFlow 18s ease-in-out infinite reverse;
}

@keyframes colorFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        background-position: 50% 0%;
        filter: hue-rotate(30deg) brightness(1.05);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(60deg) brightness(0.9);
    }
    75% {
        background-position: 50% 100%;
        filter: hue-rotate(30deg) brightness(1.05);
    }
}
