/* ============================================
   iOS 26 Inspired Glassmorphism Portfolio
   Vibrant, Dynamic & Elegant Design
   ============================================ */

/* Self-hosted Fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* CSS Variables - Elegant Warm Palette */
:root {
    /* Primary Palette from Reference */
    --blush: #f9edf0;
    --champagne: #e6c8b7;
    --cognac: #c3955b;
    --amber: #ba6a36;
    --emerald: #1c3934;
    --espresso: #261311;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--cognac) 0%, var(--amber) 50%, var(--champagne) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--champagne) 0%, var(--cognac) 100%);
    --accent-gradient: linear-gradient(135deg, var(--amber) 0%, var(--cognac) 100%);
    --cool-gradient: linear-gradient(135deg, var(--emerald) 0%, #2a4a44 100%);
    --warm-gradient: linear-gradient(135deg, var(--champagne) 0%, var(--blush) 100%);
    --dark-gradient: linear-gradient(135deg, var(--espresso) 0%, #1a1614 50%, var(--emerald) 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(249, 237, 240, 0.06);
    --glass-bg-light: rgba(230, 200, 183, 0.1);
    --glass-bg-dark: rgba(38, 19, 17, 0.85);
    --glass-border: rgba(230, 200, 183, 0.15);
    --glass-border-accent: rgba(195, 149, 91, 0.3);
    --glass-shadow: rgba(38, 19, 17, 0.5);
    
    /* Text */
    --text-primary: var(--blush);
    --text-secondary: rgba(249, 237, 240, 0.85);
    --text-muted: rgba(230, 200, 183, 0.6);
    
    /* Accent Colors */
    --accent-1: var(--cognac);
    --accent-2: var(--amber);
    --accent-3: var(--champagne);
    --accent-4: var(--emerald);
    --accent-5: var(--blush);
    
    --blur-amount: 30px;
    --border-radius: 22px;
    --border-radius-sm: 12px;
    --border-radius-lg: 28px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-gradient);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
.floating-orb,
.profile-blob,
.profile-ring,
.orbit-particle,
.profile-card,
.float-icon {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-orb,
    .profile-blob,
    .profile-ring,
    .orbit-particle {
        animation: none !important;
    }
}

/* Custom Cursor - Elegant Style */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--cognac), var(--amber));
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.15s ease, background 0.3s ease;
    box-shadow: 0 0 20px rgba(195, 149, 91, 0.6), 0 0 40px rgba(186, 106, 54, 0.4);
}

.cursor-outline {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(195, 149, 91, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    background: radial-gradient(circle, rgba(195, 149, 91, 0.08) 0%, transparent 70%);
}

.cursor-outline.hover {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(230, 200, 183, 0.15) 0%, transparent 70%);
    border-color: var(--champagne);
    box-shadow: 0 0 30px rgba(230, 200, 183, 0.3);
}

.cursor-dot.clicking {
    transform: scale(0.5);
    background: linear-gradient(135deg, var(--champagne), var(--blush));
}

.cursor-outline.clicking {
    transform: translate(-50%, -50%) scale(0.85);
    border-color: var(--blush);
}

.cursor-dot.magnetic {
    transform: scale(1.4);
}

.cursor-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(240, 147, 251, 0.4));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    animation: trailFade 0.5s ease forwards;
}

@keyframes trailFade {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.orb-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, rgba(195, 149, 91, 0.35), rgba(186, 106, 54, 0.25));
    top: -250px;
    left: -150px;
    animation-delay: 0s;
    filter: blur(100px);
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, rgba(230, 200, 183, 0.3), rgba(249, 237, 240, 0.2));
    top: 50%;
    right: -180px;
    animation-delay: -5s;
    filter: blur(100px);
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(28, 57, 52, 0.4), rgba(42, 74, 68, 0.3));
    bottom: -120px;
    left: 25%;
    animation-delay: -10s;
    filter: blur(100px);
}

.orb-4 {
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, rgba(186, 106, 54, 0.35), rgba(195, 149, 91, 0.25));
    top: 35%;
    left: -120px;
    animation-delay: -15s;
    filter: blur(100px);
}

.orb-5 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(28, 57, 52, 0.25), rgba(230, 200, 183, 0.15));
    bottom: 25%;
    right: 15%;
    animation-delay: -7s;
    filter: blur(100px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 80px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(40px, -40px) rotate(270deg) scale(1.05);
    }
}

/* Glass Effects */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
}

.glass-card-3d {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 8px 25px rgba(201, 184, 168, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 184, 168, 0.15);
}

.glass-card-mini {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.glass-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.glass-badge:hover {
    background: var(--glass-bg-light);
    transform: translateY(-3px);
}

.glass-btn {
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 16px 32px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition-bounce);
    cursor: none;
}

.glass-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35), 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Liquid metal enhancement for View My Work button */
.liquid-metal-host {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.liquid-metal-host.glass-btn:hover {
    background: var(--glass-bg-light);
    border-color: var(--glass-border);
}

.liquid-metal-content {
    position: relative;
    z-index: 3;
}

.liquid-metal-shader-layer {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
    mix-blend-mode: normal;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.liquid-metal-shader-layer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: inherit !important;
}

.liquid-metal-ripple-layer {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: 1.5px;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.liquid-metal-ripple {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 72%);
    animation: liquidMetalRipple 0.6s ease-out forwards;
}

@keyframes liquidMetalRipple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.glass-btn-outline {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 14px 30px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition-bounce);
    cursor: none;
}

