/* Import Round Font */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=DM+Sans:opsz,wght@9..40,300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Varela+Round&display=swap');

:root {
    /* Color Palette - Updated for Cosmic Theme */
    --bg-deep-space: #050510; /* Darker base */
    --text-white: #f0f0f0;
    --text-grey: #a0a0a0;
    
    /* Cosmic Accents */
    --accent-blue: #4fc3f7;
    --accent-mint: #69f0ae;
    --accent-pink: #ff80ab;
    --accent-purple: #e040fb;
    --accent-gold: #ffd700;

    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'DM Sans', sans-serif;
    --font-hand: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep-space);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cosmic Background - Nebula & Stars */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    
    /* Deep Space Gradient */
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 29, 149, 0.4) 0%, transparent 50%), /* Purple Nebula */
        radial-gradient(circle at 80% 70%, rgba(15, 118, 110, 0.3) 0%, transparent 50%), /* Teal Nebula */
        radial-gradient(circle at 50% 50%, #0f172a 0%, #000000 100%); /* Base Void */
    
    /* Star Pattern Overlay (Simulated with repeating gradient) */
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px),
        radial-gradient(circle at 20% 30%, rgba(76, 29, 149, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 118, 110, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #0f172a 0%, #000000 100%);
        
    background-size: 550px 550px, 350px 350px, 250px 250px, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 40px 60px, 130px 270px, 0 0, 0 0, 0 0;
    
    /* Add Twinkle Animation */
    animation: nebulaPulse 8s infinite alternate; /* Background pulse */
}

@keyframes nebulaPulse {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2) hue-rotate(5deg); }
}

/* Extra Random Twinkling Stars Layer */
.star-twinkle-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: transparent;
}

/* Small Stars Layer */
.star-twinkle-layer::before {
    content: "";
    position: absolute;
    width: 3px; /* Larger stars (was 2px) */
    height: 3px;
    background: white;
    border-radius: 50%;
    /* Random star distribution via box-shadow */
    box-shadow: 
        10vw 10vh 0 1px rgba(255,255,255,0.8), /* Added spread radius and opacity */
        20vw 80vh 0 0 white,
        80vw 10vh 0 2px white, /* Varied sizes */
        70vw 60vh 0 1px white,
        40vw 40vh 0 0px white,
        15vw 50vh 0 2px white,
        90vw 90vh 0 1px white,
        30vw 20vh 0 0 white,
        60vw 85vh 0 2px white,
        50vw 10vh 0 1px white;
    animation: randomTwinkle 1.5s infinite ease-in-out alternate; /* Faster (was 3s) */
    opacity: 0.9; /* Brighter base opacity */
}

/* Large Bright Stars Layer */
.star-twinkle-layer::after {
    content: "";
    position: absolute;
    top: 5%;
    left: 10%;
    width: 4px; /* Larger (was 3px) */
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        85vw 25vh 0 2px white,
        15vw 75vh 0 2px white,
        60vw 30vh 0 3px white,
        35vw 90vh 0 2px white,
        95vw 50vh 0 4px white; /* Extra bright one */
    animation: randomTwinkle 1s infinite ease-in-out alternate-reverse; /* Faster (was 2s) */
    opacity: 1;
}

@keyframes randomTwinkle {
    0% { 
        opacity: 0.3; 
        transform: scale(0.5); 
        box-shadow: inherit; /* Reset glow */
    }
    100% { 
        opacity: 1; 
        transform: scale(1.5); 
        box-shadow: inherit; 
        filter: drop-shadow(0 0 8px white) drop-shadow(0 0 15px rgba(255,255,255,0.8)); /* Intense glow */
    }
}

/* Subtle Moving Fog/Light Trails */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    animation: fogMove 60s linear infinite;
}

@keyframes fogMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

/* Typography Defaults */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

.handwritten {
    font-family: var(--font-hand);
    color: var(--text-grey);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* --- HERO SECTION (3D Earth & Crystal Orbit) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    perspective: 1200px; /* For 3D scene */
}

/* 3D Scene Container - Unified 3D Context */
.hero-3d-scene {
    position: absolute;
    top: 50%; /* Centered in viewport */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    transform-style: preserve-3d; /* Key for true depth sorting */
    z-index: 1;
}

