:root {
    /* Colors */
    --bg-color: #02040a;
    /* Deepest Navy Black */
    --surface-color: #0B1120;
    /* Dark Blue Surface */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    /* Sky Blue */
    --accent-glow: rgba(56, 189, 248, 0.4);
    --border-color: #1e293b;

    /* Spacing */
    --container-width: 1400px;
    --gutter: 2rem;
    --section-spacing: 120px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animation */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
    scroll-behavior: initial;
    /* Handled by Lenis */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}



/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    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='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body.project-detail-page .noise-overlay {
    opacity: 0.045;
    /* Slightly stronger grain as requested */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

/* Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    display: none;
    /* Hidden by default */
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s;
    display: none;
    /* Hidden by default */
}

@media (pointer: fine) {

    .cursor,
    .cursor-follower {
        display: block;
        /* Only show if mouse is present */
    }
}

/* Navigation (Floating Pill) */
.nav-pill {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 17, 32, 0.7);
    /* Dark surface with opacity */
    padding: 0.5rem 0.6rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for depth */
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: top 0.3s ease;
}

.nav-items {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    /* Light Gray */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle light hover */
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-color);
    /* Sky Blue */
    color: #000;
    /* Dark text for contrast */
    box-shadow: 0 0 15px var(--accent-glow);
    font-weight: 600;
}

/* Mobile Nav Adjustments */
@media (max-width: 600px) {
    .nav-pill {
        top: 1rem;
        padding: 0.4rem;
        width: 90%;
        justify-content: center;
        background: rgba(11, 17, 32, 0.85);
        /* Less transparent on mobile */
    }

    .nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    height: auto;
    /* Allow natural height based on content */
    min-height: 0;
    /* Override any defaults */
    display: flex;
    align-items: flex-start;
    /* Align top */
    position: relative;
    padding-top: 150px;
    /* Significant top padding for nav */
    padding-bottom: 100px;
    /* Standard section spacing */
}

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

/* Ambient Motion Layer */
.ambient-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    /* Increased visibility: 0.08 -> 0.15 */
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(2, 4, 10, 0) 60%);
    filter: blur(80px);
    /* Reduced blur slightly for definition */
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    /* Boosted opacity */
    animation: pulse-ambient 15s infinite ease-in-out;
}

@keyframes pulse-ambient {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

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

.shape-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 10%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Give text slightly more room */
    gap: 2rem;
    /* Reduce gap to pull them closer */
    align-items: center;
    width: 100%;
    max-width: 1400px;
    /* Prevent it from stretching too wide */
    margin: 0 auto;
}

.hero-text {
    max-width: 100%;
    /* Let it fill the column */
}

.hero-visual {
    position: relative;
    width: 100%;
    /* Use aspect ratio to maintain shape regardless of viewport height */
    aspect-ratio: 4/5;
    max-height: 80vh;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.hero-visual:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Blend slightly with dark theme */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
        /* Hide on mobile to focus on text or stack it differently */
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Reduced from 3rem-8vw-7rem */
    letter-spacing: -0.02em;
    line-height: 1.1;
    /* Slightly looser than 1 */
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    font-weight: 700;
    /* Ensure bold presence */
}

.hero-name-group {
    display: block;
    font-size: 1.1em;
    line-height: 1;
    /* Tighten line height for name */
    margin-top: 0.2rem;
}

.hero-name-solid {
    color: #fff;
    /* Solid white for Sahadul */
}

/* Solid Accent Name */
.hero-name-accent {
    color: var(--accent-color);
    /* Sky Blue */
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(240, 244, 248, 0.95);
    /* High contrast */
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 500;
    /* Stronger weight */
    line-height: 1.8;
    /* Better breathing room */
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
    /* Bring above background elements */
    /* Ensure spacing from text */
    margin-top: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    pointer-events: none;
    /* Prevent interference */
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent-color);
    animation: scroll-drop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scroll-drop {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Section General */
.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section-line {
    height: 1px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Work Filters */
.work-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.2rem;
    padding-left: 0;
    /* Reset padding */
    padding-right: 0;
    transition: color 0.3s;
}

.filter-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-primary);
    background: none;
    /* Reset background */
    border: none;
    /* Reset border */
}

.filter-btn.active:after {
    width: 100%;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

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

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.service-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    opacity: 0.8;
}

.service-list li::before {
    content: '\2022';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.project-card {
    /* group: project-card; removed invalid property */
    cursor: pointer;
}

.project-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    /* Smooth shrink */
}

/* Image Transition */
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