.glass-btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.glass-icon {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.glass-tag {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-smooth);
    cursor: none;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: none;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--champagne);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 60px;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.greeting {
    font-size: 1rem;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: slideInLeft 1s ease 0.2s backwards;
}

.title-line {
    display: block;
    color: var(--text-primary);
}

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

.roles-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease 0.4s backwards;
}

.role-badge i {
    font-size: 1.1rem;
    color: var(--cognac);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 32px;
    animation: slideInLeft 1s ease 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease 0.8s backwards;
}

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

/* Hero Visual - Profile - ENHANCED */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease 0.5s backwards;
}

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

.profile-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Morphing Background Blob */
.profile-blob {
    position: absolute;
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, rgba(195, 149, 91, 0.5), rgba(186, 106, 54, 0.4), rgba(230, 200, 183, 0.3));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphBlob 25s linear infinite;
    filter: blur(6px);
    opacity: 0.65;
    transition: background 2s ease;
}

@keyframes morphBlob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
        background: linear-gradient(135deg, rgba(195, 149, 91, 0.5), rgba(230, 200, 183, 0.4));
    }
    4% {
        background: linear-gradient(135deg, rgba(192, 142, 85, 0.49), rgba(225, 195, 175, 0.41));
    }
    8% {
        border-radius: 55% 45% 35% 65% / 58% 35% 65% 42%;
        transform: rotate(29deg) scale(1.01);
        background: linear-gradient(135deg, rgba(188, 135, 78, 0.48), rgba(218, 188, 165, 0.42));
    }
    12% {
        background: linear-gradient(135deg, rgba(186, 125, 68, 0.47), rgba(210, 178, 152, 0.43));
    }
    16% {
        border-radius: 48% 52% 42% 58% / 52% 42% 58% 48%;
        transform: rotate(58deg) scale(1.02);
        background: linear-gradient(135deg, rgba(186, 115, 58, 0.48), rgba(200, 165, 138, 0.44));
    }
    20% {
        background: linear-gradient(135deg, rgba(180, 108, 52, 0.49), rgba(188, 152, 125, 0.45));
    }
    24% {
        border-radius: 42% 58% 50% 50% / 48% 50% 50% 52%;
        transform: rotate(86deg) scale(1.03);
        background: linear-gradient(135deg, rgba(172, 100, 48, 0.5), rgba(175, 138, 112, 0.46));
    }
    28% {
        background: linear-gradient(135deg, rgba(158, 95, 52, 0.49), rgba(160, 128, 105, 0.47));
    }
    32% {
        border-radius: 38% 62% 55% 45% / 45% 55% 45% 55%;
        transform: rotate(115deg) scale(1.04);
        background: linear-gradient(135deg, rgba(140, 92, 58, 0.48), rgba(145, 120, 100, 0.48));
    }
    36% {
        background: linear-gradient(135deg, rgba(115, 88, 62, 0.47), rgba(130, 115, 98, 0.48));
    }
    40% {
        border-radius: 45% 55% 58% 42% / 42% 58% 42% 58%;
        transform: rotate(144deg) scale(1.03);
        background: linear-gradient(135deg, rgba(88, 85, 68, 0.46), rgba(118, 112, 98, 0.48));
    }
    44% {
        background: linear-gradient(135deg, rgba(62, 78, 68, 0.45), rgba(108, 110, 98, 0.47));
    }
    48% {
        border-radius: 50% 50% 48% 52% / 40% 52% 48% 55%;
        transform: rotate(173deg) scale(1.02);
        background: linear-gradient(135deg, rgba(42, 68, 62, 0.44), rgba(98, 108, 98, 0.46));
    }
    52% {
        background: linear-gradient(135deg, rgba(35, 62, 58, 0.43), rgba(92, 105, 95, 0.45));
    }
    56% {
        border-radius: 52% 48% 45% 55% / 45% 48% 52% 50%;
        transform: rotate(202deg) scale(1.01);
        background: linear-gradient(135deg, rgba(45, 72, 65, 0.44), rgba(102, 112, 98, 0.46));
    }
    60% {
        background: linear-gradient(135deg, rgba(58, 82, 72, 0.45), rgba(115, 118, 102, 0.47));
    }
    64% {
        border-radius: 55% 45% 42% 58% / 50% 42% 58% 45%;
        transform: rotate(230deg) scale(1.02);
        background: linear-gradient(135deg, rgba(78, 92, 78, 0.46), rgba(132, 128, 108, 0.48));
    }
    68% {
        background: linear-gradient(135deg, rgba(102, 102, 82, 0.47), rgba(152, 140, 118, 0.48));
    }
    72% {
        border-radius: 58% 42% 48% 52% / 55% 38% 62% 42%;
        transform: rotate(259deg) scale(1.03);
        background: linear-gradient(135deg, rgba(128, 112, 85, 0.48), rgba(175, 155, 128, 0.47));
    }
    76% {
        background: linear-gradient(135deg, rgba(155, 125, 88, 0.49), rgba(195, 170, 142, 0.46));
    }
    80% {
        border-radius: 55% 45% 52% 48% / 58% 40% 55% 48%;
        transform: rotate(288deg) scale(1.04);
        background: linear-gradient(135deg, rgba(178, 140, 95, 0.5), rgba(212, 185, 158, 0.45));
    }
    84% {
        background: linear-gradient(135deg, rgba(188, 148, 100, 0.5), rgba(222, 195, 168, 0.44));
    }
    88% {
        border-radius: 52% 48% 42% 58% / 55% 42% 58% 48%;
        transform: rotate(317deg) scale(1.02);
        background: linear-gradient(135deg, rgba(192, 150, 98, 0.5), rgba(228, 202, 178, 0.43));
    }
    92% {
        background: linear-gradient(135deg, rgba(194, 150, 95, 0.5), rgba(230, 205, 182, 0.42));
    }
    96% {
        border-radius: 58% 42% 35% 68% / 58% 32% 68% 42%;
        transform: rotate(346deg) scale(1.01);
        background: linear-gradient(135deg, rgba(195, 150, 92, 0.5), rgba(230, 202, 183, 0.41));
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(360deg) scale(1);
        background: linear-gradient(135deg, rgba(195, 149, 91, 0.5), rgba(230, 200, 183, 0.4));
    }
}

