:root {
    --bg-color: #002244;
    /* Deep Blue - Main Background */
    --text-color: #ffffff;
    /* White - High readability */
    --text-muted: #d0d7de;
    /* Muted Text - Light Grey-Blue */
    --accent-color: #F93944;
    /* Radiant Red - Primary Action/Highlight */
    --secondary-color: #F8CF40;
    /* Saffron Yellow - Secondary Highlight */
    --tertiary-color: #055C9D;
    /* Cerulean Blue - Card BG/Tertiary */
    --card-bg: transparent;
    /* Transparent to show deep blue bg */

    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.4s;
    --padding-section: 150px 12%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Cursor Logic - Desktop Only */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    scroll-padding-top: 100px;
    /* Ensure overscroll/base is dark */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.8;
    /* Increased line-height for readability */
}

/* Custom Cursor */
/* Custom Cursor */
.cursor,
.cursor-follower {
    display: none;
    /* Hidden by default (Mobile) */
}

@media (hover: hover) and (pointer: fine) {

    .cursor,
    .cursor-follower {
        display: block;
    }

    .cursor {
        width: 10px;
        height: 10px;
        background-color: var(--accent-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), width 0.3s, height 0.3s, background-color 0.3s;
    }
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.3s;
}

body.hovering .cursor {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
}

body.hovering .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent-color);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 6%;
    /* Increased padding */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 34, 68, 0.9);
    /* Deep Blue Tint */
    backdrop-filter: blur(12px);
    transition: padding 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .line {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

header.scrolled {
    padding: 20px 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide Custom Cursor Class */
body.hide-cursor .cursor,
body.hide-cursor .cursor-follower {
    opacity: 0 !important;
}

/* Hovering Effect */
body.hovering .cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(249, 57, 68, 0.2);
    /* Red tint */
}

body.hovering .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.5;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-color);
    text-transform: uppercase;
    text-decoration: none;
}

/* Manual Kerning for 'A' and 'Y' in 'ENES KAYNAR' */
.logo span:nth-child(7) {
    margin-right: -0.12em;
}

.nav-links {
    display: flex;
    gap: 50px;
    /* Increased gap between links */
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 8px;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.line {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-speed);
}

/* Sections */
/* Sections */
/* Sections */
/* Sections */
.section {
    padding: var(--padding-section);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-out;
    /* Smooth fade-in for container */
}

.section.visible {
    opacity: 1;
}

.section-title {
    font-size: 5rem;
    margin-bottom: 80px;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: -2px;
    line-height: 1.1;
    text-align: center;
    cursor: default;
}

/* Staggered Text Animation */
.section-title span.word {
    display: inline-block;
    margin-right: 0.25em;
    vertical-align: bottom;
}

.section-title span.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    /* Meaningful rise */
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1), opacity 1s ease;
    will-change: transform, opacity;
}

.section.visible .section-title span.char {
    opacity: 1;
    transform: translateY(0);
}


/* Motion Design Section */
.showreel-container {
    width: 100%;
    margin-bottom: 80px;
    /* More space below showreel */
    border-radius: 0;
    /* Removed curve */
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.showreel-container .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.showreel-container iframe,
.video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* pointer-events restored for interaction */
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-link:hover .video-thumb {
    opacity: 0.5;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.video-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    color: var(--accent-color);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.6);
    /* Navy tint instead of black */
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1);
    transform-origin: top;
    pointer-events: none;
    /* Let clicks pass through if needed, though usually video is auto */
}

/* Slide up to reveal */
.showreel-container:hover .overlay {
    opacity: 1;
    transform: translateY(-100%);
}

.showreel-container.is-playing .overlay,
.showreel-container.is-playing:hover .overlay {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.overlay span {
    color: #fff;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-size: 4rem;
    /* Cinematic Text */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Interactive Text Spans */
.interactive-text span {
    display: inline-block;
    transition: transform 0.1s linear;
    will-change: transform;
    color: var(--text-color);
    /* Ensure visible color */
}

/* Ensure spaces have width */
.interactive-text span:empty,
.interactive-text span:contains('\00A0') {
    min-width: 0.3em;
}


.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Increased grid gap */
    width: 100%;
}

/* Graphic Design Page - 2 Column Layout (Default) */
/* #graphic-design .projects-grid {
    grid-template-columns: repeat(3, 1fr);
/* Graphic Design Page Styles */
#graphic-design .image-wrapper {
    padding-bottom: 0;
    height: auto;
    background-color: transparent;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

#graphic-design .project-info {
    padding-top: 5px;
    flex-direction: column !important;
    /* Stack title and link */
    align-items: flex-start;
}

#graphic-design .image-wrapper img {
    position: relative;
    /* Default flow */
    width: 100%;
    height: auto;
    object-fit: contain !important;
    /* Force full image visibility */
    background-color: transparent;
    max-height: 80vh;
    /* Allow taller images for vertical designs */
    width: 100%;
}