/* Hover State: Darken and Blur Image */
.project-media:hover img {
    filter: brightness(0.6) blur(2px);
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Overlay Container (Centers Button) */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

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

/* View Button Styling - Glass Fix via Pseudo-element */
.view-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* Text & Border */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    /* Compact size */
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    /* Animation base */
    transform: translateY(20px) scale(0.9) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    /* Essential for pseudo-element clipping */
    overflow: hidden;
    background: transparent;
    /* No bg on main element */
    z-index: 10;
}

/* The Glass Layer - Isolated for stability */
.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    transition: background 0.4s ease;
    will-change: background;
}

.view-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(0) scale(1.05) translateZ(0);
}

.view-btn:hover::before {
    background: rgba(255, 255, 255, 0.3);
    /* Stronger glass on hover */
}

/* Featured Button Specifics */
.featured-card .view-btn {
    opacity: 0;
    padding: 0.6rem 1.4rem;
    /* Match proportional sizing */
    font-size: 0.8rem;
    transform: scale(0.9) translateZ(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.featured-card:hover .view-btn {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Button Animation on Hover */
.project-media:hover .view-btn {
    transform: translateY(0) scale(1);
}

/* Local Grain Effect */
.has-grain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    /* Higher opacity for visible texture */
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-media {
    transform: scale(0.98);
}

.project-card:hover .project-img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.about-visual {
    position: relative;
    width: 100%;
    margin-left: auto;
    /* Align to the right */
    max-width: 450px;
    /* Constrain width on desktop */
    aspect-ratio: 3/4;
    /* Classic editorial portrait ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face/upper body */
    transition: transform 0.7s ease;
}

.about-visual:hover .profile-img {
    transform: scale(1.03);
    /* Subtle zoom */
}

@media (max-width: 768px) {
    .about-visual {
        aspect-ratio: 4/5;
        /* Slightly shorter on mobile if needed, or keep 3/4 */
        max-width: 400px;
        /* Limit width on mobile */
        margin: 0 auto;
    }
}

.placeholder-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0f172a, #1e293b);
    /* Can replace with actual img/video tag later */
}

.project-info {
    padding: 1.5rem 0.5rem;
    /* Increased height/length of the "tab" content */
    min-height: 120px;
    /* Ensure a consistent taller tab feel */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Global Section Styling */
section,
.footer {
    position: relative;
    /* Removed scroll-margin-top to let JS handle exact positioning */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    /* Ensure text column matches image height */
    padding-top: 0;
    /* Ensure no extra top padding interferes */
    /* Mobile defaults used here, overrides below */
}

/* Desktop-specific alignment for "Pinned Title, Centered Content" layout */
@media (min-width: 901px) {
    .about-text {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center the paragraphs vertically */
        /* Padding to prevent overlap with absolute title if height is constrained */
        padding-top: 4rem;
    }

    .about-text .section-title {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
        width: 100%;
        /* "Raise only the About Me word" */
    }
}

.about-text .lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    padding: 0.75rem 1.5rem;
    /* Increased vertical for length, horizontal for balance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    /* Changed from 50px to 8px ("Stack radius 5-10") */
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.visual-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: #1a1a1a;
    border-radius: 8px;
}

/* Contact Section - Cinematic Outro */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.contact-visual-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    /* Ultra-wide cinematic aspect */
    border-radius: 12px;
    overflow: hidden;
}

.contact-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken for text readability */
    transition: transform 10s ease;
}

.contact-visual-container:hover .contact-bg-img {
    transform: scale(1.05);
    /* Slow subtle zoom */
}

.contact-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.outro-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    /* Removed margin to bring text closer */
    letter-spacing: -0.02em;
}

/* Text Styles */
.outro-action {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    /* Reduced size per request */
    font-family: var(--font-body);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    font-style: normal;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

/* Creative Minimal Input - Floating Glass */
.creative-email-input {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0.6rem 0.6rem 2rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 90%;
    width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* animation: float-input 6s ease-in-out infinite; */
    /* Removed float for cleaner feel per "change font/mood" request */
}

@keyframes float-input {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.creative-email-input:hover,
.creative-email-input:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
    /* Lift on hover override */
    animation-play-state: paused;
}

.minimal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    flex-grow: 1;
    font-family: var(--font-body);
    outline: none;
    letter-spacing: 0.01em;
}

.minimal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
    /* Removed italic */
    transition: color 0.3s;
}

.creative-email-input:focus-within .minimal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.minimal-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: #fff;
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.minimal-submit svg {
    transition: transform 0.4s ease;
}