/* Hero Content - Placed inside 3D scene for depth sorting */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(150px); /* Pushed forward in Z-space */
    text-align: center;
    pointer-events: none; /* Let clicks pass through to crystals */
    white-space: nowrap; /* Prevent wrapping issues */
    /* Ensure text remains legible against complex background */
    text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.4);
}

/* The Planet (Sphere) - Earth Style */
.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px; /* Significantly larger */
    height: 550px;
    border-radius: 50%;
    /* Earth Tones: Deep Ocean, Lake Blue, Land Green */
    background: radial-gradient(circle at 30% 30%, #4fc3f7, #0288d1, #01579b); /* Water base */
    /* We can add a pseudo-element for landmasses if we want, but gradient is safer for pure CSS sphere */
    /* Let's try a complex gradient to simulate land/sea mix */
    background: radial-gradient(circle at 40% 40%, #81d4fa 0%, #29b6f6 40%, #0277bd 100%);
    
    box-shadow: 
        inset -40px -40px 100px rgba(0,0,0,0.5), /* Deep shadow side */
        inset 20px 20px 60px rgba(255,255,255,0.2), /* Highlight */
        0 0 80px rgba(79, 195, 247, 0.4); /* Atmosphere glow */
    z-index: 1;
    overflow: hidden;
}

/* Add some "Landmass" blobs via pseudo-elements for Earth feel */
.planet::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 20%;
    width: 200px;
    height: 150px;
    background: #66bb6a; /* Green Land */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(20px);
    opacity: 0.8;
}

.planet::after {
    content: "";
    position: absolute;
    bottom: 30%;
    right: 20%;
    width: 250px;
    height: 200px;
    background: #81c784; /* Another Land mass */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(25px);
    opacity: 0.7;
}

.planet-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 80% 80%, rgba(0,0,0,0.4) 0%, transparent 60%);
    z-index: 2;
}

/* The Orbit System */
.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 850px; /* Wider orbit for larger planet */
    height: 850px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-20deg); 
    animation: orbitRotate 50s linear infinite; /* Moderate speed (was 80s, original 40s) */
    z-index: 2;
    pointer-events: auto; 
}

/* Pause Rotation on Hover */
.orbit-system:hover {
    animation-play-state: paused;
}

@keyframes orbitRotate {
    0% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

/* --- Orbit Items (Cosmic Objects) --- */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px; 
    height: 60px;
    
    /* Default State: Just the Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    
    transform-origin: center center;
    transform-style: preserve-3d;
    
    /* Positioning in Orbit */
    transform: rotateZ(calc(var(--i) * 40deg)) translateY(-420px) rotateX(-75deg) rotateY(10deg); 
    
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop */
    cursor: pointer;
}

/* The Icon (Rocket, Meteor, etc.) */
.item-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    animation: floatIcon 3s ease-in-out infinite alternate;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

@keyframes floatIcon {
    from { transform: translateY(-5px); }
    to { transform: translateY(5px); }
}

/* The Photo (Hidden inside item - logic moved to overlay) */
.item-photo {
    display: none; /* Disabled in favor of global overlay */
}

/* --- Global Hero Overlay (Centered on Screen) --- */
.hero-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass unless active? Actually we want it visible */
    z-index: 99999; /* Absolute Top */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s; /* Delay visibility hidden until opacity is done */
    backdrop-filter: blur(5px); /* Dim background slightly */
    background: rgba(0,0,0,0.3);
}

.hero-overlay-container.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s; /* Instant visibility show */
}

.hero-overlay-content {
    position: relative;
    width: 600px; /* Much larger as requested */
    height: 450px;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-overlay-container.active .hero-overlay-content {
    transform: scale(1) translateY(0);
}

#active-orbit-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 
        0 0 60px rgba(79, 195, 247, 0.6), 
        0 30px 100px rgba(0,0,0,0.9);
    position: relative;
    z-index: 2;
}

/* Cinematic Glow Behind */
.hero-overlay-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,105,180,0.4) 0%, transparent 70%);
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.6; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

/* --- Hover Interaction --- */

