/* LiderYapi Modern Minimalist Theme */

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #333333;
    --light-grey: #f4f4f4;
    --border-color: #e5e5e5;
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;

    /* --- Contact Form Styles --- */
    .contact-form {
        background: #f9f9f9;
        padding: 40px;
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        font-size: 0.95rem;
        color: #333;
    }

    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: var(--font-main);
        font-size: 1rem;
        color: #333;
        background-color: #fff;
        transition: var(--transition);
    }

    .form-input:focus {
        outline: none;
        border-color: #000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    }

    textarea.form-input {
        resize: vertical;
        min-height: 120px;
    }

    /* --- Page Transition Overlay (Dark Mode) --- */
    .page-transition-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #111;
        /* Dark background to prevent eye strain */
        z-index: 9999;
        opacity: 1;
        pointer-events: all;
        transition: opacity 0.5s ease-in-out;
    }

    .page-transition-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* Remove old body transition */
    body {
        font-family: var(--font-main);
        color: var(--text-color);
        background-color: var(--bg-color);
        line-height: 1.6;
        overflow-x: hidden;
        /* Opacity transition removed */
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-outline {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000;
    text-transform: uppercase;
}

.logo-bold {
    color: #000;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.btn-clean {
    border: 1px solid #000;
    padding: 8px 20px;
    border-radius: 0;
}

.btn-clean:hover {
    background: #000;
    color: #fff;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 0.8;
    /* Maintain original opacity logic */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

/* Stats Bar */
.stats-bar {
    background: #111;
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 30px;
}

.feature-title {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #000;
}

.about-image {
    height: 100%;
    min-height: 500px;
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
    background-image: url('assets/img/service-1.jpg');
    /* Reuse valid image */
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: var(--transition);
}

.about-image:hover {
    filter: grayscale(0%);
}

/* Services */
.services-section {
    padding: 120px 0;
    background: var(--light-grey);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 50px;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: #111;
    color: #fff;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f4f4f4;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 0;
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: #222;
}

.service-title,
.service-desc,
.service-link {
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-desc {
    color: #666;
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover .service-desc {
    color: #aaa;
}

.service-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 0;
    /* Split layout, maybe full width */
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #111;
    color: #fff;
}

.contact-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.contact-info {
    padding: 100px 10%;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-wrapper {
    padding: 100px 10%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.minimal-form .form-group {
    margin-bottom: 30px;
}

.minimal-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    padding: 10px 0;
    font-size: 1.1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    outline: none;
    border-bottom-color: #fff;
}

.btn-submit {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 15px 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-submit:hover {
    background: #fff;
    color: #000;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    background: #000;
    color: #666;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    margin-left: 20px;
    font-size: 0.9rem;
}

/* Footer CTA */
.footer-cta {
    text-align: center;
    padding: 80px 20px;
    background: #0a0a0a;
    border-radius: 8px;
    margin-top: 40px;
}

.footer-cta h3 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-cta .btn-primary {
    display: inline-block;
    padding: 15px 50px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-cta .btn-primary:hover {
    background: #ccc;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 50px 20px;
    }

    .footer-cta h3 {
        font-size: 1.8rem;
    }
}

/* New Layout Classes (Replacing Inline Styles) */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.about-story-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card {
    border: none;
    background: #fff;
    padding: 50px;
}

/* Values Section (Box Design) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on desktop/tablet */
    gap: 30px;
    margin-top: 40px;
}

.info-item {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.info-item:hover {
    transform: translateY(-10px);
    /* Move up on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Stronger shadow */
    border-color: #ddd;
}

.info-label {
    font-size: 1.5rem !important;
    /* Force override inline styles if present */
    font-weight: 700;
    color: #111 !important;
    display: block;
    margin-bottom: 15px !important;
}

.info-value {
    font-size: 1.05rem !important;
    color: #555 !important;
    line-height: 1.6;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Responsive */
/* Navigation & Responsive Adjustments */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Responsive Overrides */
@media (max-width: 900px) {

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Specific Fixes for Stacking */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Stack About Story */
    .about-story-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Stack Mission/Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Values Grid (Stacked on mobile as requested) */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Stack Contact Page */
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* General Grid Fixes */
    .services-grid,
    .stats-grid,
    .projects-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 30px;
    }

    .about-image {
        min-height: 250px;
        width: 100%;
    }

    /* Ensure content order */
    .about-story-grid>div:first-child {
        order: -1;
        /* Text first */
    }

    .about-story-img {
        width: 100%;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 60px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile Menu */
/* Mobile Menu Overlay */
/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    /* Align to right */
    left: auto;
    /* Reset left */
    width: 320px;
    /* Sidebar width */
    max-width: 85%;
    height: 100%;
    background: #111;
    /* Solid dark background */
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: flex-start;
    /* Align top */
    padding-top: 100px;
    /* Space from top */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    /* Shadow on left */
}

/* Backdrop for Sidebar */
body.open-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    animation: fadeIn 0.4s ease forwards;
}

body.open-menu .mobile-menu {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #222;
    /* Button background */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #333;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mobile-close:hover {
    transform: rotate(90deg);
    background: #fff;
    color: #000;
}

.mobile-links {
    width: 100%;
    padding: 0 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Spacing between boxes */
}

.mobile-links li {
    overflow: visible;
    /* Changed to visible for box shadow/transform */
    width: 100%;
}

.mobile-links a {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Box background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    /* Rounded corners */
    font-size: 1.1rem;
    /* Adjusted font size */
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    transform: translateX(30px);
    /* Slide in from right */
    opacity: 0;
}

body.open-menu .mobile-links a {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* Staggered animation */
body.open-menu .mobile-links li:nth-child(1) a {
    transition-delay: 0.1s;
}

body.open-menu .mobile-links li:nth-child(2) a {
    transition-delay: 0.15s;
}

body.open-menu .mobile-links li:nth-child(3) a {
    transition-delay: 0.2s;
}

body.open-menu .mobile-links li:nth-child(4) a {
    transition-delay: 0.25s;
}

body.open-menu .mobile-links li:nth-child(5) a {
    transition-delay: 0.3s;
}

body.open-menu .mobile-links li:nth-child(6) a {
    transition-delay: 0.35s;
}

.mobile-links a:hover {
    background: #fff;
    color: #000;
    transform: translateX(-5px);
    /* Slight bump left */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Animations */
.fade-up-target {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------
   PAGES: Projects List & Detail Styles 
   ------------------------------------------- */

/* Page Header */
.page-content {
    padding-top: 100px;
    min-height: 80vh;
}

.page-header {
    background: #111;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    letter-spacing: 1px;
}

/* Projects Grid */
.projects-section {
    padding-bottom: 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    display: block;
    height: 400px;
    overflow: hidden;
    background: #f4f4f4;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-card-overlay {
    transform: translateY(0);
}

.project-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-card-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Project Detail Page */
.project-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #111;
    background-size: cover;
    background-position: center;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.project-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

.project-info-bar {
    background: #f9f9f9;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.project-body {
    padding: 80px 0;
}

.project-description {
    max-width: 800px;
    margin: 0 auto 80px;
}

.project-desc-text {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
}

/* -------------------------------------------
   NEW: Gallery & Lightbox
   ------------------------------------------- */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    /* Optional slight round */
}

.gallery-item img {
    width: 100%;
    height: 300px;
    /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

@media (max-width: 900px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: auto;
        aspect-ratio: 4/3;
    }
}

/* -------------------------------------------
   NEW: Split Selection Screen
   ------------------------------------------- */
.split-selection-container {
    height: 100vh;
    display: flex;
    width: 100%;
    margin-top: 0;
    /* Overwrite standard page padding if necessary, but we might want header visible */
    position: relative;
    padding-top: 80px;
    /* Account for fixed header */
}

.category-card {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: all 0.5s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:last-child {
    border-right: none;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.5s ease;
    z-index: 1;
}

.category-content {
    position: relative;
    z-index: 2;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

.category-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.category-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

/* Hover Effects */
.category-card:hover .category-bg {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.category-card:hover .category-content {
    transform: translateY(0);
}

.category-card:hover .category-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Backgrounds */
.bg-building {
    background-image: url('assets/img/project-select-building.png');
}

.bg-infrastructure {
    background-image: url('assets/img/project-select-infra.png');
}

@media (max-width: 768px) {
    .split-selection-container {
        flex-direction: column;
        padding-top: 60px;
        /* Mobile header height */
    }

    .category-card {
        width: 100%;
        height: 50vh;
    }

    .category-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .category-content {
        transform: translateY(0);
    }
}