.minimal-submit:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.minimal-submit:hover svg {
    transform: translate(2px, -2px);
}

/* Minimal Footer Area within Contact */
.contact-footer-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.subtle-email {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.subtle-email:hover {
    color: var(--text-primary);
}

.social-icons-minimal {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
}

.social-icon-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Mobile adjust */
@media (max-width: 600px) {
    .contact-visual-container {
        aspect-ratio: 16/9;
    }

    .contact-footer-minimal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.back-to-top {
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.back-to-top:hover {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
}

/* Featured Project Layout */
#featured-container {
    opacity: 1;
    margin-bottom: 4rem;
    margin-top: 2rem;
    /* Reduced to close gap with title */
}

.featured-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    position: relative;
    /* Context for absolute positioning */
    overflow: hidden;
    /* Ensure rounded corners clip overlay */
    border-radius: 4px;
}

.featured-card .project-media {
    width: 100%;
    aspect-ratio: 21/9 !important;
    /* Cinematic wide aspect */
    border-radius: 4px;
    /* Slightly sharper for editorial feel */
    position: relative;
    /* Ensure overlay aligns */
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    /* Backdrop for transparent PNG */
}

/* Logo Padding Utility */
.logo-padded {
    object-fit: contain !important;
    padding: 15% !important;
    background: radial-gradient(circle, #1e293b 0%, #02040a 100%);
}

/* Image Top Alignment Utility */
.img-top-align {
    object-position: top center !important;
}

/* Fix image cropping - adjusted to fill container completely */
.featured-card .project-media img {
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0;
    transform: none;
}

/* Featured Button Interactions */
.featured-card .project-overlay {
    background: transparent;
    /* Clean image by default */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.4s ease;
}

.featured-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Slight dim on hover */
}

.featured-card .view-btn {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.1);
    /* Glassy transparency */
    backdrop-filter: blur(10px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle detail */
    color: #fff;
    /* White text for contrast */
    padding: 1rem 2rem;
    /* Slightly larger for elegance */
    border-radius: 30px;
    font-weight: 400;
    /* Lighter font weight */
    letter-spacing: 0.5px;
}

.featured-card:hover .view-btn {
    opacity: 1;
    transform: scale(1);
}

.featured-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem;
    /* Spacing from edge */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    /* Readability gradient */
    color: #fff;
    z-index: 3;
    pointer-events: none;
    /* Ensure absolute positioning works even if JS fails to clean styles */
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    /* Smooth sync with image */
}

/* Sync text scale with image container on hover */
.featured-card:hover .project-info {
    transform: scale(0.98) !important;
    /* Matches the placeholder shrink */
}

.featured-card .project-info h3 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.featured-card .project-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Featured */
@media (max-width: 768px) {
    .featured-card .project-media {
        aspect-ratio: 16/9 !important;
    }

    /* Make featured card look exactly like grid cards on mobile */
    @media (max-width: 600px) {
        .featured-card {
            margin-bottom: 3rem;
            /* Match grid gap */
            border-radius: 0;
            /* Reset if grid has none or specific */
        }

        .featured-card .project-media {
            aspect-ratio: 16/9 !important;
            /* Match grid */
            border-radius: 8px;
            /* Match properties */
        }

        .featured-card .project-info {
            position: static !important;
            /* Remove absolute positioning */
            background: transparent !important;
            /* Remove gradient */
            padding: 1.5rem 0.5rem !important;
            /* Match .project-info padding */
            min-height: 120px;
            width: 100%;
            transform: none !important;
            /* Disable hover effects or fixed transforms */
            pointer-events: auto;
        }

        .featured-card .project-info h3 {
            font-size: 1.5rem !important;
            /* Match grid h3 */
            margin-bottom: 0.5rem;
            color: #fff;
            /* or var(--text-primary) */
        }

        .featured-card .project-info p {
            font-size: 0.9rem !important;
            /* Match grid p */
            color: var(--text-secondary) !important;
        }
    }
}

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

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented */
    }
}

/* Back to Home Button - Cinematic Minimal */
.back-home-btn {
    position: relative;
    /* Scrolls with content */
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    transition: color 0.5s ease;
    text-decoration: none;
    opacity: 0.7;
    margin-top: 0;
    /* Aligns within container */
}

.back-home-btn svg {
    width: 16px;
    /* Delicate icon */
    height: 16px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    stroke-width: 1.5;
}

/* Underline Animation */
.back-home-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    /* Subtle accent line */
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.8;
}