/* 1. Item faces user (Icon Only) */
.orbit-item:hover {
    z-index: 100; /* Just above other orbit items */
    /* Only rotate to face user, no massive translation needed since overlay handles photo */
    transform: rotateZ(calc(var(--i) * 40deg)) translateY(-420px) rotateX(-75deg) rotate(0deg) scale(1.5); 
}

/* 2. Icon fades out slightly but stays visible or fades completely? 
   User said "photo floats... while icon fades". 
*/
.orbit-item:hover .item-icon {
    opacity: 0;
    transform: scale(0.5);
}

/* Remove old crystal styles */
.crystal-shard, .crystal-shard::before, .crystal-shard::after {
    display: none;
}

.hero h1 {
    font-size: 7rem; /* Huge Text */
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 2rem; /* Larger subtitle */
    color: var(--text-grey);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* --- ABOUT SECTION (Redesigned: Glassmorphism Card) --- */
.about {
    /* Glassmorphism Frame */
    background: rgba(16, 20, 40, 0.6); /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
    
    border-radius: 60px 60px 0 0;
    margin-top: -50px; /* Slight overlap with hero if needed, but let's keep it clean */
    position: relative;
    z-index: 10;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Card Stack Container */
.card-stack-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.card-stack {
    position: relative;
    width: 280px;
    height: 380px;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 8px solid white;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center bottom;
    cursor: pointer;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stack Initial State: Fanned out slightly */
.card-1 {
    transform: rotate(-10deg) translateX(-20px) scale(0.9);
    z-index: 1;
}

.card-2 {
    transform: rotate(0deg) translateY(-10px) scale(0.95);
    z-index: 2;
}

.card-3 {
    transform: rotate(10deg) translateX(20px) scale(1);
    z-index: 3;
}

/* Hover Interaction: Reveal/Fan out more or Zoom active */
.card-stack:hover .card-1 {
    transform: rotate(-25deg) translateX(-60px) scale(0.9);
}

.card-stack:hover .card-2 {
    transform: rotate(0deg) translateY(-30px) scale(0.95);
}

.card-stack:hover .card-3 {
    transform: rotate(25deg) translateX(60px) scale(1);
}

.card:hover {
    z-index: 10 !important;
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Ensure text pops on dark glass */
.about-text .handwritten {
    font-family: 'Varela Round', sans-serif; /* Changed to Rounded Bold */
    font-weight: 700;
    /* Font size remains inline: 1.5rem */
}

.about-text h2 {
    font-family: 'Varela Round', sans-serif; /* Changed to Rounded Bold */
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #fff, #a2d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700; /* Bold */
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- INTERESTS SECTION (Redesigned: Artistic & Interactive) --- */
#interests h2 {
    font-family: var(--font-sans); /* Rounder sans-serif */
    font-weight: 800; /* Extra Bold */
    font-size: 3.5rem; /* Bigger */
    letter-spacing: -0.02em; /* Tighten for fullness */
    color: white; /* Ensure white text */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Optional glow */
}

.interests-grid-artistic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.interest-item {
    padding: 3rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer; /* Indicate interactivity */
    border-radius: 20px;
}

.interest-item:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); /* Darker glass base */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.static-icon {
    font-size: 3rem;
    z-index: 2;
    transition: opacity 0.3s;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); /* Glow */
}

.grayscale {
    filter: grayscale(100%) brightness(1.2); /* Brighter for dark bg */
    opacity: 0.8;
}

.interest-item:hover .grayscale {
    filter: grayscale(0%);
    opacity: 1;
    background: rgba(255, 255, 255, 0.2); /* Lighter glass on hover */
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

/* Specific Animations */
/* AI Tools: Typing Keyboard */
.interest-item[data-type="ai"]:hover .icon-wrapper {
    background: rgba(79, 195, 247, 0.3); /* Blue glass */
    border-color: var(--accent-blue);
}

.keyboard-animation {
    display: none;
    position: absolute;
    width: 60px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.interest-item[data-type="ai"]:hover .static-icon {
    display: none;
}

.interest-item[data-type="ai"]:hover .keyboard-animation {
    display: flex;
    animation: bounce 0.5s;
}

.key {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    animation: type 0.5s infinite alternate;
}

.key:nth-child(2) { animation-delay: 0.1s; }
.key:nth-child(3) { animation-delay: 0.2s; }

@keyframes type {
    from { transform: translateY(0); }
    to { transform: translateY(2px); background: #ccc; }
}

/* Travel: Map Unfold */
.interest-item[data-type="travel"]:hover .icon-wrapper {
    background: rgba(105, 240, 174, 0.3); /* Mint glass */
    border-color: var(--accent-mint);
}

.map-animation {
    display: none;
    width: 60px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #333;
    perspective: 200px;
}

.interest-item[data-type="travel"]:hover .static-icon {
    display: none;
}

.interest-item[data-type="travel"]:hover .map-animation {
    display: flex;
}

.map-fold {
    flex: 1;
    height: 100%;
    background: #e0e0e0;
    border-right: 1px solid #ccc;
    animation: unfold 0.6s ease-out forwards;
    transform-origin: left;
}

@keyframes unfold {
    0% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* Thinking: Bulb Glow */
.interest-item[data-type="thinking"]:hover .icon-wrapper {
    background: rgba(255, 215, 0, 0.3); /* Gold glass */
    border-color: var(--accent-gold);
}

.interest-item[data-type="thinking"]:hover .static-icon {
    transform: scale(1.2);
    text-shadow: 0 0 20px #ffeb3b;
}

/* --- UNIQUE EXPERIENCE (City Map) --- */
.city-map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* For neatness */
    border-radius: 20px;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.city-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9); /* Slightly dim */
}

.city-building {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.city-building:hover {
    transform: translateY(-10px) scale(1.02);
}

.city-building:hover rect, 
.city-building:hover polygon, 
.city-building:hover circle {
    stroke: white; /* Changed from #333 to white for dark theme */
    stroke-width: 2px;
}

.city-tooltip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 25, 40, 0.9); /* Dark tooltip */
    color: white; /* White text */
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    font-family: var(--font-hand);
    font-size: 1.2rem;
    max-width: 300px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.city-tooltip.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .interests-grid-artistic { grid-template-columns: 1fr; }
    .card-stack-container { height: 400px; }
}

/* --- AI JOURNEY SECTION --- */
#ai-journey {
    background: transparent; /* Remove cream bg */
    padding-bottom: 8rem; /* Extra space at bottom */
}

/* Centered Title */
.section-title-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 4rem;
}

.artistic-title {
    font-family: var(--font-sans); /* Changed from serif to sans for rounder look */
    font-weight: 800; /* Bolder */
    font-size: 3.5rem;
    text-align: center;
    position: relative;
    color: white; /* White title */
    letter-spacing: -0.02em; /* Tighten slightly for fullness */
}

.artistic-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-pink);
    margin: 10px auto 0;
    border-radius: 2px;
}