.profile-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(195, 149, 91, 0.25);
    animation: rotate 25s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(195, 149, 91, 0.3);
    border-style: solid;
    animation-direction: normal;
}

.ring-2 {
    width: 88%;
    height: 88%;
    border-color: rgba(230, 200, 183, 0.25);
    animation-direction: reverse;
    animation-duration: 20s;
}

.ring-3 {
    width: 76%;
    height: 76%;
    border-color: rgba(186, 106, 54, 0.2);
    animation-duration: 30s;
}

/* Orbiting Particles */
.orbit-particle {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--cognac);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(195, 149, 91, 0.7);
}

.particle-1 {
    animation: orbitParticle1 10s linear infinite;
}

.particle-2 {
    background: var(--amber);
    box-shadow: 0 0 15px rgba(186, 106, 54, 0.7);
    animation: orbitParticle2 14s linear infinite;
}

.particle-3 {
    background: var(--emerald);
    box-shadow: 0 0 15px rgba(28, 57, 52, 0.7);
    animation: orbitParticle3 18s linear infinite;
}

@keyframes orbitParticle1 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbitParticle2 {
    from { transform: rotate(120deg) translateX(170px) rotate(-120deg); }
    to { transform: rotate(480deg) translateX(170px) rotate(-480deg); }
}

@keyframes orbitParticle3 {
    from { transform: rotate(240deg) translateX(140px) rotate(-240deg); }
    to { transform: rotate(600deg) translateX(140px) rotate(-600deg); }
}

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

.profile-card {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    animation: float3d 7s ease-in-out infinite;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(195, 149, 91, 0.5), rgba(186, 106, 54, 0.4), rgba(230, 200, 183, 0.3));
    box-shadow: 
        0 30px 100px rgba(38, 19, 17, 0.6),
        0 15px 50px rgba(195, 149, 91, 0.25),
        0 5px 20px rgba(186, 106, 54, 0.2),
        inset 0 2px 0 rgba(249, 237, 240, 0.25),
        inset 0 -2px 5px rgba(38, 19, 17, 0.15);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(
        from 0deg,
        var(--cognac),
        var(--amber),
        var(--champagne),
        var(--emerald),
        var(--cognac)
    );
    border-radius: 50%;
    z-index: -1;
    animation: rotateBorder 6s linear infinite;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, var(--espresso), #1a1614);
    border-radius: 50%;
    z-index: -1;
}

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

@keyframes float3d {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
        box-shadow: 
            0 30px 100px rgba(38, 19, 17, 0.6),
            0 15px 50px rgba(195, 149, 91, 0.25);
    }
    25% {
        transform: translateY(-18px) rotateX(4deg) rotateY(4deg);
        box-shadow: 
            0 45px 120px rgba(38, 19, 17, 0.5),
            0 20px 60px rgba(186, 106, 54, 0.3);
    }
    50% {
        transform: translateY(-8px) rotateX(0deg) rotateY(-4deg);
        box-shadow: 
            0 35px 100px rgba(38, 19, 17, 0.55),
            0 18px 55px rgba(230, 200, 183, 0.2);
    }
    75% {
        transform: translateY(-14px) rotateX(-4deg) rotateY(0deg);
        box-shadow: 
            0 40px 110px rgba(38, 19, 17, 0.52),
            0 18px 55px rgba(28, 57, 52, 0.2);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: contrast(1.02) saturate(1.08) brightness(1.02);
    transition: var(--transition-smooth);
}

.profile-card:hover .profile-img {
    filter: contrast(1.05) saturate(1.15) brightness(1.05);
    transform: scale(1.03);
}

