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

/* Critical CSS - Above the fold */
.hero-section, .navbar, .loading-screen {
    contain: layout style paint;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0.9);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo .logo-img {
    height: 55px !important;
    width: auto;
    filter: none;
    transition: transform 0.3s ease;
}

.nav-logo .logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #cccccc);
    transition: width 0.3s ease;
}

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

/* Main Content */
.main-content {
    margin-top: 0;
}

/* Home page specific styles */
body.home-page {
    overflow: hidden;
    height: 100vh;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    transform: translateZ(0);
    z-index: 1;
    /* Hardware acceleration for smooth playback */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    /* Optimize rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.opening-video {
    filter: brightness(0.75);
}

.napermix-video {
    filter: brightness(0.85);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 400;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.15em;
    text-transform: none;
    font-style: normal;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cta {
    margin-top: 0rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    /* Mobile cursor fix - only affects mobile */
    html, body {
        cursor: auto !important;
    }
    
    a, button, [role="link"], [role="button"] {
        cursor: pointer !important;
    }
    
    .custom-cursor {
        display: none !important;
    }
    
    /* Mobile video fullscreen optimization */
    .hero-section {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .video-container {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        width: 100vw;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-video {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        /* Enhanced mobile hardware acceleration */
        transform: translateZ(0) scale(1);
        -webkit-transform: translateZ(0) scale(1);
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        /* Force GPU acceleration on mobile */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Optimize video rendering on mobile */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* Reduce video processing overhead */
        image-rendering: auto;
        /* Prevent video from causing layout shifts */
        contain: layout style paint;
    }
    
    /* Mobile navbar always fixed */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    /* Ensure popups are below navbar */
    .work-detail {
        z-index: 1000 !important;
        position: relative;
    }
    
    .popup-overlay {
        z-index: 1001 !important;
    }
    
    .popup-content {
        z-index: 1002 !important;
    }
    
    /* Mobile popup redesign - No sliders */
    .comparison-slider-container {
        display: none !important;
    }
    
    .slider-handle {
        display: none !important;
    }
    
    .slider-button {
        display: none !important;
    }
    
    .slider-button svg {
        display: none !important;
    }
    
    /* Mobile close button for popup */
    .work-popup-close {
        display: block !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid #ffffff !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 24px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .work-popup-close:hover {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #000000 !important;
        transform: scale(1.1) !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.5rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .nav-logo .logo-img {
        height: 45px !important;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Video Loading States */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-cta {
    animation-delay: 0.6s;
    opacity: 0;
}


/* Works Page Styles */
.works-grid {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    position: relative;
    padding: 2rem;
}

.works-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Central Project */
.central-project {
    position: relative;
    width: 500px;
    height: 300px;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10;
}

.central-project:hover {
    transform: scale(1.02);
}

.central-media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.central-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.central-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.central-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.central-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Crosshairs */
.crosshairs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
}

.crosshair::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.crosshair.top-left {
    top: 10px;
    left: 10px;
}

.crosshair.top-right {
    top: 10px;
    right: 10px;
}

.crosshair.bottom-left {
    bottom: 10px;
    left: 10px;
}

.crosshair.bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Surrounding Projects */
.surrounding-projects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.project-column {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.left-column {
    left: 5%;
}

.right-column {
    right: 5%;
}

.project-row {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.top-row {
    top: 10%;
}

.bottom-row {
    bottom: 10%;
}

.project-item {
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.project-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.plus-sign {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-weight: bold;
}

.plus-1 {
    top: 20%;
    left: 20%;
}

.plus-2 {
    top: 20%;
    right: 20%;
}

.plus-3 {
    bottom: 20%;
    left: 20%;
}

.plus-4 {
    bottom: 20%;
    right: 20%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .central-project {
        width: 400px;
        height: 250px;
    }
    
    .project-column {
        gap: 1.5rem;
    }
    
    .project-name {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .works-grid {
        padding: 1rem;
    }
    
    .central-project {
        width: 350px;
        height: 200px;
    }
    
    .central-title {
        font-size: 2rem;
    }
    
    .left-column {
        left: 2%;
    }
    
    .right-column {
        right: 2%;
    }
    
    .project-column {
        gap: 1rem;
    }
    
    .project-name {
        font-size: 0.9rem;
    }
    
    /* Works page mobile layout */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .central-project {
        order: 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .left-column, .right-column {
        position: static;
        order: 2;
        width: 100%;
    }
    
    .project-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .project-item {
        padding: 0.3rem 0.8rem;
    }
    
    /* Mobile popup optimizations */
    .work-detail {
        padding: 80px 0 30px; /* Daha az padding */
        margin-top: 0;
    }
    
    .project-title {
        font-size: 1.2rem !important;
        padding: 0 0.8rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
    }
    
    .project-meta {
        padding: 0 0.8rem;
        gap: 0.3rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }
    
    .project-meta span {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.3rem;
        line-height: 1.1;
    }
    
    .project-layout {
        padding: 0 0.5rem !important;
        gap: 0.4rem !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .project-gallery {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .project-videos {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-auto-rows: 1fr !important;
        align-items: stretch !important;
    }
    
    .gallery-item {
        height: 75px !important;
        width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        min-height: 75px !important;
    }
    
    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        object-position: center !important;
    }
    
    .video-container {
        margin-bottom: 0.6rem;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .project-description {
        padding: 0;
        margin-top: 0.8rem;
    }
    
    .description-text {
        font-size: 0.8rem !important;
        line-height: 1.3;
        margin: 0;
    }
    
    .section-title {
        font-size: 1rem !important;
        margin-bottom: 0.6rem;
    }
    
    /* Mobile navbar always fixed */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    /* Ensure popups are below navbar */
    .work-detail {
        z-index: 1000 !important;
        position: relative;
    }
    
    .popup-overlay {
        z-index: 1001 !important;
    }
    
    .popup-content {
        z-index: 1002 !important;
    }
}

@media (max-width: 480px) {
    .central-project {
        width: 280px;
        height: 160px;
    }
    
    .central-title {
        font-size: 1.5rem;
    }
    
    .central-info {
        font-size: 0.8rem;
    }
    
    .project-name {
        font-size: 0.8rem;
    }
    
    .project-item {
        padding: 0.2rem 0.6rem;
    }
    
    .crosshair {
        width: 15px;
        height: 15px;
    }
    
    /* Mobile slider icons optimization */
    .tool-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .tool-item {
        min-width: 60px;
        gap: 0.4rem;
    }
    
    .tool-item span {
        font-size: 0.7rem;
        max-width: 70px;
    }
    
    .tool-icons {
        gap: 0.8rem;
        justify-content: center;
    }
    
    /* Mobile navbar always fixed */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    /* Ensure popups are below navbar */
    .work-detail {
        z-index: 1000 !important;
        position: relative;
    }
    
    .popup-overlay {
        z-index: 1001 !important;
    }
    
    .popup-content {
        z-index: 1002 !important;
    }
    
    /* Mobile popup redesign for small screens - No sliders */
    .comparison-slider-container {
        display: none !important;
    }
    
    .slider-handle {
        display: none !important;
    }
    
    .slider-button {
        display: none !important;
    }
    
    .slider-button svg {
        display: none !important;
    }
    
    /* Mobile close button for popup - Small screens */
    .work-popup-close {
        display: block !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid #ffffff !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    
    .work-popup-close:hover {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #000000 !important;
        transform: scale(1.1) !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Work Detail Page Styles */
.work-detail {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: #0a0a0a;
    color: #ffffff;
}

.project-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.project-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.project-meta span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    grid-row: 1;
    grid-column: 1;
}

.project-videos {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    grid-row: 1;
    grid-column: 2;
}

.final-video {
    grid-row: 1;
}

.breakdown-video {
    grid-row: 2;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-section {
    margin-bottom: 2rem;
}

.video-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    grid-row: 2;
    grid-column: 1 / -1;
}

.description-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive Design for Work Detail */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 3rem;
    }
    
    .project-gallery {
        grid-row: 1;
        grid-column: 1;
    }
    
    .project-videos {
        grid-row: 2;
        grid-column: 1;
        display: flex;
        flex-direction: column;
    }
    
    .project-description {
        grid-row: 3;
        grid-column: 1;
    }
    
    .project-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .work-detail {
        padding: 100px 0 60px;
    }
    
    .project-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .project-meta {
        padding: 0 1rem;
        gap: 0.8rem;
    }
    
    .project-layout {
        padding: 0 1rem;
        grid-template-rows: auto auto auto;
        gap: 2rem;
    }
    
    .project-gallery {
        grid-row: 1;
        grid-column: 1;
    }
    
    .project-videos {
        grid-row: 2;
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .project-description {
        grid-row: 3;
        grid-column: 1;
        padding: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Project detail mobile improvements */
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .video-container {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .work-detail {
        padding: 70px 0 20px;
    }
    
    .project-title {
        font-size: 1.1rem !important;
        padding: 0 0.5rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
    }
    
    .project-meta {
        padding: 0 0.5rem;
        gap: 0.25rem;
        flex-wrap: wrap;
        margin-bottom: 0.8rem;
    }
    
    .project-meta span {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.25rem;
        line-height: 1.1;
    }
    
    .project-layout {
        padding: 0 0.5rem !important;
        gap: 0.6rem !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .project-gallery {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .project-videos {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-auto-rows: 1fr !important;
        align-items: stretch !important;
    }
    
    .gallery-item {
        height: 65px !important;
        width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        min-height: 65px !important;
    }
    
    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        object-position: center !important;
    }
    
    .video-container {
        margin-bottom: 0.4rem;
        border-radius: 3px;
    }
    
    .project-description {
        padding: 0;
        margin-top: 0.6rem;
    }
    
    .description-text {
        font-size: 0.75rem !important;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem;
    }
    
    /* Extra small mobile improvements */
    .project-title {
        font-size: 1rem !important;
        padding: 0 0.6rem;
        line-height: 1.1;
        margin-bottom: 0.1rem;
    }
    
    .project-meta {
        padding: 0 0.6rem;
        gap: 0.2rem;
        margin-bottom: 0.6rem;
    }
    
    .project-meta span {
        font-size: 0.55rem !important;
        padding: 0.08rem 0.2rem;
        line-height: 1.1;
    }
    
    .project-layout {
        padding: 0 0.6rem !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    .project-gallery {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .project-videos {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-auto-rows: 1fr !important;
        align-items: stretch !important;
    }
    
    .gallery-item {
        height: 55px !important;
        width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        min-height: 55px !important;
    }
    
    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        object-position: center !important;
    }
    
    .video-container {
        margin-bottom: 0.3rem;
        border-radius: 2px;
    }
    
    .project-description {
        padding: 0;
        margin-top: 0.4rem;
    }
    
    .description-text {
        font-size: 0.7rem !important;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem;
    }
    
    /* Mobile popup redesign for extra small screens - No sliders */
    .comparison-slider-container {
        display: none !important;
    }
    
    .slider-handle {
        display: none !important;
    }
    
    .slider-button {
        display: none !important;
    }
    
    .slider-button svg {
        display: none !important;
    }
    
    /* Mobile close button for popup - Extra small screens */
    .work-popup-close {
        display: block !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid #ffffff !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }
    
    .work-popup-close:hover {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #000000 !important;
        transform: scale(1.1) !important;
    }
}