.ai-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px; /* Wider for horizontal layout */
    margin: 0 auto;
}

/* AI Horizontal Card */
.ai-card {
    height: 180px; /* Initial collapsed height */
    perspective: 1000px;
    cursor: pointer;
    transition: height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* On hover, expand height to show back content */
.ai-card:hover {
    height: 500px; /* Expanded height */
    z-index: 10;
}

.ai-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ai-card:hover .ai-card-inner {
    transform: rotateX(180deg); /* Flip vertically for horizontal bars */
}

.ai-card-front, .ai-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05); /* Glass front */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align for horizontal */
    color: white;
}

/* Front Styling (Horizontal Bar) */
.ai-card-front {
    z-index: 2;
    flex-direction: row; /* Icon left, text right */
    gap: 2rem;
}

.ai-icon {
    font-size: 4rem;
    margin-bottom: 0;
    min-width: 80px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.ai-card-front h3 {
    font-size: 2rem;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.ai-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-hand);
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
}

/* Back Styling (Expanded Content) */
.ai-card-back {
    transform: rotateX(180deg);
    background: rgba(16, 20, 40, 0.95); /* Darker opaque back for readability */
    flex-direction: column;
    align-items: stretch; /* Stretch to fill width */
    justify-content: flex-start;
    overflow: hidden;
    padding: 2rem; /* More padding */
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-content-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

.ai-card-back h4 {
    font-family: var(--font-sans); /* Rounder sans-serif */
    font-weight: 800; /* Bolder */
    font-size: 2.2rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.ai-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Optimized Gallery Layouts */

/* Card 1: Grid for many logos - Enlarged */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Increased min-width */
    gap: 15px; /* Slightly more gap */
    margin-top: auto; 
    height: 200px; /* Force height to fill space */
}

.gallery-grid img {
    width: 100%;
    height: 100%; /* Fill the grid cell */
    object-fit: contain; 
    /* Fix for white backgrounds/edges: Make them look like white cards */
    background: white; 
    padding: 15px; /* Comfortable padding inside the white card */
    border-radius: 16px; /* Smooth corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Enhanced Hover Zoom for All Galleries */
.gallery-grid img:hover, 
.gallery-dual img:hover, 
.gallery-cinematic img:hover, 
.gallery-cinematic video:hover {
    transform: scale(1.1); /* Gentle zoom */
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative; /* Ensure z-index works */
}

/* Card 2: Two Large Images (Side by Side) */
.gallery-dual {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
    height: 250px; 
}

.gallery-dual img {
    flex: 1;
    width: 50%; 
    height: 100%;
    object-fit: contain; /* changed from cover to contain to see full screenshot */
    /* Make these look like cards too */
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-position: center; 
}

/* Card 3: Video/Image Cinematic Split */
.gallery-cinematic {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
    height: 280px; 
}

.gallery-cinematic .media-item {
    flex: 1;
    height: 100%;
    border-radius: 16px;
    overflow: visible; /* Allow hover overflow */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.gallery-cinematic img, .gallery-cinematic video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px; /* Apply radius to image directly */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Override generic ai-gallery if it exists */
.ai-gallery { display: none; }

/* Organic Shapes for Cards (Optional, adds to 'blob' vibe) */
.ai-card:nth-child(1) .ai-card-front { border-radius: 24px 24px 60px 24px; }
.ai-card:nth-child(2) .ai-card-front { border-radius: 60px 24px 24px 24px; }
.ai-card:nth-child(3) .ai-card-front { border-radius: 24px 60px 24px 60px; }

/* --- COSMIC HORIZON MAP SECTION --- */
/* Remove old SVG styles */
.world-map-svg {
    display: none;
}

.map-container {
    position: relative; /* Fix: Establish positioning context for absolute children */
    background: transparent !important; /* Override glass bg */
    border: none;
    box-shadow: none;
    perspective: 1000px; /* Enable 3D space */
    overflow: visible; /* Allow glow to spill */
    min-height: 600px;
    z-index: 5; /* Ensure it sits above background */
}

/* 3D Horizon Scene */
.cosmic-horizon-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicks pass to pins */
}

.horizon-plane {
    position: absolute;
    width: 150%; /* Wider to cover edges */
    height: 150%;
    /* Brighter Grid for Visibility */
    background: 
        linear-gradient(rgba(120, 80, 255, 0.4) 2px, transparent 2px),
        linear-gradient(90deg, rgba(120, 80, 255, 0.4) 2px, transparent 2px);
    background-size: 80px 80px; /* Larger grid cells */
    background-position: center bottom;
    
    /* Adjusted Transform for better visibility */
    transform: rotateX(70deg) translateY(50px) scale(1.2); 
    transform-origin: center 60%; /* Pivot point adjustment */
    
    /* Stronger Horizon Line */
    border-top: 4px solid rgba(100, 200, 255, 0.8); 
    box-shadow: 
        0 -10px 30px rgba(100, 200, 255, 0.6), /* Blue glow up */
        0 0 100px rgba(76, 29, 149, 0.6) inset; /* Purple depth */
    
    /* Smoother fade mask */
    mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
    
    pointer-events: all; /* Ensure pins are clickable */
}

/* Futuristic Cosmic Pins (HUD Style) */
.cosmic-pin {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%); 
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The vertical beacon beam (Laser) */
.pin-beacon {
    position: absolute;
    bottom: 50%; 
    left: 50%;
    width: 1px;
    height: 80px; 
    background: linear-gradient(to top, transparent, var(--accent-blue), transparent);
    transform: translateX(-50%) rotateX(-60deg); 
    transform-origin: bottom center;
    opacity: 0.8;
    box-shadow: 0 0 8px var(--accent-blue);
    transition: all 0.3s ease;
}

/* The pulsing base (HUD Ring) */
.pin-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue), inset 0 0 10px var(--accent-blue);
    animation: hudSpin 4s linear infinite;
    background: transparent;
}

