/* Variables - Ultra Premium Dark Theme */
:root {
    /* Colors */
    --bg-color: #050505; /* Deep rich black */
    --bg-alt: #0a0a0a; /* Slightly lighter for contrast */
    --text-main: #f5f5f5; /* Crisp off-white */
    --text-muted: #a3a3a3; /* Elegant gray */
    
    /* Accents - Metallic/Bronze/Gold */
    --accent: #c4a163; /* Subtle muted gold */
    --accent-hover: #e0bb7a;
    --accent-dark: #8c7143;
    
    /* Social Colors */
    --whatsapp: #25D366;
    --linkedin: #0077b5;
    
    /* Glass & Borders */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-heading: 'Vazirmatn', 'Adel Sans', sans-serif;
    --font-body: 'Vazirmatn', 'Adel Sans', sans-serif;
    
    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html {
    font-size: 16px;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(196, 161, 99, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(196, 161, 99, 0.1);
    mix-blend-mode: difference;
}
.cursor-follower.hover {
    opacity: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-title.text-left {
    text-align: left;
    margin-bottom: 3rem;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.section {
    padding: 10rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-color);
}

.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

/* UI Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: 4px;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 2rem;
}

.btn-text:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 3rem;
    margin: 0 auto;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    position: absolute;
    right: 5%;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(196,161,99,0.08) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.reveal-text {
    overflow: hidden;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.title {
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-desc-wrapper {
    overflow: hidden;
    margin-bottom: 3rem;
}

.description {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    display: flex;
    justify-content: flex-end;
}

.hero-image-mask {
    width: 100%;
    max-width: 500px;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
}

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

.expertise-card {
    padding: 3rem;
    position: relative;
    transition: transform 0.5s;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: rgba(196, 161, 99, 0.3);
}

.expertise-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.timeline-content {
    padding: 3rem;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.exp-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.exp-logo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.exp-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-role-company h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.exp-role-company h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
}

.exp-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-meta .location, .exp-meta .date {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-body .exp-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.exp-subsidiaries {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

.exp-subsidiaries h5 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-subsidiaries p {
    color: var(--text-main);
    font-size: 0.95rem;
}

.exp-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.exp-focus h5, .exp-achievements h5 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-focus ul, .exp-achievements ul {
    list-style-type: none;
}

.exp-focus ul li, .exp-achievements ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.exp-focus ul li::before, .exp-achievements ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Case Studies Banner */
.section-banner {
    position: relative;
    padding: 15rem 0;
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9), rgba(5,5,5,0.6), rgba(5,5,5,0.9));
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.banner-content .section-title {
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Education & Certs */
.edu-cert-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.edu-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.edu-item h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.edu-item h4 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.edu-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-list li i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Image Showcase */
.image-showcase {
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.image-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: var(--transition);
}

.image-showcase:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-main);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn.whatsapp:hover {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #fff;
    transform: translateY(-3px);
}

.social-btn.linkedin:hover {
    background: var(--linkedin);
    border-color: var(--linkedin);
    color: #fff;
    transform: translateY(-3px);
}

.social-btn.email:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* GSAP Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        justify-content: center;
    }
    
    .exp-details {
        grid-template-columns: 1fr;
    }

    .edu-cert-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    * { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    
    .section { padding: 5rem 0; }
    .section-title { font-size: 2.5rem; }
    .title { font-size: 2.8rem; }
    
    /* Mobile Hero Layout */
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 5rem;
    }
    
    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
    }
    
    .hero-image-mask {
        width: 100%;
        max-width: 320px;
        height: 380px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }
    
    .description {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 1.2rem 2rem;
    }
    
    .timeline::before { left: 0; }
    .timeline-dot { left: -6px; }
    .timeline-item { padding-left: 20px; }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exp-meta {
        text-align: left;
    }
    
    .mobile-menu-btn { display: block; z-index: 101; }
    
    .nav-container { justify-content: space-between; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s;
    }
    
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    
    .mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   Subpages & Case Studies Listing
   ========================================================================== */
.subpage-header {
    padding: 180px 0 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.case-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 161, 99, 0.3);
}

.case-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.case-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-img-wrapper img {
    transform: scale(1.05);
}

.case-tags {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.case-tag {
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.case-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.case-card-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.case-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.case-metric {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.case-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.case-link:hover {
    gap: 0.8rem;
    color: var(--accent);
}

/* ==========================================================================
   Individual Case Study Template
   ========================================================================== */
.case-header-banner {
    padding: 220px 0 120px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-project-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.case-project-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.case-project-meta .meta-item i {
    color: var(--accent);
    font-size: 1.3rem;
}

.case-details-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 5rem;
    align-items: start;
}

.case-sidebar .sticky-box {
    padding: 3rem;
    border-radius: 20px;
    position: sticky;
    top: 120px;
}

.case-sidebar h4 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.project-specs-list {
    list-style: none;
}

.project-specs-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-specs-list li strong {
    color: var(--text-main);
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.separator {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 2.5rem 0;
}

.metric-block {
    margin-bottom: 2rem;
}

.metric-block:last-child {
    margin-bottom: 0;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-body);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.case-main-content .content-block {
    margin-bottom: 4rem;
}

.case-main-content h2 {
    font-size: 2.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 2rem;
}

.case-main-content h3 {
    font-size: 1.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-main);
}

.case-main-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.case-main-content .lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-main);
}

.case-main-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.case-main-content li {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.case-main-content li strong {
    color: var(--text-main);
}

.accent-quote {
    border-left: 3px solid var(--accent);
    padding: 1.5rem 2.5rem;
    margin: 3rem 0;
    background: rgba(196, 161, 99, 0.03);
    border-radius: 0 12px 12px 0;
}

.accent-quote p, .accent-quote {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-main);
}

.accent-quote cite {
    display: block;
    font-size: 0.95rem;
    color: var(--accent);
    margin-top: 1rem;
    font-style: normal;
    font-weight: 500;
}

.case-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 3rem;
    margin-top: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

/* ==========================================================================
   Responsive adjustments for Subpages
   ========================================================================== */
@media (max-width: 1024px) {
    .case-details-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .case-sidebar .sticky-box {
        position: relative;
        top: 0;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .subpage-header {
        padding: 150px 0 60px 0;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-card-content {
        padding: 2rem;
    }
    
    .case-header-banner {
        padding: 160px 0 80px 0;
    }
    
    .case-project-meta {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .case-main-content h2 {
        font-size: 1.8rem;
    }
    
    .accent-quote {
        padding: 1.5rem 1.8rem;
    }
    
    .case-nav-footer {
        flex-direction: column-reverse;
        width: 100%;
    }
    
    .case-nav-footer .btn {
        width: 100%;
    }
}
