/* 
   HAYAT PRIME CONSTRUCTION - Premium Theme
   Visual Direction: Luxury architecture + Premium construction
*/

:root {
    /* Color Palette */
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --bg-surface-light: #141414;
    --text-primary: #ffffff;
    --text-secondary: #9a9a9a;
    --text-muted: #666666;
    
    /* Strategic Accent (Construction Copper/Gold) */
    --accent-primary: #d9772b;
    --accent-hover: #e58a45;
    
    /* Structural Elements */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-heading: 'Epilogue', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1400px;
    --section-padding: 8rem 0;
    
    /* Transitions */
    --trans-fast: 0.3s ease;
    --trans-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Base Image Fixes for Alignment and Display */
img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Loader */
.loading {
    overflow: hidden;
}
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
}
.loader-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 20px;
}
.loader-brand span {
    font-weight: 700;
}
.loader-line {
    width: 250px;
    height: 2px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.loader-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-primary);
    animation: loadLine 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes loadLine {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.1rem;
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.section-padding {
    padding: var(--section-padding);
}

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

.border-top {
    border-top: 1px solid var(--border-color);
}

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

.max-w {
    max-width: 700px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    border: 1px solid var(--accent-primary);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}
.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 0.25rem;
}
.text-link:hover {
    color: var(--accent-primary);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--trans-smooth);
    border-bottom: 1px solid transparent;
}

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

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-weight: 300;
}
.brand span {
    font-weight: 700;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.call-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}
.call-link:hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-base);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-smooth);
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mobile-menu-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    transform: scale(1.05); /* for subtle parallax/zoom */
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.7) 50%, rgba(5,5,5,0.3) 100%);
}

.hero-grain {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 80px; /* offset for navbar */
}

.hero-text-wrapper {
    max-width: 850px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 40px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 30px; height: 1px;
    background: var(--accent-primary);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    max-width: 600px;
    margin-bottom: 3rem;
    color: #dfdfdf;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap; /* Fixed button alignment on small screens */
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(-90deg);
    transform-origin: left center;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0; left: 0;
    width: 20px; height: 1px;
    background: var(--accent-primary);
    animation: scrollAnim 2s infinite ease-in-out;
}

@keyframes scrollAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* =========================================
   Section 01: About
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center; /* Aligns content vertically */
}

.about-highlights {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.about-highlights i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem 0 0 2rem;
}

.about-image-frame {
    position: relative;
    z-index: 2;
}

.about-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: -20px 20px 0px rgba(255,255,255,0.03);
    filter: brightness(0.9) contrast(1.1);
}

.image-meta {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--accent-primary);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.meta-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.arch-lines {
    position: absolute;
    top: -20px; right: -20px;
    width: 100%; height: 100%;
    border: 1px solid var(--border-color);
    z-index: -1;
}

/* =========================================
   Section 02: Stats
   ========================================= */
.stats {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

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

.stat-card {
    position: relative;
    padding: 0 2rem;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--accent-primary);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.stat-line {
    position: absolute;
    left: 0; top: 10%;
    height: 80%; width: 1px;
    background: var(--border-color);
}
.stat-card:first-child .stat-line { display: none; }

/* =========================================
   Section 03: Services
   ========================================= */
.services-list {
    margin-top: 4rem;
}

.service-row {
    display: flex;
    align-items: center;
    padding: 3.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--trans-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.service-row:first-child {
    border-top: 1px solid var(--border-color);
}

.service-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 0;
}

.service-row:hover::before {
    transform: scaleX(1);
}

.service-row > * {
    position: relative;
    z-index: 1;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    width: 10%;
    min-width: 60px;
    font-weight: 300;
}

.service-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.service-name {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    width: 40%;
    margin: 0;
    transition: transform 0.3s ease;
}

.service-detail {
    width: 55%;
    margin: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-action {
    width: 5%;
    text-align: right;
    font-size: 2rem;
    color: var(--border-light);
    transition: all 0.3s ease;
}

.service-row:hover .service-name {
    transform: translateX(10px);
}
.service-row:hover .service-detail {
    opacity: 1;
}
.service-row:hover .service-action {
    color: var(--accent-primary);
    transform: rotate(45deg);
}

/* =========================================
   Section 04: Markets (Clean Grid)
   ========================================= */
.markets-clean {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}
.markets-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 4rem;
}
.clean-market-card {
    display: block;
}
.cm-img {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}
.cm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.85);
}
.clean-market-card:hover .cm-img img {
    transform: scale(1.05);
    filter: brightness(1);
}
.cm-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.cm-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 90%;
}
.cm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}
.clean-market-card:hover .cm-content h3 {
    color: var(--accent-primary);
}
.clean-market-card:hover .cm-link {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .markets-simple-grid { grid-template-columns: 1fr; gap: 4rem; }
    .cm-img { height: 350px; }
}

/* =========================================
   Light Theme Overrides
   ========================================= */
body.light-mode {
    --bg-base: #fafafa;
    --bg-surface: #ffffff;
    --bg-surface-light: #f0f0f0;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.2);
}

body.light-mode .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

body.light-mode .loader {
    background: var(--bg-base);
}

/* Navbar text logic based on scroll state */
body.light-mode .navbar:not(.scrolled) .brand,
body.light-mode .navbar:not(.scrolled) .nav-links a,
body.light-mode .navbar:not(.scrolled) .call-link,
body.light-mode .navbar:not(.scrolled) .mobile-menu-toggle {
    color: #ffffff;
}