.back-home-btn:hover {
    background: transparent;
    border-color: transparent;
    color: #fff;
    /* High contrast on hover */
    opacity: 1;
    transform: none;
    /* No nudge, just flow */
}

.back-home-btn:hover svg {
    transform: translateX(-5px);
    /* Smooth arrow retraction */
}

.back-home-btn:hover::after {
    width: 100%;
    /* Draw line */
}

/* --- Project Detail Page Styles --- */

body.project-detail-page {
    background-color: #02040a;
    background-image:
        /* Vignette: Subtle darkening at edges to focus center */
        radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%),
        /* Glow: Soft atmospheric light behind hero (top-left) */
        radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
        /* Base: Dark charcoal top to deep black bottom */
        linear-gradient(to bottom, #111827 0%, #02040a 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* Split Layout Container */
.detail-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Image wider than text */
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Mobile Overflow Fix */
@media (max-width: 900px) {
    .detail-split-layout {
        display: flex;
        /* Switch to flex column for better control */
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        /* Safety */
    }

    .detail-hero-media {
        height: auto !important;
        width: 100% !important;
        aspect-ratio: auto !important;
        /* Let image decide natural height */
        max-height: none !important;
        /* Remove height constraint */
        border-radius: 8px;
        overflow: visible !important;
        /* Allow content/shadows to overflow if needed */
    }

    .detail-hero-media img,
    .detail-hero-media video {
        display: block !important;
        /* Fix inline baseline gap issues */
        position: static !important;
        /* Normal flow */
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        /* Ensure full visibility */
        max-height: none !important;
        /* Let it grow as tall as needed */
        padding-bottom: 0 !important;
    }

    .detail-right-col {
        padding-top: 0;
        width: 100%;
        min-width: 0;
        /* Flexbox shrink fix */
    }

    .detail-brand-desc,
    .detail-overview p {
        max-width: 100%;
        /* Override ch width */
        width: 100%;
        word-wrap: break-word;
    }

    .detail-title {
        font-size: 2.2rem;
        /* Reduce title size on mobile to prevent overflow */
        word-wrap: break-word;
    }
}

/* Left Column - Hero Image */
.detail-hero-media {
    position: relative;
    width: 100%;
    /* Fill screen height */
    height: 75vh;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.detail-hero-media img,
.detail-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column - Info */
.detail-right-col {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.detail-header {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1;
    font-weight: 400;
}

/* Replaces .detail-role with tags */
.detail-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.detail-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(5px);
}

.detail-brand-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #e2e8f0;
    /* Brighter than secondary */
    margin-bottom: 3rem;
    max-width: 65ch;
}

.detail-overview-section {
    margin-top: 1rem;
}

.detail-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
    margin-bottom: 1.5rem;
}

.detail-overview p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 65ch;
    margin-bottom: 2rem;
}


/* Image Gallery Row */
.detail-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    /* Space above video */
}

/* Featured Layout (1 Landscape + 2 Grid) */
.detail-gallery-row.layout-featured {
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
}

.detail-gallery-row.layout-featured .gallery-card:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

/* Normal Grid items in featured layout */
.detail-gallery-row.layout-featured .gallery-card:not(:first-child) {
    aspect-ratio: 1/1;
    /* Square or fitting size for side-by-side */
}

