@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Syne:wght@400..800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
    --bg-primary: #030303;
    --bg-secondary: #080808;
    --accent: #c5a880; /* Soft luxury champagne gold */
    --accent-hover: #e5c59e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    /* Liquid Glass design tokens */
    --glass-bg-sheet: rgba(10, 10, 10, 0.35);
    --glass-bg-card: rgba(255, 255, 255, 0.015);
    --glass-bg-card-hover: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-border-hover: rgba(255, 255, 255, 0.09);
    --glass-blur: blur(30px) saturate(120%);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-magnetic: all 0.5s cubic-bezier(0.1, 0.8, 0.2, 1);
    --container-width: 1400px;
}

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    background-color: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--accent);
    color: var(--bg-primary);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

button, input, textarea {
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
    outline: none;
}

/* --- DYNAMIC BACKGROUND GLASS BLOBS --- */
.blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    -webkit-filter: blur(130px);
    opacity: 0.15;
    animation: float-blob 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -10%;
    right: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #4a6fa5; /* Slate Blue Glow */
    top: 40%;
    left: -10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.blob-3 {
    width: 700px;
    height: 700px;
    background: #8b7355; /* Dark bronze/gold */
    bottom: -10%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes float-blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.93); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.004) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.004) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
}

/* Custom Interactive Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

/* --- REVEAL ON SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- LIQUID GLASS COMPONENTS --- */
.glass-sheet {
    background: var(--glass-bg-sheet);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 32px;
    padding: 6rem 4rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .glass-sheet {
        padding: 4rem 2rem;
        border-radius: 24px;
    }
}
@media (max-width: 480px) {
    .glass-sheet {
        padding: 3rem 1.25rem;
        border-radius: 20px;
    }
}

.glass-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--glass-bg-card-hover);
    border-color: var(--glass-border-hover);
}

/* Shimmer Sweep Reflection */
.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 75%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.09),
        rgba(255, 255, 255, 0.04),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.shimmer-effect:hover::after {
    left: 150%;
}

/* --- REUSABLE UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

.section-wrapper {
    padding-bottom: 8rem;
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .section-wrapper {
        padding-bottom: 5rem;
    }
}

/* --- STICKY GLASS NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    background: rgba(3, 3, 3, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header.scrolled {
    height: 75px;
    background: rgba(3, 3, 3, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1010;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

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

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1010;
    padding: 0.5rem;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        z-index: 1005;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
}

/* --- HERO SECTION (CENTERED TYPOGRAPHY FOCUS) --- */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px; /* Reduced top gap (navigation header is 90px + 30px gap) */
    padding-bottom: 1rem; /* Collapsed bottom gap to pull next section closer */
    z-index: 2;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 1rem;
    }
}

.hero-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
}

#hero .glass-sheet {
    padding-top: 2.25rem; /* Reduced top padding by ~70% to pull content upward and center it vertically within the card */
}

@media (max-width: 768px) {
    #hero .glass-sheet {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    #hero .glass-sheet {
        padding-top: 1.25rem;
    }
}

.hero-tag {
    font-family: var(--font-display);
    font-size: 0.95rem; /* Increased to make it more intentional and less caption-like */
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em; /* Slightly reduced letter spacing for a cleaner, refined look */
    margin-bottom: 2rem; /* More space between label and main headline */
}

.hero-title {
    font-family: var(--font-display); /* Bold modern sans-serif 'Syne' */
    font-size: 3.85rem; /* Increased by ~18.5% to improve hierarchy */
    font-weight: 800;
    font-style: italic; /* Elegant italic/slanted style */
    line-height: 1.05; /* Tight stacked editorial line spacing */
    letter-spacing: -0.01em;
    margin-bottom: 2.25rem; /* Increased space between 'impossible to ignore' and description */
    text-transform: none; /* Preserves HTML title-casing */
}

.hero-title span {
    display: block;
    font-family: var(--font-serif); /* Elegant italic serif 'Playfair Display' */
    font-size: 3.85rem; /* Visually equal in size to main headline for balanced weight */
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    margin-top: 1.25rem; /* Increased space between main headline and 'impossible to ignore' */
    letter-spacing: 0;
    text-transform: none; /* Keep lowercase style */
}

@media (max-width: 1200px) {
    .hero-title,
    .hero-title span {
        font-size: 3.2rem;
    }
}

@media (max-width: 640px) {
    .hero-title,
    .hero-title span {
        font-size: 2.35rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2.5rem; /* Increased space between description and CTA buttons */
    font-weight: 300;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
}

/* PREMIUM BUTTON SYSTEM (Liquid Glass Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-magnetic);
    z-index: 1;
}

.btn-primary {
    background: rgba(197, 168, 128, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--text-primary);
}

.btn-primary:hover {
    border-color: var(--accent);
    background: rgba(197, 168, 128, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- SECTION TYPOGRAPHY --- */
.section-header {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.section-title span {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    color: var(--accent);
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
}

/* --- FEATURED MOTION WORK (VERTICAL SHOWCASE LAYOUT) --- */
#work .glass-sheet {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#work .section-header {
    padding-left: 1rem;
}

@media (max-width: 768px) {
    #work .glass-sheet {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #work .section-header {
        padding-left: 0.5rem;
    }
}

