/* ========================================
   YAPAYKU - Custom Properties
   ======================================== */
:root {
    /* Colors */
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-secondary: #a855f7;
    --color-secondary-light: #c084fc;
    --color-accent: #ec4899;
    --color-accent-light: #f472b6;
    --color-whatsapp: #25D366;
    --color-call: #3b82f6;
    --color-gold: #fbbf24;

    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Borders */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(99, 102, 241, 0.3);

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

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

/* CLS Prevention: Image aspect ratios */
img[width][height] {
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    min-height: 100vh;
    padding: var(--space-3xl) 0;
    position: relative;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-xl);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: var(--text-2xl);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-secondary);
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* Hide mobile language switcher on desktop */
.nav-menu .lang-switcher {
    display: none;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    min-height: 350px; /* CRITICAL: Prevents CLS */
}

.badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.badge-glow {
    animation: badge-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-primary-light) 50%, var(--color-secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.2em; /* CRITICAL: Prevents CLS */
    display: block;
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    min-height: 4.5em; /* CRITICAL: Prevents CLS - 2-3 lines */
    display: block;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--color-primary);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-text {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-full);
    position: relative;
    margin: 0 auto;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: var(--space-lg) auto 0;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.placeholder-ai {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-ai svg {
    width: 80%;
    height: 80%;
}

.image-border {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent)) border-box;
}

.about-content {
    padding: var(--space-lg);
}

.about-cards {
    margin-top: var(--space-3xl); /* Add spacing before cards */
}

.about-heading {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.card-icon {
    font-size: var(--text-2xl);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.info-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ========================================
   Stats Section - Compact
   ======================================== */
.stats {
    background: var(--bg-secondary);
    position: relative;
    padding: var(--space-xl) 0;
    min-height: auto; /* Override section min-height */
    height: auto;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
}

.stat-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    min-height: 140px; /* CRITICAL: Prevents CLS */
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    min-height: 320px; /* CRITICAL: Prevents CLS */
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-primary-light);
}

.service-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    font-size: var(--text-sm);
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: var(--space-xs) 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
    padding-left: var(--space-lg);
    position: relative;
}

.service-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
}

/* ========================================
   Team Section
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    min-height: 320px; /* CRITICAL: Prevents CLS */
}

/* Chairman Card Special Styles */
.team-card-chairman {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.team-card-chairman::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-primary));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

.chairman-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: var(--text-2xl);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    animation: crown-glow 2s ease-in-out infinite;
}

@keyframes crown-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.team-avatar svg {
    width: 100%;
    height: 100%;
}

.team-card h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.team-card-chairman h4 {
    color: var(--color-gold);
}

.team-card > p {
    color: var(--color-primary-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}

.team-role-desc {
    color: var(--text-muted) !important;
    font-size: var(--text-xs) !important;
    margin-bottom: var(--space-md) !important;
}

.team-social {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.social-link:hover {
    color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.gallery-item {
    margin: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
    min-height: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
    border-color: var(--color-primary);
}

.gallery-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 350px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: var(--space-sm);
}

.gallery-image-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1; /* Changed from 0 to prevent FOUC */
    transition: opacity 0.3s ease;
}

.gallery-image-placeholder img.loaded {
    opacity: 1;
}

.gallery-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.gallery-item figcaption {
    padding: var(--space-md);
    background: rgba(30, 41, 59, 0.5);
    border-top: 1px solid var(--border-color);
}

.gallery-item figcaption h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.gallery-item figcaption p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.contact-card-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.contact-card h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.contact-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.contact-card p a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-card p a:hover {
    color: var(--color-primary-light);
}

.social-links .social-btn {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.social-links .social-btn:hover {
    color: var(--color-primary-light);
}

.contact-card .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-sm);
}

/* Contact Action Buttons */
.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

.call-btn {
    background: linear-gradient(135deg, var(--color-call), #1d4ed8);
    color: white;
}

.call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.call-btn svg {
    width: 24px;
    height: 24px;
}

/* Tech Stack Section */
.tech-stack-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.tech-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.tech-grid {
    display: grid;
    gap: var(--space-md);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.tech-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.tech-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.tech-item p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Membership Section */
.membership-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.membership-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.membership-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.membership-badge {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.membership-card h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.membership-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand .logo-text {
    font-weight: 700;
    font-size: var(--text-lg);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

.footer-founder {
    color: var(--color-gold) !important;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ========================================
   Scroll Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-lg);
}

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

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

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--shadow-glow);
    }
    50% {
        box-shadow: var(--shadow-glow-lg);
    }
}

@keyframes scroll-bounce {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Scroll Reveal Animations - FIXED: Prevent FOUC */
.reveal {
    opacity: 1; /* Changed from 0 to prevent FOUC */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.reveal.visible {
    opacity: 1;
}

.slide-left {
    opacity: 1; /* Changed from 0 to prevent FOUC */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
    opacity: 1;
}

.slide-right {
    opacity: 1; /* Changed from 0 to prevent FOUC */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.card-hover {
    transition: all var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.1);
    border-color: var(--color-primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-md) var(--space-sm);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--space-xl);
        transition: left var(--transition-base);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: var(--space-md);
        font-size: var(--text-lg);
    }

    /* Language switcher inside mobile menu - SHOW on mobile */
    .nav-menu .lang-switcher {
        display: flex !important;
        margin-top: var(--space-lg);
        justify-content: center;
        width: 100%;
    }

    /* Hide desktop language switcher on mobile */
    .navbar > .container > .lang-switcher {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        min-height: auto; /* Single column, auto height */
    }

    .gallery-item {
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: var(--text-xl);
    }
}
.social-link {
  cursor: not-allowed;
  opacity: 0.5;
}