/* Ensure wrapper creates a clickable block */
#graphic-design .image-wrapper {
    display: block;
    position: relative;
}

#graphic-design .project-meta h3 {
    font-size: 1.8rem;
    margin: 5px 0 5px 0;
    /* Add slight top margin */
    font-weight: 700;
}

#graphic-design .project-meta {
    flex-direction: column;
    align-items: flex-start;
}

#graphic-design .show-more {
    margin-left: 0;
    margin-top: 5px;
    font-size: 1rem;
}


.project-card {
    background: transparent;
    /* Removed card background */
    /* border-radius removed from container */
    position: relative;
    /* Removed overflow: hidden so content flows naturally */
}

/* Hover effect now focuses on the media, not the whole card */
.project-card:hover .video-wrapper,
.project-card:hover .image-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Wrappers get the radius now */
.video-wrapper,
.image-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    height: 0;
    background: #000;
    overflow: hidden;
    border-radius: 0;
    /* Removed curve */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-wrapper .placeholder-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover .placeholder-art {
    transform: scale(1.05);
}

.project-info {
    padding: 15px 0 0 0;
    z-index: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Normal order */
    width: 100%;
}

.project-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.show-more {
    font-size: 0.9rem;
    color: var(--secondary-color);
    /* Yellow for 'Show more' */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
    margin-left: 10px;
    /* Safety spacing */
}

.show-more:hover,
.project-card:hover .show-more {
    color: var(--accent-color);
}

/* Case Study Link - Hidden */
.case-study-link {
    display: none;
}

.project-info h3 {
    font-size: 2.5rem;
    /* Increased size */
    margin-bottom: 0px;
    margin-top: 5px;
    /* Space between type and title */
    color: var(--text-color);
    display: inline-block;
    position: relative;
    cursor: pointer;
    line-height: 1.1;
}

.project-info h3 a {
    text-decoration: none;
    color: inherit;
}

.project-info p {
    font-size: 0.9rem;
    /* Slightly smaller for elegance */
    color: var(--secondary-color);
    /* Yellow for categories */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: normal;
}

/* Underline animation for title */
.project-info h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.project-card:hover .project-info h3::after {
    width: 100%;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Case Study Link */
.case-study-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    /* Softer text color by default */
    padding: 0;
    margin-top: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 500;
}

