/* ===============================================
   ANTAGRIOIN - Ultra Modern CSS
   Author: Fatih Bilgiç
   Version: 2.0
   =============================================== */

/* ===============================================
   1. CSS Variables & Root
   =============================================== */
:root {
    /* Colors */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-bg: #0a0e27;
    --light-bg: #ffffff;
    --text-dark: #1a202c;
    --text-light: #718096;
    --text-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a202c 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-2xl: 8rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.5);

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

/* Dark Mode Variables */
[data-theme="dark"] {
    --light-bg: #0a0e27;
    --dark-bg: #ffffff;
    --text-dark: #ffffff;
    --text-light: #a0aec0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* Fallback */
    font-family: var(--font-primary);
    background: #ffffff; /* Fallback */
    background: var(--light-bg);
    color: #1a202c; /* Fallback */
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Fallback */
    transition: background-color var(--transition-base);
}

/* Selection */
::selection {
    background: #667eea; /* Fallback */
    background: var(--primary-color);
    color: #ffffff; /* Fallback */
    color: var(--text-white);
}

/* Scrollbar - Cross-browser compatible */
* {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) rgba(102, 126, 234, 0.1); /* Firefox */
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===============================================
   3. Loading Screen
   =============================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a202c 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out infinite;
}

.loader-text {
    color: var(--text-white);
    font-size: 0.875rem;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

/* ===============================================
   4. Mouse Follower
   =============================================== */
.mouse-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
    mix-blend-mode: difference;
    display: none;
}

.mouse-follower-label {
    position: fixed;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

@media (min-width: 1024px) {
    .mouse-follower,
    .mouse-follower-label {
        display: block;
    }
}

/* ===============================================
   5. Navigation
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); /* Fallback for non-supporting browsers */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Fallback */
    transition: all var(--transition-base);
}

/* backdrop-filter with feature detection */
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06); /* Fallback */
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.logo-ai-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-container {
    direction: rtl;
}

body.rtl .nav-menu {
    direction: rtl;
}

body.rtl .nav-actions {
    direction: rtl;
}

body.rtl .gradient-sphere {
    right: auto;
    left: -20%;
}

body.rtl .hero-content {
    text-align: right;
}

body.rtl .section-header {
    text-align: right;
}

/* ===============================================
   Language Switcher - Theme Toggle ile Uyumlu
   =============================================== */
.language-switcher {
    position: relative;
    z-index: 1001;
}

/* Theme toggle ile ayni stil */
.language-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.language-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.lang-arrow {
    display: none;
}

.current-lang-flag {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Kompakt dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 6px;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

/* Dropdown ok isareti */
.language-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(102, 126, 234, 0.08);
    border-top: 1px solid rgba(102, 126, 234, 0.08);
    transform: rotate(45deg);
}

