/* --- HavocLoft 1:1 Light Theme --- */
:root {
    --bg-main: #F7F7F7;
    --bg-white: #FFFFFF;
    --bg-dark: #000000;
    
    --text-primary: #000000;
    --text-inverse: #FFFFFF;
    --text-muted: #666666;
    
    --font-primary: 'Inter', sans-serif;
    
    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark); /* Dark underlying bg for the footer reveal */
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

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

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    border: 1px solid var(--bg-dark);
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
}

/* --- Layout Structure --- */
.main-content {
    position: relative;
    z-index: 10;
    background-color: var(--bg-main);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    overflow: hidden;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s ease, transform 0.4s ease;
    will-change: transform, background-color;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.over-footer {
    background-color: transparent !important;
}

.navbar.over-footer .logo-bold { color: #FFFFFF; }
.navbar.over-footer .logo-light { color: rgba(255,255,255,0.7); }
.navbar.over-footer .menu-toggle { color: #FFFFFF; }

.navbar:hover:not(.over-footer), .navbar.scrolled:not(.over-footer) {
    background-color: var(--bg-white);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Dark Text Theme for Transparent Navbar on light pages */
.navbar.theme-dark-text:not(.scrolled):not(:hover):not(.over-footer) .logo-bold { color: var(--text-primary); }
.navbar.theme-dark-text:not(.scrolled):not(:hover):not(.over-footer) .logo-light { color: var(--text-muted); }
.navbar.theme-dark-text:not(.scrolled):not(:hover):not(.over-footer) .menu-toggle { color: var(--text-primary); }

/* Default Logo Colors (Transparent State) */
.logo-bold {
    color: #FFFFFF;
    font-weight: 700;
    transition: color 0.4s ease;
}

.logo-light {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    transition: color 0.4s ease;
}

/* Hover/White State Logo Colors */
.navbar:hover:not(.over-footer) .logo-bold,
.navbar.scrolled:not(.over-footer) .logo-bold {
    color: #1B2631;
}

.navbar:hover:not(.over-footer) .logo-light,
.navbar.scrolled:not(.over-footer) .logo-light {
    color: #6C7A89;
}

/* Overlay Navigation Logo Overrides */
.nav-menu-top-bar .logo-bold { color: #1B2631; }
.nav-menu-top-bar .logo-light { color: #6C7A89; }

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.4s ease;
}

.navbar:hover:not(.over-footer) .menu-toggle,
.navbar.scrolled:not(.over-footer) .menu-toggle {
    color: #1B2631;
}

/* --- Overlay Navigation Menu --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 200;
    pointer-events: none;
    display: flex;
}

.nav-overlay.active {
    pointer-events: auto;
}

.nav-overlay-bg {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.45s ease;
    will-change: opacity;
}

.nav-overlay.active .nav-overlay-bg {
    opacity: 1;
}

.nav-menu-container {
    width: 50%;
    height: 100%;
    background-color: #F8F9FA;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.nav-overlay.active .nav-menu-container {
    transform: translateX(0) translateZ(0);
}

.nav-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.nav-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 4rem 5%;
    color: #fff;
    z-index: 2;
}

.nav-sparkle {
    margin-bottom: 1.5rem;
    color: #fff;
}

.nav-image-content h3 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 90%;
    color: #fff;
}

.nav-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.nav-menu-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 2.5rem;
    left: 5%;
    right: 5%;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
}

.nav-menu-content {
    margin-top: auto;
    margin-bottom: auto;
}

.nav-menu-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4rem;
    text-decoration: none;
}

.nav-label {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.nav-menu-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu-links a {
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu-links a:hover {
    opacity: 0.6;
}

.nav-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Overlay Fixes */
@media (max-width: 900px) {
    .nav-overlay {
        flex-direction: column;
    }
    .nav-overlay-bg {
        display: none;
    }
    .nav-menu-container {
        width: 100%;
        height: 100%;
        padding: 0 7%;
        justify-content: flex-start;
        gap: 0;
    }
    .nav-menu-top-bar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }
    .nav-menu-content {
        margin-top: 0.5rem;
        margin-bottom: auto;
    }
    .nav-menu-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    .contact-email {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    .nav-label {
        margin-bottom: 1.25rem;
    }
    .nav-menu-links ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
    .nav-menu-links a {
        font-size: 1rem;
    }
    .nav-menu-footer {
        padding-bottom: 2.5rem;
        padding-top: 2rem;
    }
}

.made-in {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: black;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- Hero Slider Section --- */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    color: var(--text-inverse);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    padding: 0 5%;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
}

.slide-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
    will-change: transform, opacity;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 500px;
    line-height: 1.6;
}

/* Slider Controls — always visible, GSAP parallax will handle opacity during scroll */
.slider-controls {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    opacity: 1;
}

.slider-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.slider-pagination .separator {
    transform: rotate(90deg);
    margin: 1rem 0;
    color: rgba(255,255,255,0.5);
}

.slider-pagination .total-slides {
    color: rgba(255,255,255,0.5);
}

.slider-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-nav button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-nav button:hover {
    background: white;
    color: black;
}

/* Hero Bottom Bar */
.hero-bottom-bar {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    right: 5%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

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

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }

.hero-video-card {
    background: rgba(255,255,255,0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.hero-video-card:hover {
    background: rgba(255,255,255,0.2);
}

.play-icon {
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

@media (max-width: 768px) {
    .hero-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .slider-controls {
        top: auto;
        bottom: 12rem;
        transform: none;
        flex-direction: row;
        right: 5%;
        align-items: center;
        z-index: 20;
    }
    .slider-pagination {
        flex-direction: row;
    }
    .slider-pagination .separator {
        transform: rotate(0);
        margin: 0 0.5rem;
    }
    .slider-nav {
        flex-direction: row;
    }
    .hero-video-card {
        display: none;
    }
}

/* --- Stats Section --- */
.stats {
    padding: 6rem 5%;
    background-color: var(--bg-main);
}

.stat-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 500;
    max-width: 150px;
}

/* --- Services Section --- */
.services {
    padding: 6rem 5%;
    background-color: var(--bg-main);
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid #E5E5E5;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* Dark accordion services */
.services-dark {
    background-color: #0a0a0a;
    color: white;
    padding: 6rem 5%;
    position: relative;
}

.services-dark-header {
    max-width: 1200px;
    margin: 0 auto 1rem;
    position: relative;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.services-dark-header h2 {
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 0.75rem;
}

.services-dark-header p {
    color: rgba(255,255,255,0.5);
    max-width: 380px;
    font-size: 1rem;
}

.services-corner-icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.3);
}

.services-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.service-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    gap: 0 2rem;
    transition: background 0.3s;
}

.service-row:hover { background: rgba(255,255,255,0.03); }

.service-row-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.service-num-dark {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    min-width: 28px;
}

.service-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-thumb-ai {
    background: linear-gradient(135deg, #6B21A8, #4F46E5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.service-thumb-web {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.service-row-center h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.tag-dark {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.service-expand-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.service-expand-btn:hover {
    background: rgba(255,255,255,0.15);
}

.service-row.open .service-expand-btn {
    transform: rotate(45deg);
}

.service-row-detail {
    grid-column: 2 / 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.service-row-detail p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    padding-bottom: 0.5rem;
}

.service-row.open .service-row-detail {
    max-height: 200px;
    padding-top: 1rem;
}

/* --- Projects Section --- */
.projects {
    padding: 6rem 5%;
    background-color: var(--bg-main);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    display: block;
}

.project-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}


.project-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* --- Testimonials --- */
.testimonials {
    padding: 8rem 5%;
    background-color: var(--bg-main);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.stars-row {
    color: #FF5A36;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.author strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Sticky Footer --- */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    background-image: url('Media/Renders/unreal-engine-5-night-exterior.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-inverse);
    z-index: 1;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: -1;
}

.footer-logo {
    position: absolute;
    top: 3rem;
    left: 5%;
    font-size: 1.5rem;
    z-index: 2;
}
.footer-logo .logo-bold { color: #FFFFFF; font-weight: 700; }
.footer-logo .logo-light { color: rgba(255,255,255,0.7); font-weight: 400; }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.footer-top {
    /* Centered by flex parent */
}

.footer-top h2 {
    color: var(--text-inverse);
}

.footer-top p {
    color: rgba(255,255,255,0.7);
    margin: 0 auto 3rem;
}

.footer-btn {
    background-color: var(--text-inverse);
    color: var(--text-primary);
    border-color: var(--text-inverse);
}

.footer-bottom {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

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

/* --- Features Masonry --- */
.features-masonry {
    background-color: var(--bg-main);
    padding: 8rem 5%;
    position: relative;
    z-index: 5;
    border-radius: 40px 40px 0 0;
    /* Norda-style: section starts right below hero, GSAP slides it up */
    will-change: transform;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.15);
}

.masonry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 4rem;
    gap: 4rem;
}

.masonry-header h2 {
    flex: 1.5;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    flex: 1;
    text-align: right;
}

.header-right p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.masonry-card {
    background: #F2F2F2;
    border-radius: var(--radius);
    padding: 2.5rem;
}

.review-card .stars {
    color: #FF5A36;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-card p {
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.masonry-card.review-card {
    display: flex;
    flex-direction: column;
}

.masonry-img {
    border-radius: var(--radius);
    overflow: hidden;
}

.masonry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.col-2 .masonry-img { aspect-ratio: 4/3; }
.col-3 .masonry-img { aspect-ratio: 16/10; }
.col-4 .masonry-img { aspect-ratio: 4/3; }

.feature-card .card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.feature-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* --- Experience Banner --- */
.experience-banner {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: 8rem 5%;
    text-align: center;
}
.experience-content {
    max-width: 800px;
    margin: 0 auto;
}
.experience-content h2 { color: var(--text-inverse); margin: 2rem 0; }
.experience-content p { color: rgba(255,255,255,0.7); margin-bottom: 3rem; }
.experience-content .btn-primary {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--bg-white);
}
.experience-content .btn-primary:hover {
    background-color: #e8e8e8;
    border-color: #e8e8e8;
}


/* --- As seen on --- */
.as-seen-on {
    background-color: var(--bg-main);
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}
.as-seen-on p { margin-bottom: 2rem; }
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.marquee {
    display: inline-block;
    animation: scroll 20s linear infinite;
}
.marquee span {
    font-size: 2rem;
    font-weight: 700;
    color: #CCC;
    margin: 0 3rem;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Insights --- */
.insights {
    background-color: var(--bg-main);
    padding: 8rem 5%;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.insights-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
}
.insights-header-text {
    max-width: 700px;
}


/* New featured insights layout */
.insights-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.insight-featured {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.insight-featured-img {
    position: relative;
    height: 100%;
    min-height: 420px;
}

.insight-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s;
}


.insight-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.insight-featured-overlay h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 80%;
    margin: 0;
}

.insight-date {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    z-index: 2;
}

.insight-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: black;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    align-self: flex-end;
}

.insight-arrow-btn:hover { background: #eee; }

/* List items */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insight-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.insight-list-item:hover { 
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.insight-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.insight-dot {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.insight-list-item .insight-date {
    position: static;
    background: transparent;
    color: var(--text-muted);
    padding: 0;
    font-size: 0.85rem;
}

.insight-list-item h4 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 85%;
}

.insight-list-item .insight-arrow-btn {
    background: black;
    color: white;
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.insight-list-item .insight-arrow-btn:hover {
    background: #333;
}

/* --- Let's Talk --- */
.lets-talk {
    position: relative;
    padding: 10rem 5%;
    color: white;
    text-align: center;
    overflow: hidden;
}

.lets-talk-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax scrolling */
    background-image: url('Media/Renders/d5-architectural-exterior-houses.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.lets-talk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.talk-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.talk-content h2 {
    color: white;
}

.talk-content p {
    color: rgba(255, 255, 255, 0.8);
}
.contact-expert {
    margin-top: 4rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: inline-block;
    text-align: left;
    color: var(--text-primary);
}
.expert-info strong { display: block; font-size: 1.2rem; }
.contact-expert h5 { font-size: 1.5rem; margin: 1rem 0 2rem; font-weight: 400; }

/* --- FAQ --- */
.faq-section {
    background-color: var(--bg-white);
    padding: 8rem 5%;
    margin: 0 auto;
}
.faq-header h2 { text-align: center; margin-bottom: 4rem; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #EEE;
    margin-bottom: 1rem;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer p { padding-bottom: 1.5rem; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .icon { transform: rotate(45deg); }
.icon { font-size: 1.5rem; transition: transform 0.3s; }
.faq-footer { text-align: center; margin-top: 4rem; }
.faq-footer p { margin-bottom: 1rem; }

/* --- Team Section --- */
.team-section {
    background-color: var(--bg-main);
    padding: 8rem 5%;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.team-member img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.team-member:hover img {
    transform: scale(1.02);
    filter: brightness(0.95);
}
.team-member h4 { font-size: 1.1rem; text-align: center; }
.team-member .team-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* --- Final CTA --- */
.final-cta {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: 10rem 5%;
    text-align: center;
}
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-content h2 { color: var(--text-inverse); margin: 2rem 0 3rem; font-size: clamp(3rem, 5vw, 4rem); }

/* --- Experience Banner --- */
.experience-banner {
    position: relative;
    z-index: 50;
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: 8rem 5%;
    text-align: center;
}

.experience-content {
    max-width: 900px;
    margin: 0 auto;
}

.experience-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1.5rem 0;
    color: var(--text-inverse);
}

.experience-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Vertical Projects Page --- */
.services-video-hero {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 4rem;
    color: #fff;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('Media/Renders/exterior-masterclass-architectural-visualization.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-style-hero:hover .services-hero-bg {
    transform: scale(1.1);
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.28) 52%, rgba(0,0,0,0.55) 100%);
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    transform: translateY(8px);
    transition: transform 0.7s ease;
}

.services-style-hero:hover .services-hero-content {
    transform: translateY(0);
}

.services-hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1rem;
    color: #fff;
}

.services-hero-content p {
    color: rgba(255,255,255,0.82);
    max-width: 620px;
}

.vertical-projects-section {
    background-color: var(--bg-main);
    padding: 8rem 2rem 4rem;
    max-width: 100%;
    margin: 0 auto;
}

.projects-header-area {
    margin-bottom: 4rem;
    text-align: center;
}

.projects-page-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 500;
    margin-bottom: 2rem;
    display: inline-block;
    transform: translateX(-3vw); /* Centered slightly left */
}

.page-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
}

.projects-list-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.vertical-project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease;
}

.vertical-project-card:hover .vertical-img-wrap img {
    transform: scale(1.02);
}

.vertical-img-wrap {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #eee;
}

.vertical-img-wrap img {
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.vertical-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.info-date {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    margin-top: 0.5rem;
}

.info-main {
    flex: 2;
    text-align: center;
}

.info-main h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-main p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.info-client {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.client-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

.client-name {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-video-hero {
        height: 70vh;
        min-height: 480px;
        padding-bottom: 3rem;
    }
    .vertical-img-wrap img {
        aspect-ratio: 16 / 9;
    }
    .vertical-card-info {
        flex-direction: column;
        gap: 1rem;
    }
    .info-main, .info-client {
        text-align: left;
        justify-content: flex-start;
    }
}

/* --- Case Study Full Screen Hero --- */
.case-study-hero-full {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.hero-top-left {
    padding: 3rem 5%;
    pointer-events: auto;
}

.case-study-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s ease;
}

.case-study-back:hover {
    opacity: 0.7;
}

.hero-left-date {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-bottom-center {
    margin-top: auto;
    padding-bottom: 4rem;
    text-align: center;
    color: white;
}

.hero-bottom-center h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-bottom-center p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
}

/* --- Case Study Info Bar --- */
.case-study-info-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5% 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 500;
}

.stats-block {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.stats-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.client-block .client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info strong {
    font-weight: 500;
    font-size: 1.1rem;
}

/* --- Case Study Modal --- */
.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-study-modal.active {
    transform: translateY(0);
}

.case-study-modal-scroll {
    overflow-y: auto;
    width: 100%;
    height: 100%;
}


/* Removed old case-study-hero */

.case-study-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 5%;
    background-color: var(--bg-main);
}

.case-study-body h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 3rem;
}

.case-study-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.meta-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-item strong {
    font-size: 1.1rem;
    font-weight: 500;
}

.case-study-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
}

.case-study-text h3 {
    font-size: 2rem;
    margin: 4rem 0 1.5rem;
}

/* --- Contact Us Page --- */
.contact-page-section {
    background-color: var(--bg-main);
    padding: 10rem 5% 4rem;
    min-height: 100vh;
}

.contact-page-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.contact-left {
    padding-right: 2rem;
}

.contact-page-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
}

.info-cell h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.info-cell a, .info-cell p {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    transition: var(--transition);
}

.info-cell a:hover {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-family: inherit;
    background: transparent;
    transition: var(--transition);
    color: var(--text-primary);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.contact-image-card {
    border-radius: 1.5rem;
    overflow: hidden;
    height: 250px;
}

.contact-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- About Us Page --- */
.about-hero-section {
    padding: 10rem 5% 4rem;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-main {
    text-align: center;
    position: relative;
}

.about-hero-main h1 {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 1;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.hero-avatars {
    position: absolute;
    top: -20px;
    right: -40px;
    display: flex;
}

.hero-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    margin-left: -15px;
    object-fit: cover;
}

.about-remarks-section {
    padding: 6rem 5%;
    background-color: var(--bg-main);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.remarks-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.owner-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.owner-profile img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-info {
    display: flex;
    flex-direction: column;
}

.owner-info strong {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.owner-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.owner-note {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 300px;
}

.remarks-quote {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 900px;
}

.about-full-image {
    padding: 0;
    width: 100%;
    position: relative;
    height: 70vh;
    overflow: hidden;
    background-color: var(--bg-main);
}

.about-full-image-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    background-image: url('Media/Renders/d5-exterior-architecture.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.about-full-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Slight overlay for logo */
    z-index: 2;
}

.about-full-image-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 4rem;
    color: white;
}

/* ========= TEAM GRID (.tg) — matches reference screenshot exactly ========= */
.about-team-section {
    padding: 5rem 5% 6rem;
    background-color: var(--bg-main);
}

.tg {
    --tg-card-size: clamp(120px, 12vw, 165px);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) var(--tg-card-size) var(--tg-card-size) var(--tg-card-size) var(--tg-card-size);
    grid-template-rows: auto auto;
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    align-items: start;
}

/* -- Text block: col 1, row 1 -- */
.tg-text {
    grid-column: 1 / 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 2rem;
    padding-top: 0;
}

.tg-text h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

/* -- Portrait cards: cols 2-4, row 1 -- */
.tg-mohsin { grid-column: 3; grid-row: 1; }
.tg-roshaan { grid-column: 4; grid-row: 1; }
.tg-alex    { grid-column: 5; grid-row: 1; }

.tg-mohsin, .tg-roshaan, .tg-alex {
    aspect-ratio: 1 / 1.05; /* slightly portrait, matching reference */
    width: var(--tg-card-size);
    justify-self: end;
}

/* -- Owner card: cols 1-2, row 2 -- */
.tg-owner {
    grid-column: 2 / 4;
    grid-row: 2;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: calc((var(--tg-card-size) * 2) + 1.25rem);
    justify-self: start;
}

.tg-owner img {
    object-position: center center; /* Let face crop naturally */
}

/* -- Helen: col 3, row 2 -- */
.tg-helen {
    grid-column: 4;
    grid-row: 2;
    aspect-ratio: 1 / 1.05;
    width: var(--tg-card-size);
    justify-self: end;
}

/* -- Stats: col 4, row 2 -- */
.tg-stats {
    grid-column: 5;
    grid-row: 2;
    aspect-ratio: 1 / 1.05;
    width: var(--tg-card-size);
    border: 2px dashed #c8c8c8;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    justify-self: end;
}

.tg-stats h3 {
    font-size: 2.75rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tg-stats p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Shared card base */
.tg-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e5e5e5;
}

.tg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.tg-card:hover img {
    transform: scale(1.04);
}

.tg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    color: white;
}

.tg-overlay h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.2rem;
}

.tg-overlay span {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Owner overlay — name bottom-left, quote bottom-right */
.tg-owner-overlay {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.tg-owner-name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tg-owner-name h4 { font-size: 1rem; font-weight: 500; margin: 0; }
.tg-owner-name span { font-size: 0.85rem; opacity: 0.8; }
.tg-owner-arrow { font-size: 1rem; opacity: 0.8; }

.tg-owner-quote {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    max-width: 200px;
    text-align: right;
    line-height: 1.3;
    margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
    .about-team-section {
        padding: 4rem 5%;
    }

    .tg {
        --tg-card-size: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .tg-text    { grid-column: 1 / -1; grid-row: 1; padding-right: 0; }
    .tg-mohsin  { grid-column: 1; grid-row: 2; }
    .tg-roshaan { grid-column: 2; grid-row: 2; }
    .tg-alex    { grid-column: 1; grid-row: 3; }
    .tg-owner   { grid-column: 1 / -1; grid-row: 4; aspect-ratio: 16/9; }
    .tg-helen   { grid-column: 2; grid-row: 3; }
    .tg-stats   { grid-column: 1 / -1; grid-row: 5; aspect-ratio: auto; min-height: 140px; }
    .tg-mohsin, .tg-roshaan, .tg-alex, .tg-helen, .tg-stats, .tg-owner {
        width: auto;
        max-width: none;
        justify-self: stretch;
    }
    .tg-owner-overlay { flex-direction: column; justify-content: flex-end; gap: 1rem; }
    .tg-owner-quote { text-align: left; max-width: 100%; }
}

/* --- Team grid: 4-column layout matching reference screenshot --- */
.about-team-container {
    /* 4 equal columns: [text] [card] [card] [card] */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

/* Top row — text block spans col 1 */
.about-team-top-row {
    grid-column: 1 / -1;   /* temp wrapper — overridden below */
    display: contents;      /* unwrap, let children flow into parent grid */
}

.team-intro-card {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
    padding-right: 1.5rem;
}

.horizontal-line {
    width: 100%;
    height: 1px;
    background-color: #d0d0d0;
    margin-top: auto;
}

/* Top-row member cards: cols 2-4 */
.top-row-members {
    display: contents; /* unwrap into parent grid */
}

.top-row-members .team-member-card {
    grid-row: 1;
    aspect-ratio: 3 / 3.5;
}

/* Bottom row */
.about-team-bottom-row {
    display: contents; /* unwrap into parent grid */
}

/* Owner card spans cols 1+2, sits in row 2 */
.large-owner-card {
    grid-column: 1 / 3;
    grid-row: 2;
    aspect-ratio: unset;
    /* Match height of the portrait cards on its right */
}

/* bottom-row-right: cols 3-4, row 2 */
.bottom-row-right {
    display: contents; /* unwrap into parent grid */
}

.bottom-row-right .team-member-card,
.bottom-row-right .team-stats-card {
    grid-row: 2;
    aspect-ratio: 3 / 3.5;
}

.team-intro-icon {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.team-intro-card h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.4;
    color: var(--text-primary);
    max-width: 400px;
    font-weight: 500;
}

.team-member-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #e5e5e5;
}

.team-member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-member-card:hover img {
    transform: scale(1.05);
}

/* portrait class no longer controls aspect-ratio — the grid rows do.
   Keep it as a hook but don't force a conflicting ratio */
.team-member-card.portrait {
    /* aspect-ratio controlled by .top-row-members .team-member-card
       and .bottom-row-right .team-member-card selectors above */
}

/* landscape class also deferred to grid placement */
.team-member-card.landscape {
    /* width/height controlled by grid-column span + row height */
}

.large-owner-card img {
    object-position: center 20%; /* Moves image focus slightly up to preserve head */
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--bg-white);
}

.member-overlay h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.member-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.large-owner-card .member-overlay {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.owner-large-text {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    max-width: 300px;
    text-align: right;
    line-height: 1.3;
}

.team-stats-card {
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    aspect-ratio: 4/5;
}

.team-stats-card h3 {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.team-stats-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Updated Media Queries */
@media (max-width: 1024px) {
    .stat-container { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .insights-featured-layout { grid-template-columns: 1fr; }
    .insight-featured-img { min-height: 320px; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
    .contact-page-container { grid-template-columns: 1fr; gap: 4rem; }
    .about-remarks-section { grid-template-columns: 1fr; gap: 2rem; }
    .about-team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-intro-card { grid-column: span 2; padding-right: 0; margin-bottom: 2rem; }
    .team-stats-card { aspect-ratio: auto; min-height: 200px; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .service-row { grid-template-columns: 160px 1fr auto; }
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-col.col-2, .masonry-col.col-3, .masonry-col.col-4 { display: contents; }
}
@media (max-width: 768px) {
    /* --- Global mobile overflow prevention --- */
    *, *::before, *::after {
        max-width: 100%;
    }

    /* --- Hero: keep big text, push buttons up so they don't cover it --- */
    .slide-content h1 { font-size: clamp(2.2rem, 8vw, 4rem); margin-bottom: 1rem; }
    .slide-content p { font-size: 1rem; line-height: 1.5; }
    .slide { padding: 0 5%; padding-bottom: 8rem; }
    .hero-bottom-bar { bottom: 2rem; }
    .hero-social-proof { display: none; }
    .hero-video-card { display: none; }
    .hero { text-align: center; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; text-align: center; }

    /* --- Stats --- */
    .stat-container { grid-template-columns: 1fr 1fr; gap: 2rem; text-align: center; }
    .stat-item p { margin: 0 auto; }
    .stat-item h3 { font-size: clamp(2rem, 8vw, 3rem); }

    /* --- Services accordion --- */
    .services-dark { padding: 4rem 5%; }
    .service-row { grid-template-columns: 50px 1fr auto; gap: 0.75rem; }
    .service-row-detail { grid-column: 1 / -1; }
    .service-row-left { gap: 0; }
    .service-num-dark { display: none; }
    .service-thumb { width: 44px; height: 44px; border-radius: 8px; }
    .service-row-center h3 { font-size: 1.1rem; }
    .tag-dark { font-size: 0.7rem; }

    /* --- Features Masonry --- */
    .features-masonry { padding: 4rem 5%; }
    .masonry-grid { grid-template-columns: 1fr; }
    .masonry-card { padding: 1.5rem; }
    .masonry-header { flex-direction: column; gap: 1.5rem; }
    .header-right { text-align: left; }
    .header-right .btn-primary { margin: 0; }

    /* --- Projects --- */
    .projects { padding: 4rem 5%; }
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* --- Experience Banner --- */
    .experience-banner { padding: 4rem 5%; }

    /* --- Testimonials --- */
    .testimonials { padding: 4rem 5%; }
    .testimonial-grid { grid-template-columns: 1fr; gap: 2rem; }
    .testimonial-card { padding: 1.5rem; }

    /* --- Insights --- */
    .insights { padding: 4rem 5%; }
    .insights-featured-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .insight-featured-img { min-height: 280px; }
    .insight-list-item { padding: 1.5rem; }
    .insight-list-item h4 { max-width: 75%; font-size: 1.1rem; }
    .insight-list-item .insight-arrow-btn { right: 1.5rem; }

    /* --- Let's Talk --- */
    .lets-talk { padding: 6rem 5%; }
    .contact-expert { padding: 2rem; }

    /* --- FAQ --- */
    .faq-section { padding: 4rem 5%; }
    .faq-question { font-size: 1.05rem; }

    /* --- Team grid --- */
    .team-section { padding: 4rem 5%; }
    .team-grid { grid-template-columns: 1fr; max-width: 320px; }
    .about-hero-main h1 { font-size: clamp(3rem, 12vw, 4rem); }
    .hero-avatars { display: none; }
    .about-container-grid { grid-template-columns: 1fr; }
    .team-intro-card { grid-column: 1; grid-row: auto; padding-right: 0; }
    .top-row-members .team-member-card,
    .bottom-row-right .team-member-card,
    .bottom-row-right .team-stats-card { grid-column: auto; grid-row: auto; aspect-ratio: 3/3.5; }
    .about-team-container { grid-template-columns: 1fr 1fr; }
    .team-intro-card { grid-column: 1 / -1; }
    .large-owner-card { grid-column: 1 / -1; aspect-ratio: 4/3; }
    .large-owner-card .member-overlay { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1rem; }
    .owner-large-text { text-align: left; }

    /* --- Final CTA --- */
    .final-cta { padding: 5rem 5%; }
    .cta-content h2 { font-size: clamp(2rem, 6vw, 3rem); }

    /* --- Contact Page --- */
    .contact-page-section { padding: 7rem 5% 3rem; }
    .contact-page-container { grid-template-columns: 1fr; gap: 3rem; }
    .contact-left { padding-right: 0; }
    .contact-page-title { font-size: clamp(2rem, 7vw, 3rem); }
    .contact-info-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-card { padding: 1.5rem; }
    .info-cell a, .info-cell p { font-size: 1.05rem; }

    /* --- Footer --- */
    .main-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .site-footer {
        min-height: 80vh;
    }
    .footer-content {
        padding: 5rem 0 3rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-top h2 { font-size: clamp(2rem, 7vw, 3rem); }
    .footer-top p { text-align: center; }
    .footer-btn.large {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    .footer-bottom {
        position: absolute;
        bottom: 2rem;
        left: 5%;
        right: 5%;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .legal-links { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* --- About Page --- */
    .about-hero-section { padding: 7rem 5% 3rem; }
    .about-remarks-section { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 5%; }
    .remarks-quote { font-size: clamp(1.3rem, 4vw, 2rem); }

    /* --- Services Page Hero --- */
    .services-video-hero { height: 60vh; min-height: 400px; padding-bottom: 2rem; }
    .services-hero-content h1 { font-size: clamp(2.5rem, 8vw, 4rem); }

    /* --- Projects Page --- */
    .vertical-projects-section { padding: 4rem 5% 3rem; }
    .projects-page-title { font-size: clamp(3rem, 10vw, 5rem); transform: none; }
    .vertical-img-wrap img { aspect-ratio: 16/9; }
    .vertical-card-info { flex-direction: column; gap: 0.75rem; }
    .info-main, .info-client { text-align: left; justify-content: flex-start; }
    .info-main h3 { font-size: 1.4rem; }

    /* --- Gallery Page --- */
    .gallery-hero { padding: 8rem 5% 3rem; }
    .gallery-hero h1 { font-size: clamp(3rem, 10vw, 5rem); }
}
/* =========================================
   Horizontal Expanding Services (services.html)
   ========================================= */
.hz-services-section {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hz-services-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 80vh;
}

.hz-service-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* No gaps, no border-radius — sharp edges */
.hz-service-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05);
}

.hz-box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    transition: background 0.5s ease;
    z-index: 1;
}

.hz-box-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hz-box-num {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.hz-box-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
    transition: font-size 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hz-box-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s ease 0.1s;
}

/* ---- Hover state ---- */
.hz-services-row:hover .hz-service-box {
    flex: 0.7;
}

.hz-services-row .hz-service-box:hover {
    flex: 3;
}

.hz-service-box:hover img {
    transform: scale(1);
}

.hz-service-box:hover .hz-box-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.1) 60%,
        transparent 100%
    );
}

.hz-service-box:hover .hz-box-content h3 {
    font-size: 2rem;
}

.hz-service-box:hover .hz-box-desc {
    max-height: 100px;
    opacity: 1;
}

/* ---- Mobile: stack vertically ---- */
@media (max-width: 900px) {
    .hz-services-row {
        flex-direction: column;
        height: auto;
    }

    .hz-service-box {
        height: 250px;
        flex: none;
    }

    .hz-services-row:hover .hz-service-box,
    .hz-services-row .hz-service-box:hover {
        flex: none;
        height: 250px;
    }

    .hz-box-content h3 {
        font-size: 1.2rem;
    }

    .hz-service-box:hover .hz-box-content h3 {
        font-size: 1.6rem;
    }
}

/* =========================================
   Blog Grid Cards + Modal (blog.html)
   ========================================= */

/* --- Hero --- */
.blog-hero-section {
    padding: 140px 5% 60px;
    text-align: center;
    background: var(--bg-primary, #f2f0ed);
}

.blog-hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.blog-icon {
    display: inline-block;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.blog-hero-section h1 {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2rem;
    color: #1a1a1a;
    display: inline-block;
}

.blog-hero-section p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

/* --- Grid --- */
.blog-grid-section {
    padding: 0 24px 80px;
    background: var(--bg-primary, #f2f0ed);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

/* --- Card --- */
.blog-card {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 16px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}

.blog-card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.blog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    z-index: 2;
}

.blog-card-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.blog-card-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
}

/* Full-width 5th card */
.blog-card-wide {
    grid-column: 1 / -1;
}

.blog-card-wide .blog-card-img {
    height: 400px;
}

/* --- Blog Modal --- */
.blog-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.blog-modal.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-inner {
    width: 100%;
    max-width: 100%;
    height: 92vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-modal.active .blog-modal-inner {
    transform: translateY(0);
}

.blog-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5%;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.blog-modal-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px 8px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.blog-modal-back:hover {
    background: #f2f0ed;
}

.blog-modal-date {
    font-size: 0.85rem;
    color: #999;
    font-family: 'Inter', sans-serif;
}

.blog-modal-hero {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.blog-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-modal-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 5% 80px;
}

.blog-modal-body h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.blog-modal-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.4rem;
}

.blog-modal-text p:last-child {
    margin-bottom: 0;
}

.blog-modal-text a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.blog-modal-text a:hover {
    opacity: 0.7;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-img {
        height: 320px;
    }

    .blog-card-wide .blog-card-img {
        height: 320px;
    }

    .blog-card-overlay h3 {
        font-size: 1.05rem;
    }

    .blog-hero-section {
        padding: 120px 5% 40px;
    }

    .blog-grid-section {
        padding: 0 16px 60px;
    }

    .blog-modal-inner {
        height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .blog-modal-hero {
        max-height: 280px;
    }

    .blog-modal-body {
        padding: 32px 5% 60px;
    }

    .blog-modal-body h1 {
        font-size: 1.5rem;
    }
}