/* Portrait Duo Layout */
.detail-gallery-row.layout-portrait-duo {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.detail-gallery-row.layout-portrait-duo .gallery-card {
    aspect-ratio: 9/16;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

@media (max-width: 768px) {
    .detail-gallery-row.layout-portrait-duo {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* WIP Status Section */
.wip-container {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    /* Or keep specific alignment if requested */
}

.wip-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.wip-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.wip-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    /* Or a specific color like yellow/orange */
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.wip-desc {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wip-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    opacity: 0.8;
}

.production-status {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.production-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    /* or a secondary color like #94a3b8 */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.production-dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.production-text {
    color: var(--text-secondary);
    /* Muted/Secondary */
    font-size: 0.95rem;
    font-weight: 400;
}

/* Reusing keyframes if they exist, or redefining to ensure 1.5s matches */
@keyframes pulse-dot {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.gallery-card {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Soft glow/lift */
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.05);
    filter: brightness(1.15);
}

@media (max-width: 900px) {
    .detail-gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .detail-gallery-row {
        grid-template-columns: 1fr;
    }
}

/* Video Section - Full Width Below Split */
.detail-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    /* Cinematic Wide */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5rem;
    background: #000;
}

@media (max-width: 600px) {
    .detail-video-container {
        aspect-ratio: 16/9;
        /* Maintain standard video aspect */
        height: auto;
        /* Ensure it doesn't get squashed */
    }
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-icon {
    font-size: 1.5rem;
    color: #fff;
    margin-left: 4px;
}

.detail-video-container:hover .video-overlay-hint {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.detail-video-container.playing .video-overlay-hint {
    opacity: 0 !important;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
}

/* Portrait Video Mode */
.detail-video-container.portrait-mode {
    max-width: 400px;
    margin: 0 auto 5rem auto;
    aspect-ratio: 9/16;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* Soft shadow lift */
    background: transparent;
    /* Remove black bg if present */
}

@media (max-width: 600px) {
    .detail-video-container.portrait-mode {
        max-width: 100%;
        border-radius: 12px;
    }
}



.detail-meta {
    margin-top: 2rem;
    padding-top: 1rem;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-list li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.detail-showcase {
    margin-bottom: 5rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.showcase-grid-item {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #1e293b;
    position: relative;
}

.showcase-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.showcase-grid-item:hover img {
    transform: scale(1.02);
}

/* Responsive Split */
@media (max-width: 900px) {
    .detail-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-hero-media {
        aspect-ratio: 16/9;
        /* Back to landscape on mobile */
        max-height: 50vh;
    }

    .detail-right-col {
        padding-top: 0;
    }

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

/* Contact CTA Button */
.contact-cta-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: 5px;
}

/* Cinematic Outro & Footer */
.project-outro-section {
    position: relative;
    padding: 0;
    /* Remove bottom padding here, let footer handle it */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Seamless blend: Transparent to base color */
    background: transparent;
}

.project-divider {
    width: 65%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    /* faint line */
    margin: 5rem auto 4rem auto;
    /* generous top spacing */
}


.project-cta-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.outro-headline {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.outro-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0;
}

.outro-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
    transition: all 0.3s ease;
}

.outro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
    background: #fff;
    filter: brightness(1.1);
}

.project-minimal-footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    /* Reduced top padding, added slight bottom padding */
    border-top: none;
    /* Remove border if it creates a hard line */
    margin-top: 4rem;
    width: 100%;
}

.project-minimal-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    /* Lower opacity for subtlety */
    margin: 0;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    /* Adjusted for 3 lines */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    /* Above overlay */
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
@media (max-width: 600px) {
    .nav-pill {
        justify-content: space-between;
        padding: 0.8rem 1.5rem;
        /* Increased height ("length") as requested */
        width: 100%;
        /* Full Width */
        max-width: 100vw;
        top: 0;
        left: 0;
        transform: none;
        /* No centering needed */
        border-radius: 0;
        /* No rounding */

        /* Darker theme, reduced opacity, blur */
        background: rgba(2, 4, 10, 0.65);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle border */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
        align-items: center;
        display: flex;
    }

    .mobile-logo {
        display: block;
        z-index: 1002;
        height: 28px;
        /* Increased from 14px ("some big") */
        width: auto;
        object-fit: contain;
    }

    .hamburger {
        display: flex;
        z-index: 1003;
        /* Ensure it's above the nav-items (1000) and logo/other elements */
    }

    .nav-items {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-color);
        /* Solid background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        transform: translateY(-100%);
        z-index: 1000;
        /* Behind logo/hamburger but above content */
        padding-bottom: 2rem;
    }

    /* Active State (Open) */
    .nav-items.active {
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-item {
        font-size: 1.5rem;
        font-weight: 600;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Stagger Animation for Items */
    .nav-items.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-items.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-items.active .nav-item:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-items.active .nav-item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-items.active .nav-item:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-items.active .nav-item:nth-child(5) {
        transition-delay: 0.3s;
    }

    /* Hamburger Animation (3 Lines) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Layout Refinements */
    :root {
        --section-spacing: 60px;
        --gutter: 1.25rem;
    }

    .container {
        padding: 0 var(--gutter);
        width: 100%;
        max-width: 100vw;
        /* overflow-x: hidden; REMOVED to fix button glow clipping */
    }

    /* Fix Stretched Contact Image */
    .contact-bg-img {
        object-fit: cover !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* Hero Button Mobile Improvement */
    .hero-actions {
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem;
        /* Slightly tighter */
    }

    .hero-actions .btn {
        padding: 1rem 2.5rem;
        /* Larger touch target */
        font-size: 1rem;
        box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
        /* Subtle glow */
    }

    /* Contact Section Height Fix */
    .contact-visual-container {
        min-height: 400px;
        /* Give it more breathing room */
    }
}