/* ==========================================================================
   GLOBAL DESIGN TOKENS & RESET
   ========================================================================== */
:root {
    /* Color Palette - Curated harmoniously (Futuristic Neon Dark Mode) */
    --bg-dark-raw: 222, 40%, 7%; /* #0b0f19 */
    --bg-dark: hsl(var(--bg-dark-raw));
    --bg-card-raw: 222, 35%, 12%; /* #141b2d */
    --bg-card: hsl(var(--bg-card-raw));
    
    --color-primary: #8b5cf6;       /* Neon Violet */
    --color-secondary: #ec4899;     /* Neon Pink */
    --color-accent: #06b6d4;        /* Electric Cyan */
    --color-amber: #f59e0b;         /* Cyber Amber */
    
    --text-main: #f3f4f6;           /* Off-white */
    --text-muted: #9ca3af;          /* Slate Grey */
    --text-dark: #4b5563;
    
    --gradient-violet-pink: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-cyan-blue: linear-gradient(135deg, var(--color-accent) 0%, #3b82f6 100%);
    --gradient-dark-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(139, 92, 246, 0.3);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   FUTURISTIC BACKGROUNDS & GLOW ORBS
   ========================================================================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: orbPulse 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    bottom: 10%;
    left: -100px;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes orbPulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.2) translate(30px, -20px); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-20px, 30px); opacity: 0.12; }
}

/* ==========================================================================
   PREMIUM CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: screen;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

/* Class applied via JavaScript when hovering over buttons/links */
.custom-cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(139, 92, 246, 0.1);
    border-color: var(--color-secondary);
}

@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-dot {
        display: none !important; /* Hide custom cursor on mobile for accessibility */
    }
}

/* ==========================================================================
   HEADER NAVIGATION (GLASSMORPHIC)
   ========================================================================== */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 32px;
    background: rgba(20, 27, 45, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
    padding: 8px 24px;
    background: rgba(11, 15, 25, 0.85);
    border-color: var(--border-glass-glow);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--color-primary);
    transition: var(--transition-quick);
}

.logo:hover .logo-accent {
    color: var(--color-secondary);
    text-shadow: 0 0 10px var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-quick);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-violet-pink);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

.nav-link.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-nav {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.cta-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-violet-pink);
    transition: var(--transition-smooth);
    z-index: -1;
}

.cta-nav:hover {
    border-color: transparent;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.cta-nav:hover::before {
    left: 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Active State for Hamburger Button */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 950;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: var(--transition-smooth);
    opacity: 0;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-quick);
}

.mobile-nav-link:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .nav-links, .cta-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .header {
        top: 12px;
    }
    .nav-container {
        padding: 12px 20px;
    }
}

/* ==========================================================================
   FLOATING DOT NAVIGATION INDICATORS
   ========================================================================== */
.floating-indicators {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 900;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid transparent;
    transition: var(--transition-smooth);
    position: relative;
}

.indicator::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-quick);
    white-space: nowrap;
}

.indicator:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.indicator:hover {
    background: var(--color-accent);
    transform: scale(1.3);
}

.indicator.active {
    background: transparent;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transform: scale(1.4);
}

@media (max-width: 1024px) {
    .floating-indicators {
        display: none;
    }
}

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-quick);
}

.btn-primary {
    color: var(--text-main);
    background: var(--gradient-violet-pink);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-cyan-blue);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