body.light-mode .navbar.scrolled .brand,
body.light-mode .navbar.scrolled .nav-links a,
body.light-mode .navbar.scrolled .call-link,
body.light-mode .navbar.scrolled .mobile-menu-toggle {
    color: var(--text-primary);
}

/* Force hero elements to stay white */
body.light-mode .hero-title,
body.light-mode .hero-desc,
body.light-mode .scroll-text,
body.light-mode .eyebrow {
    color: #ffffff;
}

/* Overlays that should become light */
body.light-mode .location-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.4) 100%);
}
body.light-mode .cta-overlay {
    background: rgba(255,255,255,0.9);
}

body.light-mode .footer-links-col h4, 
body.light-mode .footer-contact-col h4 {
    color: var(--text-primary);
}

body.light-mode .about-highlights li {
    color: var(--text-secondary);
}

body.light-mode .service-row::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.03) 0%, transparent 100%);
}

body.light-mode .about-image-frame img {
    box-shadow: -20px 20px 0px rgba(0,0,0,0.05);
}

body.light-mode .project-overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 50%);
}
body.light-mode .project-info {
    color: var(--text-primary);
}
body.light-mode .project-tags span {
    background: rgba(255,255,255,0.8);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.theme-toggle-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* =========================================
   Section 05: Portfolio
   ========================================= */
.header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.header-split .header-desc {
    max-width: 500px;
    text-align: right;
}
.header-split .header-desc p {
    margin-bottom: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.project-card.large {
    grid-column: span 12;
    height: 70vh;
}

.project-card:nth-child(2) {
    grid-column: span 7;
    height: 50vh;
}

.project-card:nth-child(3) {
    grid-column: span 5;
    height: 50vh;
}

.project-img {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.project-info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 3rem;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.project-tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.project-card.large .project-title {
    font-size: 3rem;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}
.project-card:hover .project-overlay {
    opacity: 0.9;
}
.project-card:hover .project-info {
    transform: translateY(0);
}
.project-card:hover .view-project {
    opacity: 1;
}

/* =========================================
   Section 06: Case Study
   ========================================= */
.case-study-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.cs-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}
.cs-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.cs-badge {
    position: absolute;
    top: 2rem; left: 2rem;
    background: var(--accent-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cs-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.meta-item .meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.meta-item .meta-value {
    font-weight: 500;
    color: var(--text-primary);
}

.cs-title {
    font-size: 2.5rem;
}
.cs-highlights {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}
.cs-highlights li {
    list-style-type: square;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}
.cs-highlights li span {
    color: var(--text-secondary);
}

/* =========================================
   Section 07: Process
   ========================================= */
.process-timeline {
    margin-top: 5rem;
    position: relative;
}

.timeline-track {
    position: absolute;
    top: 24px; left: 0;
    width: 100%; height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-progress {
    height: 100%; width: 0%;
    background: var(--accent-primary);
    transition: width 1.5s ease-out;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.step-card {
    padding-right: 1rem;
}

.step-marker {
    width: 50px; height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.step-card:hover .step-marker, .step-card.active .step-marker {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================
   Section 08: Why Us
   ========================================= */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.advantage-card {
    padding: 3rem;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    transition: var(--trans-fast);
}

.advantage-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.advantage-card .icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.3rem;
}
.advantage-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* =========================================
   Section 09: Location
   ========================================= */
.location-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.location-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.location-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4);
}
.location-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.7) 50%, rgba(5,5,5,0.2) 100%);
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.location-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 0 5%; /* Aligns it with container left padding */
}

.location-title {
    font-size: 3.5rem;
}
.location-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.location-markers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.marker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
}
.marker i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* =========================================
   Section 10: Testimonials
   ========================================= */
.testimonial-editorial {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent-primary);
    opacity: 0.2;
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.testimonial-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.author-info p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

/* =========================================
   Section 11: Final CTA
   ========================================= */
.final-cta {
    position: relative;
    padding: 10rem 0;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.cta-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,5,0.85);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto; /* Explicitly centered */
}
.cta-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
}
.cta-desc {
    font-size: 1.3rem;
    margin-bottom: 3rem;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: var(--bg-surface-light);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-desc {
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    font-size: 1.2rem;
}
.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.footer-links-col h4, .footer-contact-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links-col ul li {
    margin-bottom: 0.8rem;
}
.footer-links-col ul a:hover {
    color: var(--accent-primary);
}

.contact-info li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.contact-info i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.legal-links {
    display: flex;
    gap: 1.5rem;
}
.legal-links a:hover {
    color: #fff;
}

/* =========================================
   Animations (Scroll Reveal)
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-visible.reveal-up {
    opacity: 1;
    transform: translateY(0);
}
.is-visible.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .stat-card:nth-child(3) .stat-line { display: none; }
    
    .portfolio-grid { display: flex; flex-direction: column; }
    .project-card.large, .project-card:nth-child(2), .project-card:nth-child(3) { height: 50vh; }
    
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .markets-grid { grid-template-columns: repeat(2, 1fr); }
    .market-card { height: 400px; }
}

@media (max-width: 992px) {
    .about-grid, .case-study-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-wrapper { padding: 0; }
    
    .service-info { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .service-name, .service-detail { width: 100%; }
    
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .timeline-track { display: none; } /* Hide horizontal track on tablet */
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn, .nav-actions .call-link { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .header-split { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .header-split .header-desc { text-align: left; }
    
    .advantages-grid, .process-steps { grid-template-columns: 1fr; }
    
    .cta-actions { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand-col { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
    .markets-grid { grid-template-columns: 1fr; }
    .market-card { height: 350px; }
}