/* Glowing Aura Effect */
.profile-aura {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(195, 149, 91, 0.35) 0%, 
        rgba(230, 200, 183, 0.2) 40%,
        transparent 70%);
    animation: pulseAura 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes pulseAura {
    0% { transform: scale(1); opacity: 0.6; }
    25% { transform: scale(1.06); opacity: 0.45; }
    50% { transform: scale(1.12); opacity: 0.3; }
    75% { transform: scale(1.06); opacity: 0.45; }
    100% { transform: scale(1); opacity: 0.6; }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    color: var(--text-primary);
    animation: iconFloat 4s ease-in-out infinite;
    background: rgba(230, 200, 183, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(230, 200, 183, 0.2);
    box-shadow: 0 8px 32px rgba(38, 19, 17, 0.4);
    transition: var(--transition-smooth);
}

.float-icon:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 15px 45px rgba(195, 149, 91, 0.3);
    border-color: rgba(195, 149, 91, 0.5);
}

.icon-1 {
    top: 5%;
    left: 2%;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(195, 149, 91, 0.2), rgba(186, 106, 54, 0.15));
    border-color: rgba(195, 149, 91, 0.25);
}

.icon-2 {
    top: -2%;
    right: 12%;
    animation-delay: -1s;
    background: linear-gradient(135deg, rgba(186, 106, 54, 0.2), rgba(195, 149, 91, 0.15));
    border-color: rgba(186, 106, 54, 0.25);
}

.icon-3 {
    top: 48%;
    right: -6%;
    animation-delay: -2s;
    background: linear-gradient(135deg, rgba(28, 57, 52, 0.25), rgba(42, 74, 68, 0.2));
    border-color: rgba(28, 57, 52, 0.3);
}

.icon-4 {
    bottom: 8%;
    right: 8%;
    animation-delay: -3s;
    background: linear-gradient(135deg, rgba(230, 200, 183, 0.2), rgba(249, 237, 240, 0.15));
    border-color: rgba(230, 200, 183, 0.25);
}

.icon-5 {
    bottom: 18%;
    left: -6%;
    animation-delay: -2.5s;
    background: linear-gradient(135deg, rgba(28, 57, 52, 0.2), rgba(195, 149, 91, 0.15));
    border-color: rgba(28, 57, 52, 0.25);
}

/* Icon Tooltip Styles */
.float-icon {
    position: absolute;
    cursor: pointer;
}

.icon-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%) translateX(-10px);
    background: linear-gradient(
        135deg,
        rgba(38, 19, 17, 0.95),
        rgba(28, 57, 52, 0.9)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--champagne);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    width: 220px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(195, 149, 91, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(195, 149, 91, 0.1);
    pointer-events: none;
}

/* Tooltip arrow - pointing left */
.icon-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: rgba(38, 19, 17, 0.95);
}

/* Show tooltip on hover */
.float-icon:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Pause floating animation on hover for better readability */
.float-icon:hover {
    animation-play-state: paused;
}

/* Icons on the LEFT side - tooltip appears on LEFT (Python) */
.icon-1 .icon-tooltip {
    left: auto;
    right: calc(100% + 15px);
    transform: translateY(-50%) translateX(10px);
}

.icon-1:hover .icon-tooltip {
    transform: translateY(-50%) translateX(0);
}

.icon-1 .icon-tooltip::after {
    right: auto;
    left: 100%;
    border: 8px solid transparent;
    border-left-color: rgba(38, 19, 17, 0.95);
}

/* Icons on the RIGHT side - tooltip appears further RIGHT (away from profile) */
.icon-3 .icon-tooltip,
.icon-4 .icon-tooltip {
    left: calc(100% + 15px);
    right: auto;
    transform: translateY(-50%) translateX(-10px);
}

.icon-3:hover .icon-tooltip,
.icon-4:hover .icon-tooltip {
    transform: translateY(-50%) translateX(0);
}

.icon-3 .icon-tooltip::after,
.icon-4 .icon-tooltip::after {
    right: 100%;
    left: auto;
    border: 8px solid transparent;
    border-right-color: rgba(38, 19, 17, 0.95);
}

/* Icon 2 (JS, top right) - tooltip appears on RIGHT */
.icon-2 .icon-tooltip {
    left: calc(100% + 15px);
    right: auto;
    transform: translateY(-50%) translateX(-10px);
}

.icon-2:hover .icon-tooltip {
    transform: translateY(-50%) translateX(0);
}

.icon-2 .icon-tooltip::after {
    right: 100%;
    left: auto;
    border: 8px solid transparent;
    border-right-color: rgba(38, 19, 17, 0.95);
}

/* Icon 5 (Book, bottom left) - tooltip appears BELOW */
.icon-5 .icon-tooltip {
    left: 50%;
    right: auto;
    top: calc(100% + 15px);
    transform: translateX(-50%) translateY(-10px);
}

.icon-5:hover .icon-tooltip {
    transform: translateX(-50%) translateY(0);
}

.icon-5 .icon-tooltip::after {
    top: auto;
    bottom: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(38, 19, 17, 0.95);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

.glass-mouse {
    width: 30px;
    height: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

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

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

/* Section Styles */
section {
    padding: 100px 40px;
    position: relative;
}

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

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

.section-tag {
    display: inline-block;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.about-card.featured {
    background: linear-gradient(135deg, rgba(201, 184, 168, 0.08) 0%, rgba(196, 168, 124, 0.05) 100%);
    border-color: rgba(201, 184, 168, 0.15);
}

.card-icon {
    width: 75px;
    height: 75px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.9rem;
    color: white;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.4);
    transition: var(--transition-smooth);
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 45px rgba(240, 147, 251, 0.4);
}

.about-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
}

.degree-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.degree-status i {
    color: var(--cognac);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.glass-stat {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition-smooth);
}

.glass-stat:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 184, 168, 0.15);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

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