.case-study-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.case-study-link:hover {
    color: var(--accent-color);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.case-study-link:hover::after {
    width: 100%;
    /* Underline animation */
}

.case-study-link i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.case-study-link:hover i {
    transform: translateX(6px);
    /* Subtle arrow shift */
}

.case-study-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.case-study-content.expanded {
    max-height: 600px;
    /* Allow enough space */
    opacity: 1;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.cs-item {
    margin-bottom: 20px;
}

.cs-item h4 {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.cs-item p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.6;
    margin: 0;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tools-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: background 0.3s, color 0.3s;
}

.tools-tags span:hover {
    background: var(--tertiary-color);
    color: #fff;
}

/* About Section */
.about-content {
    display: flex;
    gap: 100px;
    /* More space between image and text */
    align-items: flex-start;
    /* Align to top instead of center for cleaner look with long text */
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.img-placeholder {
    width: 350px;
    height: 350px;
    /* Larger image placeholder */
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(249, 57, 68, 0.3);
    box-shadow: 0 0 40px rgba(249, 57, 68, 0.1);
    font-size: 5rem;
    color: var(--text-muted);
}

.about-text {
    flex: 1.5;
    padding-top: 20px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
    /* Constrain width for readability */
    line-height: 1.9;
}

/* Graphic Design Cards */
.graphic-card .image-wrapper {
    padding-bottom: 75%;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    /* Center them */
    flex-wrap: wrap;
    gap: 60px;
    /* More gap */
}

.contact-item {
    text-align: center;
    padding: 60px 40px;
    background: var(--card-bg);
    border-radius: 16px;
    min-width: 300px;
    transition: transform 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* --- Case Study Hero Overrides (Global) --- */
/* --- Case Study Hero Overrides (Global) --- */
/* --- Case Study Hero Overrides (Global) --- */
/* --- Case Study Hero Overrides (Global) --- */
/* --- Case Study Hero Overrides (Global) --- */
/* --- Case Study Hero Overrides (Global) --- */
.project-hero {
    position: relative !important;
    /* Normal flow */
    width: 100%;
    height: 60vh;
    /* Shorter video height as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Overlay (Inside Hero, Z-2) */
.hero-overlay {
    opacity: 1 !important;
    /* Always visible */
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    opacity: 1 !important;
    /* Always visible */
    z-index: 3;
    pointer-events: none;
    width: 100%;
    padding-top: 0;
    /* Centered perfectly */
    color: #fff !important;
}

.hero-content h1,
.hero-content p {
    color: #fff !important;
}

/* Ensure video covers full screen and is INTERACTIVE */
.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* No interaction for background loop */
}

/* Updated to fit screen without clipping controls */
.video-background-wrapper iframe {
    width: 100vw !important;
    height: 56.25vw !important;
    /* Force 16:9 Aspect Ratio based on width */
    min-height: 100vh;
    min-width: 177.77vh;
    /* Force 16:9 based on height */
    opacity: 1 !important;
    pointer-events: none;
    /* No interaction */
    border: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Content layer styling - Standard Flow */
.detail-content {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
    margin-top: 0 !important;
    padding: 80px 20px 150px 20px !important;
    /* Added 150px bottom padding for scroll space */

    min-height: auto;
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(auto, 850px) 250px !important;
    justify-content: center;
    gap: 100px !important;
    box-shadow: none;
}

/* Prevent black background from showing around media */
.main-col {
    background: transparent;
    width: 100%;
    height: auto !important;
    /* Force auto height, no fixed constraints */
    max-height: none !important;
    /* Remove any max-height */
    overflow: visible !important;
    min-height: auto;
}

/* Local Video Grid Styling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    background: transparent;
}

.local-video {
    width: 100%;
    height: auto;
    display: block;
}

.image-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
    background: transparent;
    overflow: visible !important;
    /* Don't crop images */
    min-height: auto;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.single-video-wrapper {
    margin-top: 60px;
    margin-bottom: 30px;
    background: transparent;
}

.single-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* We need to restructure the inner content via CSS since we can't easily change HTML structure on all pages quickly. */

@media(max-width: 900px) {
    .detail-content {
        grid-template-columns: 1fr !important;
        max-width: 700px !important;
        /* Constrain on mobile */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Standard sticky sidebar */
.detail-content .sidebar {
    position: sticky;
    top: 100px !important;
    height: fit-content;
}

.contact-item:hover {
    transform: translateY(-10px);
    background-color: var(--tertiary-color);
    /* Blue Highlight */
    border-color: var(--secondary-color);
    /* Yellow Border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-item i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.contact-item h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 400;
}

.contact-item p a {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 300;
}

.contact-item p a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-color);
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 30px;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: left;
        /* Aligned left for better readability on mobile */
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .img-placeholder {
        width: 250px;
        height: 250px;
    }

    :root {
        --padding-section: 100px 8%;
    }

    /* Fix About Section on Mobile/Tablet */
    .about-content {
        flex-direction: column;
        align-items: center;
        /* Centers items, preventing flex-stretch squeezing */
        text-align: center;
        gap: 40px;
    }

    .about-image {
        width: 100%;
        justify-content: center;
    }

    .about-image img {
        width: 300px;
        height: 300px;
        /* Enforces aspect ratio */
        object-fit: cover;
        /* Prevents squeezing/distortion */
        border-radius: 50%;
        max-width: 80vw;
        /* Responsive safety */
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
    }

    .about-text {
        width: 100%;
        padding-top: 0;
        text-align: center;
        /* Ensures text is consistently centered */
    }

    .about-text h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .about-text p {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full screen menu on mobile */
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2.2rem;
        /* Reduced to prevent wrapping on small screens */
        word-wrap: break-word;
        /* Safety break if needed */
    }

    header {
        padding: 20px 5%;
    }

    /* Fix Contact Cards on small screens */
    .contact-item {
        min-width: 100%;
        padding: 40px 20px;
    }

    /* Mobile Showreel: Disable blur overlay to allow video interaction */
    .overlay,
    .showreel-container:hover .overlay {
        display: none !important;
    }

    .showreel-container::after {
        content: 'SHOWREEL';
        position: absolute;
        bottom: 15px;
        left: 20px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        letter-spacing: 2px;
        font-weight: 600;
        pointer-events: none;
    }
}

/* Client Logos Section */
.client-logos-section {
    padding: 0 20px 60px 20px;
    background-color: transparent;
    text-align: center;
    margin-top: -100px;
    position: relative;
    z-index: 5;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 90px;
    /* Increased gap for larger logos */
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container img {
    height: 90px;
    /* Increased by ~2.5x */
    width: auto;
    opacity: 0.6;
    /* Slightly increased visibility */
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(10);
    /* Brightness to make them white/visible on dark bg */
    object-fit: contain;
}

.logo-container img:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
    /* reduced scale slightly since they are bigger */
}

@media(max-width: 768px) {
    .logo-container {
        gap: 40px;
    }

    .logo-container img {
        height: 60px;
        /* Increased mobile size */
    }
}

/* Specific Logo Sizing Overrides */
.logo-container img[src*='PR.png'] {
    height: 100px;
}

.logo-container img[src*='mavigri.png'],
.logo-container img[src*='ipicubilism.png'] {
    height: 117px;
}

.logo-container img[src*='plus.png'] {
    height: 75px;
}

@media(max-width: 768px) {
    .logo-container img[src*='PR.png'] {
        height: 66px;
    }

    .logo-container img[src*='mavigri.png'],
    .logo-container img[src*='ipicubilism.png'] {
        height: 78px;
    }

    .logo-container img[src*='plus.png'] {
        height: 50px;
    }
}



/* About Me Section Styling */
#about .section-title {
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 300px;
    /* Fixed width for image container */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    /* No rounded corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    /* Removed filter: grayscale */
}

.about-image img:hover {
    /* Removed filter: none */
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .about-text {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .about-image {
        width: 250px;
        align-self: flex-start;
    }
}

/* Gallery Page Styles (used in subset pages like CoverArt/index.html) */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    /* Space between each work */
    width: 100%;
    max-width: 650px;
    /* Limit width (smaller images) */
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Nice shadow */
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
    /* Slight zoom on hover */
}

.gallery-caption {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 10px;
}

/* 2-Column Grid Modifier */
.gallery-container.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    /* Added bottom margin */
}

.gallery-container.grid-2 .gallery-caption {
    display: none;
    display: none;
}

/* Masonry Layout for Post Design */
/* Grid Layout for Post Design (Strict Side-by-Side) */
.gallery-container.masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-container.masonry .gallery-item {
    break-inside: avoid;
    /* Prevent images from splitting */
    margin-bottom: 20px;
    display: block;
}

.gallery-container.masonry img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0;
    /* Remove existing margin */
}

.gallery-container.masonry .gallery-caption {
    display: none;
    /* Hide captions as requested */
}

/* 3-Column Grid Modifier */
.gallery-container.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    /* Added bottom margin */
}

.gallery-container.grid-3 .gallery-caption {
    display: none;
}

/* Back Link Style */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 50px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */

@media (max-width: 768px) {

    /* 1. General Section Adjustments */
    .section {
        padding: 120px 20px 50px 20px !important;
        /* Increase top padding to clear fixed header */
        min-height: auto;
        /* Allow height to fit content */
        justify-content: flex-start;
    }

    .section-title {
        font-size: 2.2rem !important;
        /* Smaller titles */
        margin-bottom: 30px !important;
        line-height: 1.2;
        width: 100%;
        text-align: center;
    }

    /* 2. Graphic Design Page Main Grid */
    #graphic-design .projects-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Force 1 column */
        gap: 40px !important;
        width: 100% !important;
        padding: 0 10px;
    }

    #graphic-design .project-card {
        width: 100% !important;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #graphic-design .image-wrapper {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    #graphic-design .image-wrapper img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        /* Limit height */
        object-fit: contain !important;
    }

    #graphic-design .project-info {
        width: 100% !important;
        align-items: center !important;
        /* Center text on mobile */
        text-align: center !important;
        margin-top: 15px;
    }

    #graphic-design .project-meta {
        align-items: center !important;
        width: 100%;
    }

    #graphic-design .project-meta h3 {
        font-size: 1.5rem !important;
        white-space: normal !important;
        /* Prevent text wrapping issues */
        width: 100%;
        margin-bottom: 5px !important;
    }

    /* 3. Gallery / Sub-page Grids */
    .gallery-container {
        padding: 0 10px;
        /* Prevent edge touching */
        max-width: 100%;
        flex-direction: column;
    }

    /* Override grids for mobile */
    .gallery-container.grid-2,
    .gallery-container.grid-3,
    .gallery-container.masonry {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* 2 columns allows some density */
        gap: 15px !important;
        width: 100%;
        max-width: 100%;
    }

    /* If screen is VERY small (< 400px), fallback to 1 column might be better */
    @media (max-width: 400px) {

        .gallery-container.grid-2,
        .gallery-container.grid-3,
        .gallery-container.masonry {
            grid-template-columns: 1fr !important;
        }
    }

    /* 4. Font Sizes */
    .gallery-caption {
        font-size: 0.9rem !important;
    }

    /* 5. Contact Section Spacer Fix */
    #contact {
        padding-top: 120px !important;
    }

    .contact-item {
        padding: 20px !important;
    }

    .contact-item h3 {
        font-size: 1.4rem !important;
    }

    .contact-item p a {
        font-size: 1rem !important;
    }

    /* 6. "Show Graphic Design Projects" Link Mobile Fix */
    .show-more {
        font-size: 1rem !important;
        /* Smaller text */
        white-space: normal !important;
        text-align: center;
    }

    /* 7. Fix Client Logos Overlap */
    .client-logos-section {
        margin-top: 0 !important;
        /* Reset negative margin to prevent overlap */
        padding-top: 40px !important;
        /* Add some space above */
        padding-bottom: 40px !important;
    }
}