.pin-pulse::before, .pin-pulse::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* Inner Dot */
.pin-pulse::before {
    width: 6px;
    height: 6px;
    background: white;
    box-shadow: 0 0 10px white;
}

/* Rotating Crosshair */
.pin-pulse::after {
    width: 120%;
    height: 120%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    animation: hudSpin 8s linear infinite reverse;
}

@keyframes hudSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tech Label (No Bubble) */
.pin-label {
    position: absolute;
    top: -50px; 
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-blue);
    font-family: 'Courier New', Courier, monospace; /* Tech/Code font */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--accent-blue);
    opacity: 0.7;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    
    /* Tech decoration lines */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pin-label::after {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
}

/* Hover Effects */
.cosmic-pin:hover .pin-beacon {
    height: 150px; /* Beam grows taller */
    width: 2px;
    background: linear-gradient(to top, transparent, #ff00ff, transparent); 
    box-shadow: 0 0 15px #ff00ff;
}

.cosmic-pin:hover .pin-pulse {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 20px #ff00ff;
    animation-duration: 1s; /* Spin faster */
}

.cosmic-pin:hover .pin-pulse::before {
    background: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.cosmic-pin:hover .pin-label {
    opacity: 1;
    top: -70px; 
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    font-size: 1rem;
}

.cosmic-pin:hover .pin-label::after {
    background: #ff00ff;
    width: 100%; /* Line expands */
}

/* Ensure Photo Stack is visible */
.travel-photo-stack {
    z-index: 10;
    pointer-events: none; 
}

/* Travel Photo Stack (Overlay) */
.travel-photo-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure Photo Stack allows clicking through to other pins, but cards capture clicks */
.travel-photo-stack.active {
    pointer-events: none; 
    background: transparent; /* REMOVED: Black backdrop */
    backdrop-filter: none;   /* REMOVED: Blur */
}

/* Enlarged Travel Card */
.travel-card {
    pointer-events: auto; 
    position: absolute;
    width: 320px; 
    height: 420px; 
    background: rgba(255, 255, 255, 0.95); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 8px; 
    opacity: 0;
    transform-origin: center bottom;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    margin-top: 50px; /* Push cards down to clear the header */
}

.travel-card img {
    width: 100%;
    height: 340px; /* Fixed height for image */
    object-fit: cover;
    border-radius: 4px;
}

.travel-card span {
    display: block;
    text-align: left;
    font-family: var(--font-sans); /* Clean sans-serif */
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 5px 5px;
    color: #111;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Add a subtle decorative barcode/number to card */
.travel-card::after {
    content: "IMG-00" attr(data-original-index);
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #999;
}

/* Hover effect on individual cards */
.travel-card:hover {
    z-index: 100 !important;
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    background: white;
}

.placeholder-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent-blue);
    opacity: 0.6;
    pointer-events: none;
    background: transparent;
    padding: 0;
    border: 1px solid var(--accent-blue);
    padding: 0.5rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Country Title Overlay Styles (Watermark + Active Header) */
.country-title-overlay {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 20; /* Above watermark, but needs to be managed */
    pointer-events: none;
    width: 100%;
    /* Flex to center the watermark and header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 1. Huge Background Watermark (Icon Only) */
.country-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem; /* Massive Icon */
    opacity: 0.1; /* Very faint */
    filter: grayscale(100%);
    z-index: 0;
}

/* 2. Active Country Header (Top of Card Stack) */
.country-header-active {
    position: absolute;
    top: 2%; /* Keep it at the very top of the container */
    z-index: 20;
    text-align: center;
    animation: fadeInDown 0.5s ease-out;
    width: 100%;
    pointer-events: none;
    transform: translateY(-50%); /* Pull it up visually */
}

.country-name-display {
    font-family: var(--font-serif);
    font-size: 3.5rem; /* Slightly smaller to prevent overlap */
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.country-culture-symbol {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    color: var(--accent-gold);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Travel Section Header (Parallax) - Unified Style */
/* Removed old positioning that was inside map-container */
.travel-section-header-container {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}


.outline-text {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 8rem;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 10px;
    opacity: 0.5;
}

/* --- THINKING UNIVERSE (Constellation Map) --- */
.thinking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.constellation-card {
    background: rgba(16, 20, 40, 0.4); /* Dark glass */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.constellation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.3);
}

.constellation-header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.constellation-header h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 800; /* Bold */
    letter-spacing: 1px;
}

.constellation-subtitle {
    font-family: var(--font-hand);
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.constellation-canvas-container {
    width: 100%;
    height: 350px;
    position: relative;
    cursor: crosshair;
}

.constellation-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Constellation Lines (Improved Visibility) */
.constellation-line {
    stroke: rgba(255, 255, 255, 0.4); /* Brighter default */
    stroke-width: 1.5; /* Thicker */
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

.constellation-card:hover .constellation-line {
    stroke: var(--accent-blue);
    stroke-width: 2; /* Even thicker on hover */
    filter: drop-shadow(0 0 5px var(--accent-blue));
}

/* Scorpio Outline (Special) */
.scorpio-outline-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1); /* Subtle ghost outline */
    stroke-width: 40; /* Wide stroke to simulate body volume if using simple path, or use fill */
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Actually better to use a thin artistic outline */
    stroke-width: 1;
    stroke-dasharray: 5, 5; /* Dashed artistic look */
}

.constellation-card:hover .scorpio-outline-path {
    opacity: 1;
    stroke: var(--accent-purple); /* Different color for the creature */
    filter: drop-shadow(0 0 10px var(--accent-purple));
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Stars */
.star-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.star-node:hover {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold);
    z-index: 10;
}

/* Tooltip for Thinking Thoughts */
.thinking-tooltip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 1rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 80%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 20;
}

.thinking-tooltip.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.thinking-tooltip h4 {
    font-size: 1rem;
    color: var(--accent-blue);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
    .thinking-grid { grid-template-columns: 1fr; }
    .constellation-card { min-height: 400px; }
}

/* --- EXPERIENCE SECTION --- */
.experience-list {
    max-width: 900px;
    margin: 0 auto;
}

.exp-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Light border */
    align-items: flex-start;
}