/* Glass Card Definition */
.glass-card {
    background: rgba(20, 27, 45, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glass-glow);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-top: 120px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.badge-glow {
    animation: flash 1.5s infinite alternate ease-in-out;
}

@keyframes flash {
    0% { opacity: 0.4; text-shadow: 0 0 0 var(--color-primary); }
    100% { opacity: 1; text-shadow: 0 0 8px var(--color-primary); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, #a78bfa, #f472b6, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s infinite linear;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.dynamic-text-container {
    position: relative;
    display: inline-block;
}

.cursor-blink {
    font-weight: 200;
    color: var(--color-accent);
    margin-left: 2px;
    animation: cursorBlink 0.8s infinite;
    -webkit-text-fill-color: var(--color-accent);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border-top: 1px solid var(--border-glass);
    padding-top: 32px;
}

.metric-item {
    font-family: var(--font-heading);
}

.metric-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-plus {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.metric-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Scene 3D & Hero Avatar */
.hero-graphics-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.scene-3d {
    perspective: 1000px;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4/5;
}

.floating-card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatAvatar 6s infinite ease-in-out;
    transform-style: preserve-3d;
}

@keyframes floatAvatar {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(139, 92, 246, 0.15);
    z-index: 2;
}

.floating-glow {
    position: absolute;
    width: 105%;
    height: 105%;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    z-index: 1;
    filter: blur(15px);
    animation: glowRotate 10s infinite linear;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Floating overlay glass badges */
.floating-badge {
    position: absolute;
    background: rgba(20, 27, 45, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 10;
    transition: var(--transition-smooth);
}

.floating-badge h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.floating-badge p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.badge-1 {
    top: 15%;
    left: -15px;
    transform: translateZ(30px);
    animation: bounceBadge1 5s infinite ease-in-out;
}

.badge-2 {
    bottom: 15%;
    right: -15px;
    transform: translateZ(50px);
    animation: bounceBadge2 5s infinite ease-in-out;
    animation-delay: -2s;
}

.badge-icon-js {
    color: #f59e0b;
    font-size: 1.5rem;
}

.badge-icon-3d {
    color: var(--color-accent);
    font-size: 1.5rem;
}

@keyframes bounceBadge1 {
    0%, 100% { transform: translateY(0) translateZ(30px); }
    50% { transform: translateY(-8px) translateZ(30px); }
}

@keyframes bounceBadge2 {
    0%, 100% { transform: translateY(0) translateZ(50px); }
    50% { transform: translateY(8px) translateZ(50px); }
}

/* Scroll Down Mouse */
.scroll-down-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 10;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

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

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-metrics {
        justify-content: center;
    }
    .badge-1, .badge-2 {
        display: none; /* Hide floating badges on tablet/mobile grids */
    }
    .hero-graphics-container {
        order: -1;
    }
    .scene-3d {
        max-width: 320px;
    }
    .hero-section {
        padding-top: 100px;
    }
}

/* ==========================================================================
   SECTION COMMON HEADERS
   ========================================================================== */
.scroll-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 8px;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-violet-pink);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   ABOUT SECTION & TIMELINE
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: flex-start;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 16px;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* High-End Interactive Timeline */
.timeline {
    border-left: 2px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    padding-left: 24px;
    position: relative;
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--color-primary);
    position: absolute;
    left: -32px;
    top: 5px;
    transition: var(--transition-quick);
}

.timeline-item:hover .timeline-dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    transform: scale(1.3);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 4px 0 8px;
    color: var(--text-main);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Glass DNA Cards */
.about-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dna-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dna-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dna-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-glow-bg {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
    z-index: 1;
    transition: var(--transition-smooth);
}

.dna-card:hover .card-glow-bg {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    transform: scale(1.4);
}

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

/* ==========================================================================
   PROJECTS SECTION (SHOWCASE CARD PARALLAX)
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: var(--color-accent);
}

.filter-btn.active {
    color: var(--text-main);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6;
    overflow: hidden;
    background: #000;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08) rotate(1deg);
    opacity: 0.7;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.2) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

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

.project-links {
    display: flex;
    gap: 16px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.proj-link-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.proj-link-icon:hover {
    background: var(--color-accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--color-accent);
}

.project-info {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.project-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

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

.project-tech-stack span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .project-filters {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

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

/* ==========================================================================
   SKILLS SECTION (BESPOKE SVG INTERACTIVE RINGS)
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.skill-item {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-progress-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.skill-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contact-method-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.method-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-quick);
}

a.method-link:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--bg-dark);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

/* Glass Form Fields */
.contact-form {
    padding: 48px;
}

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

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0 8px;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-quick);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-quick);
}

/* Floating labels effect */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.line-focus {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--gradient-violet-pink);
    transition: var(--transition-smooth);
}

.form-group input:focus ~ .line-focus,
.form-group textarea:focus ~ .line-focus {
    width: 100%;
    left: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: transparent;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-violet-pink);
    border: none;
    color: var(--text-main);
    padding: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Validation Style */