[data-theme="dark"] .language-dropdown {
    background: #1a1a2e;
    border-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .language-dropdown::before {
    background: #1a1a2e;
    border-color: rgba(102, 126, 234, 0.15);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: var(--font-primary);
}

.lang-option:hover {
    background: rgba(102, 126, 234, 0.08);
}

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

.lang-flag {
    font-weight: 700;
    font-size: 0.7rem;
    min-width: 22px;
    color: var(--primary-color);
}

.lang-option.active .lang-flag {
    color: white;
}

.lang-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.lang-option.active .lang-name {
    color: white;
}

[data-theme="dark"] .lang-name {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .lang-flag {
    color: #8b9cf4;
}

.lang-divider {
    height: 1px;
    background: rgba(102, 126, 234, 0.1);
    margin: 4px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .language-toggle {
        width: 40px;
        height: 40px;
    }

    .language-dropdown {
        right: -5px;
    }

    .language-dropdown::before {
        right: 19px;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.65rem;
    }
}

.theme-toggle {
    background: transparent;
    border: 2px solid #667eea; /* Fallback */
    border: 2px solid var(--primary-color);
    color: #667eea; /* Fallback */
    color: var(--primary-color);
    width: 44px; /* WCAG minimum touch target */
    height: 44px; /* WCAG minimum touch target */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Fallback */
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.nav-cta-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px; /* Added padding for 44px touch target */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 25px;
    height: 3px; /* Increased from 2px for better visibility */
    background: #1a202c; /* Fallback */
    background: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Fallback */
    transition: all var(--transition-base);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===============================================
   6. Hero Section
   =============================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out;
}

.hero-badge i {
    color: var(--primary-color);
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    animation: slideUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) both;
    animation-delay: calc(var(--word-index, 0) * 0.1s);
}

.gradient-text {
    color: #667eea; /* Fallback for browsers that don't support background-clip: text */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Fallback */
    background: var(--gradient-primary);
}

/* Progressive enhancement for gradient text */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .gradient-text {
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        -moz-background-clip: text;
        -moz-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    animation: fadeIn 1s ease-out calc(var(--stat-index, 0) * 0.2s + 0.5s) both;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    animation: slideInLeft 1s ease-out 0.8s both;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    animation: slideInLeft 1s ease-out 0.9s both;
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.glass-btn {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    animation: slideInLeft 1s ease-out 1s both;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.card-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.hero-3d-element {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    animation: fadeIn 1s ease-out 1s both;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    backface-visibility: hidden; /* Firefox fix */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}

.front { transform: translateZ(100px); }
.back { transform: rotateY(180deg) translateZ(100px); }
.left { transform: rotateY(-90deg) translateZ(100px); }
.right { transform: rotateY(90deg) translateZ(100px); }
.top { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ===============================================
   7. Portfolio Section
   =============================================== */
.portfolio {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 50%, transparent 100%);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-xl);
}

.portfolio-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
}

[data-theme="dark"] .portfolio-card {
    background: rgba(30, 30, 50, 0.8);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card.featured {
    grid-column: span 2;
}

.portfolio-image {
    position: relative;
    height: 250px;
    background: var(--gradient-primary);
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.portfolio-placeholder i {
    font-size: 4rem;
    color: white;
}

.portfolio-placeholder.github {
    background: linear-gradient(135deg, #24292e 0%, #040d21 100%);
}

.portfolio-placeholder.ai {
    background: var(--gradient-accent);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-link {
    background: white;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: scale(0);
    transition: transform var(--transition-base);
}

.portfolio-card:hover .portfolio-link {
    transform: scale(1);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.portfolio-status {
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.development {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Portfolio Features */
.portfolio-features {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #667eea;
}

.feature-item i {
    font-size: 1rem;
}

/* Portfolio Progress Bar */
.portfolio-progress {
    margin-top: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.progress-percent {
    font-weight: 600;
    color: #667eea;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 1s ease;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
}

.action-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.github-stats {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.stats-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

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

.github-stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

[data-theme="dark"] .github-stat-card {
    background: rgba(30, 30, 50, 0.8);
}

.github-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.github-stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.github-stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.github-stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===============================================
   8. Services Section - Continued
   =============================================== */
.services {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(118, 75, 162, 0.05) 50%, transparent 100%);
}

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

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background: rgba(30, 30, 50, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===============================================
   9. Achievements Section - Continued
   =============================================== */
.achievements {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-xl);
}

.achievement-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

[data-theme="dark"] .achievement-card {
    background: rgba(30, 30, 50, 0.8);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon i {
    font-size: 2rem;
    color: white;
}

.achievement-icon.google-play {
    background: linear-gradient(135deg, #00875a 0%, #00d084 100%);
}

.achievement-icon.github {
    background: linear-gradient(135deg, #24292e 0%, #040d21 100%);
}

.achievement-icon.certificate {
    background: var(--gradient-accent);
}

.achievement-icon.award {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.achievement-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap var(--transition-base);
}

.achievement-link:hover {
    gap: 1rem;
}

/* Timeline */
.timeline {
    margin-top: var(--spacing-xl);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 200px;
    text-align: right;
    padding-right: 3rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

[data-theme="dark"] .timeline-content {
    background: rgba(30, 30, 50, 0.8);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item .timeline-content::before {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
    right: auto;
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* ===============================================
   10. Tech Stack Section - Continued
   =============================================== */
.tech-stack {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(118, 75, 162, 0.03) 100%);
}

.tech-categories {
    display: grid;
    gap: 3rem;
}

.tech-category {
    text-align: center;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

[data-theme="dark"] .tech-item {
    background: rgba(30, 30, 50, 0.8);
}

.tech-item:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tech-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===============================================
   11. Contact Section - Continued
   =============================================== */
.contact {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

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

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-items {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .contact-form {
    background: rgba(30, 30, 50, 0.8);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: all var(--transition-base);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: white;
    padding: 0 0.5rem;
}

[data-theme="dark"] .form-group input:focus ~ label,
[data-theme="dark"] .form-group input:valid ~ label,
[data-theme="dark"] .form-group textarea:focus ~ label,
[data-theme="dark"] .form-group textarea:valid ~ label,
[data-theme="dark"] .form-group select:focus ~ label,
[data-theme="dark"] .form-group select:valid ~ label {
    background: rgba(30, 30, 50, 0.8);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

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

/* WhatsApp Form Styles */
.whatsapp-form .whatsapp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.whatsapp-form .whatsapp-header i {
    font-size: 1.8rem;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

/* ===============================================
   12. Footer - Continued
   =============================================== */
.footer {
    background: var(--gradient-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    color: white;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text; /* Firefox */
    -moz-text-fill-color: transparent; /* Firefox */
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===============================================
   13. Floating Elements - Continued
   =============================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-10px);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: #25d366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

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

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Disable complex animations on slow devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===============================================
   Enhanced Micro-interactions & Visual Effects
   =============================================== */

/* Smooth theme transitions */
body {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button ripple effects */
.cta-btn, .nav-cta-btn, .action-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::after, .nav-cta-btn::after, .action-btn::after {
    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 ease, height 0.6s ease;
}

.cta-btn:hover::after, .nav-cta-btn:hover::after, .action-btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Enhanced card hover effects */
.portfolio-card, .service-card, .achievement-card, .web-project-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.portfolio-card:hover, .service-card:hover,
.achievement-card:hover, .web-project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
}

/* Icon animations on hover */
.service-icon i, .achievement-icon i, .project-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i,
.achievement-card:hover .achievement-icon i,
.web-project-card:hover .project-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Link arrow animations */
.achievement-link i, .action-btn i {
    transition: transform 0.3s ease;
}

.achievement-link:hover i, .action-btn:hover i {
    transform: translateX(5px);
}

/* Stat card glow effect */
.stat-card:hover, .github-stat-card:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.25);
}

/* Gradient text shimmer */
@keyframes gradient-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background-size: 200% auto;
}

.gradient-text:hover {
    animation: gradient-shimmer 3s ease infinite;
}

/* New reveal animation with blur */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    animation: revealUp 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Morphing blob animation */
@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.gradient-sphere {
    animation: morphBlob 15s ease-in-out infinite, float 20s ease-in-out infinite;
}

/* Pulse ring effect */
@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Focus visible states for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Touch feedback for mobile */
@media (hover: none) {
    .cta-btn:active, .nav-cta-btn:active, .action-btn:active {
        transform: scale(0.98);
    }

    .portfolio-card:active, .service-card:active,
    .achievement-card:active, .web-project-card:active {
        transform: scale(0.98);
    }
}

/* Safe area insets for modern phones */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    .nav-menu {
        padding-top: 100px;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    [data-theme="dark"] .nav-menu {
        background: linear-gradient(135deg,
            rgba(10, 14, 39, 0.98) 0%,
            rgba(10, 14, 39, 0.95) 100%);
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 0;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu.active .nav-item:nth-child(1) .nav-link { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) .nav-link { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) .nav-link { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) .nav-link { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) .nav-link { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) .nav-link { transition-delay: 0.35s; }
    .nav-menu.active .nav-item:nth-child(7) .nav-link { transition-delay: 0.4s; }

    /* Better touch targets */
    .cta-btn, .action-btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
}

/* Update notification styles */
.update-notification {
    font-family: var(--font-primary);
}

.update-notification button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-notification button:hover {
    transform: scale(1.05);
}

/* ===============================================
   15. Responsive Design
   =============================================== */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .timeline-container::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        padding: 0;
        margin-bottom: 1rem;
    }

    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -45px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-base);
    }

    [data-theme="dark"] .nav-menu {
        background: var(--dark-bg);
    }

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

    .hamburger {
        display: flex;
    }

    .nav-cta-btn {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    .portfolio-card.featured {
        grid-column: span 1;
    }

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

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

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top {
        right: 90px;
        bottom: 20px;
    }
}

/* Small phones (375px and below) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .nav-logo .logo-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* iPhone SE and similar (320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .cta-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

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

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

/* Small tablets - portrait (600px to 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ===============================================
   Web Projects Section Styles
   =============================================== */

/* Web Projects Section on Main Page */
.web-projects {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, #f7fafc 100%);
    position: relative;
}

[data-theme="dark"] .web-projects {
    background: linear-gradient(180deg, var(--light-bg) 0%, #0d1117 100%);
}

.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.web-project-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.web-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.web-project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

[data-theme="dark"] .web-project-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.project-icon i {
    font-size: 1.8rem;
    color: white;
}

.project-domain {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-heading);
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.web-projects-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Hero Small for Detail Page */
.hero-small {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
    text-align: center;
}

.hero-small .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-small .hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-small .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.hero-small .hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================= */
/* Asia Market Digital Services Section         */
/* ============================================= */
.asia-services-section {
    padding: 80px 0;
    background: var(--bg-secondary, #f8fafc);
}

[data-theme="dark"] .asia-services-section {
    background: var(--dark-bg-secondary, #1a1a2e);
}

.asia-services-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.asia-services-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.asia-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.asia-stats .stat {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary, #667eea);
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 30px;
}

[data-theme="dark"] .asia-stats .stat {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.asia-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.asia-service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .asia-service-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

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

[data-theme="dark"] .asia-service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.asia-service-card .service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.asia-service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.asia-service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Platform-specific border colors */
.asia-service-card[data-platform="baidu"] {
    border-top: 4px solid #2319dc;
}
.asia-service-card[data-platform="baidu"]:hover {
    box-shadow: 0 20px 40px rgba(35, 25, 220, 0.2);
}

.asia-service-card[data-platform="wechat"] {
    border-top: 4px solid #07c160;
}
.asia-service-card[data-platform="wechat"]:hover {
    box-shadow: 0 20px 40px rgba(7, 193, 96, 0.2);
}

.asia-service-card[data-platform="ecommerce"] {
    border-top: 4px solid #ff6a00;
}
.asia-service-card[data-platform="ecommerce"]:hover {
    box-shadow: 0 20px 40px rgba(255, 106, 0, 0.2);
}

.asia-service-card[data-platform="hosting"] {
    border-top: 4px solid #00d4ff;
}
.asia-service-card[data-platform="hosting"]:hover {
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.asia-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
    .asia-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .asia-services-grid {
        grid-template-columns: 1fr;
    }

    .asia-stats {
        gap: 15px;
    }

    .asia-stats .stat {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Projects Detail Section */
.projects-detail {
    padding: var(--spacing-2xl) 0;
    background: var(--light-bg);
}

.project-detail-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    transition: all var(--transition-base);
}

.project-detail-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

[data-theme="dark"] .project-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #e2e8f0;
}

[data-theme="dark"] .project-header {
    border-color: rgba(255, 255, 255, 0.1);
}

.project-icon-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.project-header-info {
    flex: 1;
}

.project-detail-card .project-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.project-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.project-url:hover {
    color: var(--secondary-color);
    gap: 0.75rem;
}

.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.project-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-family: var(--font-heading);
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-stats-box {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

[data-theme="dark"] .project-stats-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.05);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-section .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.cta-section .cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Web Projects */
@media (max-width: 992px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    .project-stats-box {
        position: static;
    }

    .hero-small .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .web-projects-grid {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-detail-card {
        padding: var(--spacing-md);
    }

    .hero-small {
        padding: 120px 0 60px;
    }

    .hero-small .hero-title {
        font-size: 2rem;
    }

    .cta-section .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-small .hero-title {
        font-size: 1.75rem;
    }

    .project-detail-card .project-title {
        font-size: 1.5rem;
    }

    .tech-stack-list {
        gap: 0.4rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}

/* ===============================================
   QUANTUM SECTION
   A.N.T.A.G.R.I.O.I.N. - Quantum Style
   =============================================== */

.quantum-section {
    padding: 100px 0;
    background: #0a0e27;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Quantum Background */
.quantum-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.quantum-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.quantum-grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

/* Quantum Header */
.quantum-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

/* Orbit Animation */
.quantum-orbit {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: orbitSpin 10s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ring-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-duration: 8s;
    animation-direction: reverse;
    border-color: rgba(118, 75, 162, 0.4);
}

.ring-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation-duration: 6s;
    border-color: rgba(240, 147, 251, 0.5);
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quantum-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 30px rgba(102, 126, 234, 0.5),
        0 0 60px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: corePulse 2s ease-in-out infinite;
}

.core-text {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

@keyframes corePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.5), 0 0 60px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 50px rgba(102, 126, 234, 0.7), 0 0 100px rgba(102, 126, 234, 0.4);
    }
}

/* Quantum Title */
.quantum-title {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.letter-float {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    display: inline-block;
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.quantum-subtitle {
    margin-bottom: 10px;
}

.glow-text {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #a0aec0;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { text-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(118, 75, 162, 0.4); }
}

.quantum-tagline {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: #718096;
    font-style: italic;
}

/* Quantum Network */
.quantum-network {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quantum-nodes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.q-node {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: nodeAppear 0.6s ease-out forwards;
    animation-delay: var(--delay);
    opacity: 0;
    transform: scale(0);
}

@keyframes nodeAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.q-node:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: scale(1.2);
    box-shadow:
        0 0 30px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(102, 126, 234, 0.3);
}

.q-node.center-node {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: #764ba2;
}

.node-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center-node .node-letter {
    font-size: 2rem;
}

/* Node Pulse Effect */
.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    animation: nodePulse 2s ease-out infinite;
}

.node-pulse.delay-1 {
    animation-delay: 1s;
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Quantum Info Display */
.quantum-info {
    text-align: center;
    margin-top: 50px;
    min-height: 80px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-word {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.info-meaning {
    font-size: 1rem;
    color: #a0aec0;
}

.info-archetype {
    font-size: 0.9rem;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* Floating Particles (CSS only) */
.quantum-section::before,
.quantum-section::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    box-shadow:
        100px 50px 0 rgba(102, 126, 234, 0.5),
        200px 150px 0 rgba(118, 75, 162, 0.5),
        300px 80px 0 rgba(240, 147, 251, 0.5),
        400px 200px 0 rgba(102, 126, 234, 0.3),
        500px 100px 0 rgba(118, 75, 162, 0.4),
        150px 250px 0 rgba(240, 147, 251, 0.3),
        250px 300px 0 rgba(102, 126, 234, 0.5),
        350px 350px 0 rgba(118, 75, 162, 0.4),
        50px 180px 0 rgba(240, 147, 251, 0.5),
        450px 280px 0 rgba(102, 126, 234, 0.3);
    animation: floatParticles 15s linear infinite;
}

.quantum-section::after {
    animation-delay: -7.5s;
    box-shadow:
        80px 100px 0 rgba(118, 75, 162, 0.5),
        180px 200px 0 rgba(240, 147, 251, 0.5),
        280px 130px 0 rgba(102, 126, 234, 0.5),
        380px 250px 0 rgba(118, 75, 162, 0.3),
        480px 150px 0 rgba(240, 147, 251, 0.4),
        130px 300px 0 rgba(102, 126, 234, 0.3),
        230px 350px 0 rgba(118, 75, 162, 0.5),
        330px 400px 0 rgba(240, 147, 251, 0.4);
}

@keyframes floatParticles {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Light mode adjustments */
[data-theme="light"] .quantum-section,
body:not([data-theme="dark"]) .quantum-section {
    background: linear-gradient(180deg, #0a0e27 0%, #1a1a3e 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .quantum-section {
        padding: 60px 0;
        min-height: auto;
    }

    .quantum-orbit {
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }

    .quantum-core {
        width: 35px;
        height: 35px;
    }

    .core-text {
        font-size: 0.8rem;
    }

    .quantum-title {
        gap: 4px;
    }

    .letter-float {
        font-size: 1.8rem;
    }

    .quantum-nodes {
        gap: 15px;
    }

    .q-node {
        width: 50px;
        height: 50px;
    }

    .q-node.center-node {
        width: 65px;
        height: 65px;
    }

    .node-letter {
        font-size: 1.2rem;
    }

    .center-node .node-letter {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quantum-header {
        margin-bottom: 40px;
    }

    .letter-float {
        font-size: 1.5rem;
    }

    .glow-text {
        font-size: 0.85rem;
    }

    .q-node {
        width: 45px;
        height: 45px;
    }

    .q-node.center-node {
        width: 55px;
        height: 55px;
    }

    .node-letter {
        font-size: 1rem;
    }

    .center-node .node-letter {
        font-size: 1.3rem;
    }

    .info-word {
        font-size: 1.2rem;
    }
}