.exp-year {
    font-family: 'Varela Round', sans-serif; /* Rounded Font */
    font-size: 1.2rem;
    color: #a0c4ff; /* Soft Cosmic Blue/Silver - matches stars */
    min-width: 140px;
    padding-top: 5px;
    font-weight: 700; /* Bold */
}

.exp-logo-wrapper {
    width: 100px; /* Adjusted to 100px */
    height: 100px; /* Adjusted to 100px */
    flex-shrink: 0;
    /* REMOVED: White background and border */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.exp-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Removed padding to let logo fill space */
}

.exp-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #172a45; /* Dark Blue / Cosmic Navy */
    color: white;
    font-weight: 800;
    font-size: 1rem; /* Slightly larger text */
    text-align: center;
    line-height: 1.2;
    border-radius: 12px; 
}

.exp-content {
    flex-grow: 1;
}

.exp-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white; 
    font-family: 'Varela Round', sans-serif; /* Rounded Bold Font */
    font-weight: 800; /* Extra Bold */
    letter-spacing: 0.5px;
}

.exp-role {
    font-family: 'DM Sans', sans-serif; /* Clean Sans Serif */
    font-size: 1.3rem;
    color: var(--accent-gold); 
    margin-bottom: 1rem;
    display: block;
    font-weight: 600; /* Slightly bolder for role */
}

.exp-content p {
    font-family: 'DM Sans', sans-serif; /* Clean Sans Serif */
    color: rgba(255, 255, 255, 0.9); /* Brighter text color */
    line-height: 1.7;
    font-weight: 400; /* Regular weight, thicker than 300 */
}

/* --- WORKS SECTION --- */
.works-gallery {
    column-count: 2;
    column-gap: 2rem;
}

@media (min-width: 1024px) {
    .works-gallery {
        column-count: 3;
    }
}

.work-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    /* Add subtle glass border to items? */
    border: 1px solid rgba(255,255,255,0.1);
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 20, 40, 0.8); /* Darker overlay */
    backdrop-filter: blur(2px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover img {
    transform: scale(1.05);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 4rem 0;
    /* Glassmorphism Footer */
    background: rgba(16, 20, 40, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 60px 60px 0 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { height: 400px; }
}