.form-group.error input,
.form-group.error textarea {
    border-bottom-color: #ef4444;
}

.form-group.error label {
    color: #ef4444 !important;
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 0.75rem;
    color: #ef4444;
    opacity: 0;
    transition: var(--transition-quick);
}

.form-group.error .error-msg {
    opacity: 1;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    background: rgba(11, 15, 25, 0.4);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-quick);
}

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

@media (max-width: 560px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   INTERACTIVE TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: rgba(20, 27, 45, 0.9);
    border: 1px solid var(--border-glass-glow);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(16px);
    z-index: 9999;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    max-width: 380px;
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.toast-content h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.toast-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-quick);
    margin-left: auto;
}

.toast-close:hover {
    color: var(--text-main);
}

/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT THEME STYLES
   ========================================================================== */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    transform: scale(1.05);
}

.theme-toggle-btn i {
    font-size: 1.1rem;
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.theme-toggle-btn .icon-light {
    opacity: 0;
    transform: translateY(20px) rotate(45deg);
}

/* Light Theme Variables Override */
body.light-theme {
    --bg-dark-raw: 220, 30%, 95%; /* Clean Light Gray */
    --bg-dark: hsl(220, 30%, 95%);
    --bg-card-raw: 0, 0%, 100%;    /* White Cards */
    --bg-card: hsl(0, 0%, 100%);
    --text-main: #111827;          /* Dark Text */
    --text-muted: #4b5563;         /* Grey text */
    
    --border-glass: rgba(0, 0, 0, 0.07);
    --border-glass-glow: rgba(139, 92, 246, 0.25);
}

body.light-theme .theme-toggle-btn .icon-dark {
    opacity: 0;
    transform: translateY(-20px) rotate(-45deg);
}

body.light-theme .theme-toggle-btn .icon-light {
    opacity: 1;
    transform: translateY(0) rotate(0);
    color: var(--color-amber);
}

/* Light Mode Aesthetic Enhancements */
body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .glass-card:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.12);
}

body.light-theme .nav-container {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .header.scrolled .nav-container {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .timeline {
    border-left-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .timeline-dot {
    background: #fff;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .footer {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .mobile-menu {
    background: rgba(243, 244, 246, 0.95);
}

body.light-theme .glow-orb {
    opacity: 0.12;
}

/* ==========================================================================
   INTERACTIVE PROJECT MODAL (GLASSMORPHIC)
   ========================================================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(8px);
}

body.light-theme .modal-overlay {
    background: rgba(243, 244, 246, 0.5);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(20, 27, 45, 0.85);
    border: 1px solid var(--border-glass-glow);
    border-radius: 24px;
    padding: 40px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.project-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-quick);
}

.modal-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.modal-media {
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 8px 0 16px;
    color: var(--text-main);
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.modal-tech-stack span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 6px;
}

body.light-theme .modal-tech-stack span {
    background: rgba(0, 0, 0, 0.04);
}

.modal-actions {
    display: flex;
    gap: 16px;
}

.modal-actions .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .modal-content {
        padding: 30px 20px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-close {
        top: 16px;
        right: 16px;
    }
}


/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 1900;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.whatsapp-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
}

.whatsapp-icon {
    color: #ffffff;
    font-size: 1.8rem;
    transition: var(--transition-quick);
}

/* Pulse Ripple Animation */
.whatsapp-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    box-sizing: border-box;
    animation: whatsappPulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip text styling */
.whatsapp-tooltip {
    position: absolute;
    left: 76px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-15px);
    transition: var(--transition-smooth);
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

/* Arrow for tooltip */
.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.whatsapp-float:hover .whatsapp-icon-wrapper {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(15deg);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 24px;
        left: 24px;
    }
    .whatsapp-icon-wrapper {
        width: 52px;
        height: 52px;
    }
    .whatsapp-icon {
        font-size: 1.6rem;
    }
    /* Hide tooltip on mobile, simple click is enough */
    .whatsapp-tooltip {
        display: none;
    }
}

/* Mobile responsive fixes (max-width: 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    .hero-metrics {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .metric-item {
        flex: 1 1 100px;
        text-align: center;
    }
    .metric-num {
        font-size: 1.8rem;
    }
}