.featured-work-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 80% reduction in vertical spacing between videos */
    width: 100%;
    margin-top: 2rem;
}

.featured-video-card {
    width: 100%; /* Extended to 100% of container width */
    margin: 0 auto;
    border-radius: 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.featured-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Perfect dynamic scaling maintaining video aspect ratio */
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-secondary);
    cursor: pointer;
}

.featured-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 3;
}

.featured-video-wrapper:hover::after {
    opacity: 1;
}

.featured-video-wrapper.video-paused::after {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.featured-video-wrapper::before {
    content: 'PLAY';
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.75rem 1.75rem;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-video-wrapper.video-paused::before {
    opacity: 1;
}

.sound-toggle {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sound-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(197, 168, 128, 0.15);
    transform: scale(1.08);
}

.sound-toggle i, .sound-toggle svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.featured-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* --- ABOUT SECTION --- */
#about {
    padding-bottom: 5rem; /* Reduced bottom gap by ~37% */
}

#about .glass-sheet {
    padding-top: 4rem; /* Reduced vertical padding by ~33% */
    padding-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr; /* Reduced image width by ~25% */
    gap: 6rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    #about .glass-sheet {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.about-portrait {
    border-radius: 24px;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    max-width: 340px; /* Limits size so it does not dominate layout */
    margin: 0 auto;
    width: 100%;
}

.about-portrait img {
    width: 100%;
    height: 410px; /* Reduced portrait height slightly to keep it compact */
    object-fit: cover;
    object-position: center 15%; /* Optimizes crop so face remains focal point */
}

@media (max-width: 640px) {
    .about-portrait img {
        height: 320px; /* Reduced mobile height slightly */
    }
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-text h3 span {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    color: var(--accent);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.85; /* Increased line-height slightly for readability */
    margin-bottom: 1.25rem; /* Reduced gap between paragraphs */
    font-weight: 300;
    max-width: 620px; /* Limits reading text width */
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --- TECHNICAL SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

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

.skills-category {
    border-radius: 24px;
    padding: 3.5rem;
    transition: var(--transition-smooth);
}

.skills-category:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.skills-category-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

/* --- TECHNICAL SKILLS GRID SYSTEMS --- */
.skills-list {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

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

.skills-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.skill-tag {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tag-centered {
    grid-column: 1 / span 2;
    justify-self: center;
    width: calc(50% - 0.425rem); /* Same width as a single column tag in 2col grid */
}

@media (max-width: 600px) {
    .skills-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .skills-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid-3col .skill-tag:last-child {
        grid-column: 1 / span 2;
    }
    
    .skill-tag-centered {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(197, 168, 128, 0.05);
    transform: translateY(-2px);
}

/* --- HORIZONTAL PROCESS TIMELINE --- */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    width: 100%;
    gap: 1.5rem;
    margin-top: 3rem;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 6px; /* Centered with the 12px dot height */
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-node {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px var(--accent);
    position: relative;
    z-index: 2;
}

.timeline-card-content {
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    width: 100%;
    height: calc(100% - 28px); /* Account for dot and margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.timeline-card-content:hover {
    background: var(--glass-bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.timeline-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .timeline-horizontal {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding-left: 0.5rem;
    }
    
    .timeline-horizontal::before {
        top: 0;
        bottom: 0;
        left: 11px; /* Center of the left-aligned dot */
        width: 1px;
        height: 100%;
        right: auto;
    }
    
    .timeline-step {
        width: 100%;
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
    }
    
    .timeline-node {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .timeline-card-content {
        text-align: left;
        align-items: flex-start;
        height: auto;
        padding: 1.5rem;
    }
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-header h2 span {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    color: var(--accent);
}

.contact-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.socials-wrapper {
    margin-top: 4rem;
}

.socials-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.contact-form {
    border-radius: 28px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (max-width: 640px) {
    .contact-form {
        padding: 2.5rem 1.5rem;
    }
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-textarea {
    height: 120px;
    resize: none;
}

.form-label {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
    top: -1.25rem;
    left: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.02);
}

.form-submit-row {
    margin-top: 1rem;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4rem 0;
    background: transparent;
    z-index: 2;
    position: relative;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.2em;
}

.footer-center {
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-social-link {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

/* Mobile Stacking Version */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* --- TOAST NOTIFICATIONS (LIQUID GLASS) --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: auto;
    
    /* Animation states */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.active {
    opacity: 1;
    transform: translateX(0);
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

@media (max-width: 640px) {
    .toast-container {
        bottom: 1.5rem;
        right: 1.5rem;
        left: 1.5rem;
    }
    
    .toast {
        width: 100%;
    }
}