/* Skills Section */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skills-category {
    margin-bottom: 20px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    color: var(--amber);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ========== 3D FLIP CARD STYLES ========== */
.skill-card-flip {
    height: 160px;
    cursor: pointer;
    perspective: 1000px;
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.skill-card-flip:hover .skill-card-inner {
    transform: rotateY(8deg);
}

.skill-card-flip.flipped .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-flip.flipped:hover .skill-card-inner {
    transform: rotateY(172deg);
}

/* Both faces - match glass-card-3d theme */
.skill-card-front,
.skill-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Front face */
.skill-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

/* Back face */
.skill-card-back {
    padding: 20px 15px;
    transform: rotateY(180deg);
    z-index: 1;
}

/* Hover effect - match glass-card-3d */
.skill-card-flip:hover .skill-card-front,
.skill-card-flip.flipped:hover .skill-card-back {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 8px 25px rgba(201, 184, 168, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 184, 168, 0.15);
}

/* Front card content */
.skill-card-front i {
    font-size: 2.2rem;
    margin-bottom: 14px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card-front span {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-card-front .skill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--level);
    height: 3px;
    background: var(--primary-gradient);
}

/* Back card content */
.skill-card-back h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card-back p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== END 3D FLIP CARD STYLES ========== */

.glass-skill {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-skill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--level);
    height: 3px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

/* Disable hover transform on flip cards - handled by parent */
.skill-card-flip .glass-skill:hover {
    transform: none;
}

.glass-skill i {
    font-size: 2.2rem;
    margin-bottom: 14px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-skill span {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Projects Section */
.glass-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: none;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--glass-bg-light);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: #1a1816;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.project-card {
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 184, 168, 0.15) 0%, rgba(168, 144, 128, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(201, 184, 168, 0.4);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-bounce);
    transform: translateY(20px);
}

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

.project-link:hover {
    background: var(--primary-gradient);
    transform: scale(1.15);
    color: #1a1816;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.tech-tag {
    background: var(--glass-bg);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--cognac), var(--amber), var(--champagne), transparent);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    width: 90%;
    padding: 30px;
    position: relative;
}

.timeline-item:not(.right) .timeline-content {
    margin-right: 30px;
}

.timeline-item.right .timeline-content {
    margin-left: 30px;
}

.timeline-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-icon {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.5);
}

.timeline-item:not(.right) .timeline-icon {
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item.right .timeline-icon {
    left: -55px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

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

.contact-card {
    padding: 30px;
    text-align: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #1a1816;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-gradient);
    color: #1a1816;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-form {
    padding: 40px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group textarea + label {
    top: 20px;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cognac);
    background: rgba(195, 149, 91, 0.1);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: rgba(38, 19, 17, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--champagne);
}

.form-group textarea:focus + label,
.form-group textarea:valid + label {
    transform: none;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 18px;
}

/* Footer - iOS Glassy Style */
.glass-footer {
    background: linear-gradient(
        135deg,
        rgba(195, 149, 91, 0.12) 0%,
        rgba(230, 200, 183, 0.08) 50%,
        rgba(186, 106, 54, 0.1) 100%
    );
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-top: 1px solid rgba(230, 200, 183, 0.25);
    padding: 50px 40px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 -15px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Subtle gradient overlay for depth */
.glass-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

/* Frosted glass shine effect */
.glass-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(230, 200, 183, 0.4),
        rgba(195, 149, 91, 0.6),
        rgba(230, 200, 183, 0.4),
        transparent
    );
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-logo .logo-text {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--cognac), var(--champagne), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-text {
    color: var(--champagne);
    text-align: center;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.footer-links a {
    color: var(--champagne);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    opacity: 0.75;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cognac), var(--champagne));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--blush);
    opacity: 1;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-card:nth-child(3) {
        grid-column: span 2;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons,
    .roles-container {
        justify-content: center;
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
    
    .profile-card {
        width: 220px;
        height: 220px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* Timeline mobile adjustments */
    .timeline-container {
        position: relative;
        padding-left: 60px;
    }
    
    .timeline-line {
        left: 23px;
        transform: none;
    }
    
    .timeline-item,
    .timeline-item.right {
        padding-left: 0;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item .timeline-content,
    .timeline-item.right .timeline-content {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .timeline-item .timeline-icon,
    .timeline-item.right .timeline-icon {
        position: absolute;
        left: -60px;
        right: auto;
        top: 20px;
        transform: none;
        width: 48px;
        height: 48px;
    }
    
    .timeline-item:hover .timeline-icon,
    .timeline-item.right:hover .timeline-icon {
        transform: scale(1.15);
    }
    
    .timeline-content {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-card:nth-child(3) {
        grid-column: auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-card-flip {
        height: 140px;
    }
    
    .skill-card-back p {
        font-size: 0.75rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .glass-filters {
        flex-wrap: wrap;
        border-radius: var(--border-radius);
    }
    
    .cursor-dot,
    .cursor-outline,
    .cursor-trail {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
    
    .glass-btn,
    .glass-btn-outline,
    .nav-link,
    .filter-btn,
    .hamburger {
        cursor: pointer;
    }
    
    /* Reduce blur on mobile for better performance */
    :root {
        --blur-amount: 15px;
    }
    
    .glass-card-3d,
    .glass-skill,
    .glass-stat {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Simplify animations on mobile */
    .floating-orb {
        filter: blur(60px);
        animation-duration: 30s;
    }
    
    .orb-4,
    .orb-5 {
        display: none;
    }
    
    /* Simplify profile animations */
    .profile-blob {
        animation-duration: 35s;
        filter: blur(8px);
    }
    
    .profile-ring {
        animation: none;
        opacity: 0.3;
    }
    
    .orbit-particle {
        display: none;
    }
    
    .profile-card {
        animation-duration: 10s;
    }
    
    .profile-card::before {
        animation-duration: 10s;
    }
    
    /* Hide tooltips on mobile - use touch instead */
    .icon-tooltip {
        display: none;
    }
    
    /* Floating icons touch-friendly */
    .float-icon {
        animation: none;
        transform: none;
    }
    
    .float-icon:active {
        transform: scale(0.95);
        background: rgba(195, 149, 91, 0.3);
    }
    
    /* Disable 3D transforms on mobile for performance */
    .glass-card-3d:hover {
        transform: translateY(-4px);
    }
    
    /* Timeline mobile improvements */
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-line {
        left: 22px;
        transform: none;
    }
    
    .timeline-item,
    .timeline-item.right {
        padding-left: 55px;
        padding-right: 0;
        margin-bottom: 30px;
        justify-content: flex-start;
    }
    
    .timeline-content {
        width: 100%;
        padding: 20px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .timeline-item .timeline-icon,
    .timeline-item.right .timeline-icon {
        position: absolute;
        left: -55px;
        right: auto;
        top: 20px;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    /* Better touch targets */
    .nav-link,
    .filter-btn,
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Scroll indicator smaller on mobile */
    .scroll-indicator {
        transform: scale(0.8);
    }

}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-gradient {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .glass-btn,
    .glass-btn-outline {
        justify-content: center;
        padding: 14px 24px;
    }
    
    .roles-container {
        flex-direction: column;
        align-items: center;
    }
    
    .role-badge {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .profile-container {
        width: 220px;
        height: 220px;
    }
    
    .profile-card {
        width: 160px;
        height: 160px;
    }
    
    .profile-blob {
        width: 200px;
        height: 200px;
    }
    
    .profile-aura {
        width: 190px;
        height: 190px;
    }
    
    .float-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .icon-1 { top: 0%; left: 5%; }
    .icon-2 { top: -5%; right: 10%; }
    .icon-3 { top: 45%; right: -5%; }
    .icon-4 { bottom: 5%; right: 10%; }
    .icon-5 { bottom: 15%; left: -3%; }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card-flip {
        height: 130px;
    }
    
    .skill-card-back h4 {
        font-size: 0.9rem;
    }
    
    .skill-card-back p {
        font-size: 0.7rem;
    }
    
    .skill-card {
        padding: 16px;
    }
    
    /* Timeline even smaller screens */
    .timeline-container {
        padding-left: 50px;
    }
    
    .timeline-line {
        left: 17px;
    }
    
    .timeline-item,
    .timeline-item.right {
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .timeline-item .timeline-icon,
    .timeline-item.right .timeline-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        left: -50px;
        top: 18px;
        transform: none;
    }
    
    .timeline-item:hover .timeline-icon,
    .timeline-item.right:hover .timeline-icon {
        transform: scale(1.15);
    }
    
    .timeline-content {
        padding: 14px 16px;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .about-card {
        padding: 24px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Further reduce animations on very small screens */
    .floating-orb {
        animation: none;
        opacity: 0.4;
    }
    
    .orb-3 {
        display: none;
    }
    
    .profile-card::before {
        animation: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Mobile Navigation Menu - Segmented Pill Bar */
.nav-links.active {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: rgba(45, 30, 25, 0.95);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    padding: 5px;
    gap: 0;
    border: 1px solid rgba(195, 149, 91, 0.1);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: navSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.nav-links.closing {
    animation: navSlideUp 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.nav-links.active .nav-link {
    padding: 10px 0;
    border-bottom: none;
    border-radius: 50px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    position: relative;
    background: transparent;
    border: none;
    color: rgba(230, 200, 183, 0.55);
    flex: 1;
    white-space: nowrap;
}

.nav-links.active li {
    flex: 1;
    list-style: none;
}

.nav-links.active li:last-child {
    grid-column: unset;
}

.nav-links.active li:last-child .nav-link {
    background: transparent;
    border-color: transparent;
}

.nav-links.active li:not(:last-child) .nav-link::before {
    display: none;
}

.nav-links.active .nav-link:hover {
    color: var(--champagne);
    background: rgba(195, 149, 91, 0.08);
}

.nav-links.active .nav-link.active,
.nav-links.active li:last-child .nav-link.active {
    background: linear-gradient(135deg, var(--cognac), var(--amber));
    color: var(--espresso);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(195, 149, 91, 0.35);
    transform: none;
    border: none;
}

.nav-links.active .nav-link::after {
    display: none;
}

.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);
}

/* ============================================
   Directional Scroll Animations
   ============================================ */

/* Base state - hidden */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolling DOWN - elements come from bottom */
.scroll-reveal.reveal-down {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

.scroll-reveal.reveal-down.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Scrolling UP - elements come from top with slight rotation */
.scroll-reveal.reveal-up {
    opacity: 0;
    transform: translateY(-60px) scale(0.95);
}

.scroll-reveal.reveal-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered children animations - DOWN */
.scroll-reveal.reveal-down .scroll-child {
    opacity: 0;
    transform: translateY(40px) rotateX(-10deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.reveal-down.visible .scroll-child {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Staggered children animations - UP */
.scroll-reveal.reveal-up .scroll-child {
    opacity: 0;
    transform: translateY(-40px) rotateX(10deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.reveal-up.visible .scroll-child {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Slide from sides based on scroll direction */
.scroll-reveal.reveal-down .slide-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.reveal-down.visible .slide-left {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal.reveal-up .slide-left {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.reveal-up.visible .slide-left {
    opacity: 1;
    transform: translateX(0);
}

/* Legacy fade-in support */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Glowing effect for special elements */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(195, 149, 91, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(195, 149, 91, 0.6);
    }
}

/* Shine effect */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ============================================
   Chatbot Widget Styles
   ============================================ */

.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--cognac), var(--amber));
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(195, 149, 91, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(195, 149, 91, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

.chatbot-toggle-icon,
.chatbot-toggle-close {
    position: absolute;
    transition: all 0.3s ease;
}

.chatbot-toggle-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.chatbot-container.active .chatbot-toggle-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.chatbot-container.active .chatbot-toggle-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--emerald);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--espresso);
    animation: notificationPulse 2s ease-in-out infinite;
}

.chatbot-container.active .chatbot-notification {
    display: none;
}

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

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: rgba(38, 19, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(195, 149, 91, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(195, 149, 91, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
}

.chatbot-container.active .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(195, 149, 91, 0.15), rgba(186, 106, 54, 0.1));
    border-bottom: 1px solid rgba(195, 149, 91, 0.15);
}

.chatbot-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.chatbot-avatar img,
.chatbot-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cognac);
}

.chatbot-avatar .avatar-fallback {
    background: linear-gradient(135deg, var(--cognac), var(--amber));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.chatbot-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid var(--espresso);
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blush);
    margin: 0;
}

.chatbot-status-text {
    font-size: 0.8rem;
    color: var(--champagne);
    opacity: 0.8;
}

.chatbot-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--champagne);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 280px;
    min-height: 200px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(195, 149, 91, 0.3);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.3s ease;
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message.user .message-avatar {
    background: linear-gradient(135deg, var(--champagne), var(--blush));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso);
    font-size: 0.9rem;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.chat-message.bot .message-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 6px;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--cognac), var(--amber));
    border-bottom-right-radius: 6px;
}

.message-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--blush);
}

.chat-message.user .message-content p {
    color: white;
}

.chat-link {
    color: var(--cognac);
    text-decoration: none;
    border-bottom: 1px solid rgba(195, 149, 91, 0.3);
    transition: all 0.25s ease;
    font-weight: 500;
    cursor: pointer;
}

.chat-link:hover {
    color: var(--champagne);
    border-bottom-color: var(--champagne);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* Chat Image Messages */
.chat-image-container {
    margin: 10px 0 6px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(230, 200, 183, 0.1);
}

.chat-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-image.expanded {
    max-height: 400px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
}

.chat-image-caption {
    display: block;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--champagne);
    background: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--cognac);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Suggestions */
.chatbot-suggestions {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-btn {
    padding: 8px 14px;
    border: 1px solid rgba(195, 149, 91, 0.3);
    background: rgba(195, 149, 91, 0.1);
    border-radius: 20px;
    color: var(--champagne);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: rgba(195, 149, 91, 0.25);
    border-color: var(--cognac);
    transform: translateY(-2px);
}

/* Input Area */
.chatbot-input-container {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(195, 149, 91, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    color: var(--blush);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input::placeholder {
    color: var(--text-muted);
}

.chatbot-input:focus {
    border-color: var(--cognac);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, var(--cognac), var(--amber));
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(195, 149, 91, 0.4);
}

.chatbot-send:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }
    
    .chatbot-toggle {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }
    
    .chatbot-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        max-height: 75vh;
        max-height: 75dvh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease;
    }
    
    .chatbot-container.active .chatbot-window {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .chatbot-container.closing .chatbot-window {
        transform: translateY(100%);
        opacity: 0;
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45),
                    opacity 0.3s ease;
    }
    
    .chatbot-messages {
        max-height: calc(75vh - 200px);
        max-height: calc(75dvh - 200px);
        min-height: 120px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chatbot-suggestions {
        padding: 8px 16px;
        max-height: 60px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .suggestion-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    .chatbot-input-container {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .chatbot-header {
        padding: 12px 16px;
    }
    
    .chatbot-avatar {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    .chatbot-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        max-height: 75vh;
        max-height: 75dvh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease;
    }
    
    .chatbot-container.active .chatbot-window {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .chatbot-container.closing .chatbot-window {
        transform: translateY(100%);
        opacity: 0;
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.55, 0, 1, 0.45),
                    opacity 0.3s ease;
    }

    .chatbot-messages {
        max-height: calc(75vh - 200px);
        max-height: calc(75dvh - 200px);
    }
}


/* ============ ORBITAL ============ */
#orbital-timeline {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 20;
}

.orbital-node {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: auto;
    transition: transform .7s cubic-bezier(.4, 0, .2, 1), opacity .5s ease;
    cursor: pointer;
}

.orbital-pulse {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 149, 91, .32) 0, rgba(230, 200, 183, .16) 45%, rgba(255, 255, 255, 0) 72%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbital-pulse.pulsing {
    animation: orbitPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.orbital-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, rgba(58, 36, 30, .95), rgba(32, 20, 18, .92));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(224, 189, 146, .8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7e8d4;
    font-size: 1.08rem;
    transform: translate(-50%, -50%);
    transition: all .28s ease;
    box-shadow: 0 10px 24px rgba(26, 14, 12, .55), inset 0 0 20px rgba(255, 232, 208, .09);
}

.orbital-node.active .orbital-icon,
.orbital-node:hover .orbital-icon {
    background: linear-gradient(145deg, rgba(62, 40, 33, .97), rgba(35, 22, 20, .94));
    color: #fff1de;
    transform: translate(-50%, -50%) scale(1.14);
    border-color: rgba(237, 208, 171, .98);
    box-shadow: 0 0 0 3px rgba(195, 149, 91, .18), 0 0 28px rgba(195, 149, 91, .4);
}

.orbital-node.related .orbital-icon {
    background: linear-gradient(145deg, rgba(58, 36, 30, .95), rgba(32, 20, 18, .92));
    color: #f9ead7;
    border-color: rgba(224, 189, 146, .9);
    animation: orbitPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.orbital-title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    transition: all .3s ease;
    opacity: 0 !important;
    visibility: hidden !important;
}

.orbital-node.active .orbital-title,
.orbital-node:hover .orbital-title {
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff;
    transform: translateX(-50%) scale(1.2);
    top: 40px;
}

.orbital-card {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    width: 260px;
    background: rgba(20, 10, 10, .95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 15px;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .5);
    color: #fff;
    z-index: 1000;
}

.orbital-node.active .orbital-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.oc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.oc-badge { font-size: .65rem; padding: 3px 8px; border-radius: 20px; font-weight: 700; text-transform: uppercase; }
.oc-badge.completed { background: #fff; color: #000; }
.oc-badge.in-progress { background: transparent; border: 1px solid #fff; color: #fff; }
.oc-badge.pending { background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); }
.oc-date { font-size: .7rem; color: rgba(255, 255, 255, .5); font-family: monospace; }
.oc-title-card { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.oc-content { font-size: .8rem; color: rgba(255, 255, 255, .8); line-height: 1.4; margin-bottom: 15px; }
.oc-energy { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }
.oc-energy-header { display: flex; justify-content: space-between; font-size: .7rem; margin-bottom: 5px; }
.oc-energy-bar { width: 100%; height: 4px; background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; }
.oc-energy-fill { height: 100%; background: linear-gradient(to right, #c3955b, #ba6a36); transition: width 1s ease-out; }
.oc-related { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }
.oc-related-title { display: flex; align-items: center; font-size: .65rem; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 8px; font-weight: 500; }
.oc-related-title i { margin-right: 4px; }
.oc-related-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.oc-related-tag { font-size: .7rem; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; cursor: pointer; transition: all .2s; background: transparent; color: rgba(255, 255, 255, .8); display: flex; align-items: center; }
.oc-related-tag:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.oc-related-tag i { margin-left: 4px; font-size: .6rem; color: rgba(255, 255, 255, .6); }

@keyframes orbitPulse {
    0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: .3; transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 768px) {
    #orbital-timeline .orbital-node,
    #orbital-timeline .orbital-node * {
        pointer-events: none !important;
        cursor: default !important;
    }

    #orbital-timeline .orbital-pulse {
        opacity: .2;
        background: radial-gradient(circle, rgba(195, 149, 91, .16) 0, rgba(230, 200, 183, .08) 45%, rgba(255, 255, 255, 0) 72%);
    }

    #orbital-timeline .orbital-icon {
        box-shadow: 0 6px 14px rgba(26, 14, 12, .35), inset 0 0 12px rgba(255, 232, 208, .05);
    }

    #orbital-timeline .orbital-node.active .orbital-icon,
    #orbital-timeline .orbital-node:hover .orbital-icon {
        box-shadow: 0 0 0 2px rgba(195, 149, 91, .1), 0 0 14px rgba(195, 149, 91, .2);
    }

    .orbital-icon { width: 33px; height: 33px; font-size: .88rem; }
    .orbital-title { font-size: .7rem; top: 25px; }
    .orbital-node.active .orbital-title,
    .orbital-node:hover .orbital-title { top: 32px; }
    .orbital-card { top: 50px; width: 220px; padding: 12px; }
}
