/* Smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed navbar so section headings don't hide underneath */
section[id] {
    scroll-margin-top: 80px;
}

/* CSS Custom Properties for Tokens */
:root {
    --color-bg-main: #FFFFFF;
    --color-bg-light: #F5F5F5;
    --color-bg-dark: #111111;
    --color-text-main: #111111;
    --color-text-muted: #555555;
    --color-accent: #B0A084;
    /* Muted Gold / Neutral aesthetic */
    --color-border: #EAEAEA;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --radius: 4px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

/* Layout & Utility */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    margin-top: 4rem;
}

.process-grid>.feature-box:nth-child(1) {
    grid-column: 1 / 3;
}

.process-grid>.feature-box:nth-child(2) {
    grid-column: 3 / 5;
}

.process-grid>.feature-box:nth-child(3) {
    grid-column: 5 / 7;
}

.process-grid>.feature-box:nth-child(4) {
    grid-column: 2 / 4;
}

.process-grid>.feature-box:nth-child(5) {
    grid-column: 4 / 6;
}

.gap-large {
    gap: var(--spacing-xl);
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-center .section-label {
    justify-content: center;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: var(--color-accent);
}

/* Buttons */
button,
.btn-primary,
.btn-primary-outline,
.btn-secondary {
    font-family: var(--font-body);
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-primary-outline:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-text-main);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo span {
    font-weight: 300;
    opacity: 0.9;
}

.navbar.scrolled .logo {
    color: var(--color-text-main);
    text-shadow: none;
}

.navbar.scrolled .logo span {
    color: var(--color-text-muted);
    text-shadow: none;
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-main);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--color-accent) !important;
}

.nav-links a.btn-primary-outline {
    padding: 0.6rem 1.5rem;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links a.btn-primary-outline {
    border-color: var(--color-border);
    background-color: transparent;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--color-text-main);
    filter: none;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .logo-light {
    color: white;
    font-weight: 300;
    opacity: 0.9;
}

.hero-content h1 .hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.hero-content p.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 100%;
    margin-bottom: 2.5rem;
    white-space: nowrap;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* About */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    min-height: 500px;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* Services */
.services .section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.services .section-header p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.services-wrapper {
    margin-top: 4rem;
}

.service-division {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-division h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.service-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.service-item:first-child {
    padding-top: 0;
}

.service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-item:hover {
    transform: translateX(8px);
}

.service-item svg,
.service-item i {
    width: 22px;
    height: 22px;
    color: var(--color-text-main);
    flex-shrink: 0;
    margin-top: 0.15rem;
    stroke-width: 1.5;
    transition: color 0.3s ease;
}

.service-item:hover svg,
.service-item:hover i {
    color: var(--color-accent);
}

.service-text {
    flex-grow: 1;
}

.service-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

.service-item:hover .service-text h4 {
    color: var(--color-accent);
}

.service-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* Why Us */
.feature-box {
    padding: 2rem;
    border-left: 1px solid var(--color-border);
}

.feature-box i {
    width: 32px;
    height: 32px;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

/* Featured Projects */
.featured-list {
    margin-top: 4rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.featured-card:last-child {
    margin-bottom: 0;
}

.featured-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.featured-card:nth-child(even) .featured-img {
    order: 2;
}

.featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.featured-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    max-width: 90%;
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-text-main);
    transition: width 0.3s ease;
}

.filter-btn.active {
    color: var(--color-text-main);
}

.filter-btn.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

/* Workflow */
.timeline-container {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    z-index: 0;
}

.timeline-stage {
    position: relative;
    z-index: 1;
    width: 22%;
    background-color: var(--color-bg-main);
    padding-top: 2rem;
}

.stage-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
}

.stage-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.stage-content ul {
    list-style: none;
}

.stage-content li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.stage-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

/* 360° Virtual Tours */
.vr-tours {
    background-color: var(--color-bg-main);
}

.vr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.vr-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.vr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.vr-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.vr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vr-card:hover .vr-thumb img {
    transform: scale(1.05);
}

.vr-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.03em;
}

.vr-badge svg {
    width: 14px;
    height: 14px;
}

.vr-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vr-info h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.vr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-text-main);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.vr-btn:hover {
    background-color: var(--color-accent);
}

.vr-btn svg {
    width: 16px;
    height: 16px;
}

.vr-btn--accent {
    background-color: var(--color-accent);
}

.vr-btn--accent:hover {
    background-color: var(--color-text-main);
}

.vr-card--featured {
    border-color: var(--color-accent);
}

.vr-live-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hidden-tour {
    display: none;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 28px;
    border-radius: 6px;
    border: 1px solid #d1c7b7;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.load-more-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Tour Modal */
.tour-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.tour-modal.open {
    opacity: 1;
    pointer-events: all;
}

.tour-modal-inner {
    position: relative;
    width: 95vw;
    height: 90vh;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.tour-modal-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tour-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tour-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tour-close svg,
.tour-close i {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

/* Map Section */
.map-container {
    margin-top: 4rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
}

#projectMap {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    z-index: 1;
    /* Keep behind navbar if overlapping */
    opacity: 0.85;
}

/* Subdue the Leaflet controls slightly to match aesthetic */
.leaflet-control-attribution,
.leaflet-control-attribution a {
    display: none !important;
}

.leaflet-control-zoom a {
    color: var(--color-text-main) !important;
    background-color: white !important;
    border: 1px solid var(--color-border) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 10px 15px !important;
    text-align: center;
}

.leaflet-popup-content strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.leaflet-popup-content span {
    color: var(--color-text-muted);
}

.custom-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background-color: var(--color-text-main);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.custom-map-marker:hover .marker-dot {
    transform: scale(1.3);
    background-color: var(--color-accent);
}

.presence-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.presence-stats .stat {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.presence-stats .stat span {
    font-weight: 600;
    color: var(--color-text-main);
    margin-right: 0.5rem;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;
    text-align: left;
}

.location-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.location-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Our Clients */
.clients {
    background-color: var(--color-bg-light);
}

.clients-container {
    max-width: 900px;
    margin: 4rem auto 0; /* Ensures consistent margin spacing + centering */
    text-align: center;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.client-logo.show {
    opacity: 1;
    transform: translateY(0);
}

.client-logo:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
}

.client-logo img {
    width: 100%;
    max-width: 140px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.client-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Testimonials */
.testimonials {
    background-color: var(--color-bg-main);
}

.testimonial-card {
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.stars svg {
    width: 20px;
    height: 20px;
}

.stars svg.fill {
    fill: var(--color-accent);
}

.feedback {
    font-size: 1.05rem;
    color: var(--color-text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.client-name {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.client-name::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--color-accent);
    margin-right: 10px;
}

/* Contact */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
}

.contact-item span {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
}

.contact-form {
    background-color: white;
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--color-bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text-main);
    background-color: white;
}

/* Footer */
.footer {
    background-color: var(--color-text-main);
    color: white;
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer .logo,
.footer .logo span {
    color: white;
}

.footer-brand p {
    color: #999;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #fff;
    color: #111;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Font Awesome icons inside social-icon */
.social-icon i {
    font-size: 16px;
    line-height: 1;
}

/* Lucide SVG icons inside social-icon */
.social-icon svg {
    width: 17px;
    height: 17px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.portfolio-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portfolio-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 20;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.portfolio-close svg,
.portfolio-close i {
    width: 24px;
    height: 24px;
}

.portfolio-modal-inner {
    pointer-events: auto;
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-modal-gallery {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-main-image img {
    pointer-events: none;
    /* prevents image blocking buttons */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    transition: opacity 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
    position: absolute;
    z-index: 20;
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
    left: 2rem;
}

.gallery-nav.next {
    right: 2rem;
}

.gallery-nav svg,
.gallery-nav i {
    width: 28px;
    height: 28px;
}

.portfolio-modal-details {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.portfolio-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.portfolio-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.portfolio-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    align-items: center;
}

.portfolio-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.portfolio-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.thumb-item {
    width: 100px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--color-accent);
}

.thumb-item:hover {
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .portfolio-modal-details {
        grid-template-columns: 1fr;
    }

    .gallery-nav.prev {
        left: 1rem;
    }

    .gallery-nav.next {
        right: 1rem;
    }

    .portfolio-close {
        top: 1rem;
        right: 1rem;
    }
}

/* Animations */
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease-out,
transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-grid>.feature-box {
        grid-column: auto !important;
    }

    .feature-box {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 2rem;
    }

    .feature-box:first-child {
        border-top: none;
    }

    .timeline-container {
        flex-direction: column;
    }

    .timeline-line {
        top: 0;
        left: 24px;
        width: 1px;
        height: 100%;
    }

    .timeline-stage {
        width: 100%;
        padding-left: 4rem;
        padding-top: 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .featured-card,
    .featured-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .featured-card:nth-child(even) .featured-img {
        order: -1;
    }

    .featured-img {
        aspect-ratio: 16/9;
    }

    .location-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}
/* Global Image Loading Enhancement */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.loaded {
  opacity: 1;
}

.portfolio-item.hidden {
  display: none !important;
}


/* --- Contact Page Specific Styles --- */
.contact-hero {
    background-color: var(--color-bg-light);
}

.clean-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.clean-form .half-width {
    width: 50%;
}

.clean-form .form-group {
    margin-bottom: 2rem;
}

.clean-form label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: block;
}

.clean-form input,
.clean-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0.75rem 0;
    background: transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

.clean-form input:focus,
.clean-form textarea:focus {
    border-bottom-color: var(--color-text-main);
    outline: none;
    box-shadow: none;
    background: transparent;
}

.info-block .contact-info-heading {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-block .contact-info-text {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-block .contact-link {
    color: var(--color-text-main);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 768px) {
    .clean-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .clean-form .half-width {
        width: 100%;
    }
}


/* --- Contact Page Premium Enhancements --- */
.contact-hero {
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.4);
    transition: box-shadow 0.4s ease;
}

.glass-panel:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.divider-line {
    width: 40px;
    height: 2px;
    background: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.feature-ctas {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.clean-form button[type="submit"]:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}



/* --- Contact Page Hero (Dynamic Random BG) --- */
.contact-hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    animation: contactHeroZoom 14s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes contactHeroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 720px;
    animation: fadeUp 0.9s ease both;
}

.contact-main {
    background: #fff;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .contact-hero { height: 100vh; min-height: 100vh; }
}


/* --- Application Form Select (Careers) --- */
.clean-form select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0.75rem 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-main);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.clean-form select:focus {
    outline: none;
    border-bottom-color: var(--color-text-main);
}

.clean-form select option {
    background: #fff;
    color: var(--color-text-main);
}

/* Smooth reveal for conditional field */
#other-qualification-group {
    animation: fadeUp 0.3s ease both;
}


/* =============================================
   Contact Page � Aligned Layout System
   ============================================= */

/* 2-col grid: left card + right stacked column, stretched equally */
/* Grid: both columns stretch to equal height */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Left card fills the full column height */
.contact-grid > .contact-card {
    flex: 1;
}

/* Unified card style applied to all boxes */
.contact-card {
    background: #f9f8f6;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* Right column fills its grid cell height */
.contact-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Careers card grows to take available space above office card */
.contact-right-col > .contact-card:first-child {
    flex: 1;
}

/* Office info card: compact, sits at bottom */
.contact-office-card {
    background: #f1efeb;
    flex-shrink: 0;
}

/* Card header */
.contact-card-header {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Form body fills remaining card space so button goes to bottom */
.contact-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* margin-top:auto pushes button to exact card bottom */
.contact-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Submit buttons: full width, uniform style */
.contact-submit-btn {
    width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

/* Consistent field spacing across both forms */
.contact-card .clean-form .form-group {
    margin-bottom: 1.6rem;
}

/* Responsive: stack on mobile */
@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .contact-grid > .contact-card,
    .contact-right-col > .contact-card:first-child {
        flex: none;
    }
}


/* =============================================
   CTA Connect Section (replaces contact form)
   ============================================= */
.cta-connect {
    background-color: var(--color-bg-light);
    text-align: center;
}

.cta-container {
    max-width: 640px;
    margin: 0 auto;
}

.cta-container .section-label {
    margin-bottom: 1rem;
}

.cta-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.cta-container p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-text-main);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


/* =============================================
   Our Philosophy Section
   ============================================= */
.philosophy-section {
    background: #ffffff;
}

.philosophy-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b89c6a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.philosophy-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.philosophy-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

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

.philosophy-card {
    background: #f8f8f6;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.philosophy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}

.phil-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #b89c6a;
    margin-bottom: 1.25rem;
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}


/* =============================================
   Our Philosophy Section
   ============================================= */
.philosophy-section {
    background: #ffffff;
}

.philosophy-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.philosophy-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.philosophy-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.philosophy-card {
    padding: 2.5rem;
    border-radius: 12px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.07);
}

.phil-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   Our Philosophy Section
   ============================================= */
.philosophy-section {
    background: #ffffff;
}

.philosophy-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b89c6a;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.philosophy-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.philosophy-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.philosophy-card {
    padding: 2.2rem 2rem;
    border-radius: 12px;
    background: #f8f7f5;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.philosophy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}

.phil-number {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b89c6a;
    margin-bottom: 1.1rem;
    font-family: var(--font-body);
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

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

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* =============================================
   Philosophy Section
   ============================================= */
.philosophy-section {
    padding: 100px 20px;
    background: #ffffff;
}

.philosophy-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: #b89c6a;
}

.philosophy-header h2 {
    font-size: 36px;
    margin: 10px 0;
}

.philosophy-header p {
    color: #777;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-card {
    padding: 30px;
    border-radius: 12px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.philosophy-card .number {
    font-size: 14px;
    color: #b89c6a;
    font-weight: 600;
}

.philosophy-card h3 {
    margin: 10px 0;
    font-size: 20px;
}

.philosophy-card p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   India Map Section
   ============================================= */
#india-map {
    padding: 80px 40px;
    background: linear-gradient(to bottom, #faf9f7, #f5f3ef);
    text-align: center;
}

#india-map .section-header h2 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2b2b2b;
}

#india-map .section-header h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #b89b72;
    margin: 20px auto 0;
}

#india-map .section-header .subtext {
    color: #7a7a7a;
    font-size: 16px;
}

#india-map .eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: #b89b72;
    font-weight: 600;
}

.map-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6e2dc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.map-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(180, 150, 100, 0.06);
    pointer-events: none;
    z-index: 400;
}

.leaflet-container {
    filter: grayscale(100%) contrast(95%) brightness(102%);
}

.custom-marker {
    width: 18px;
    height: 18px;
    background-color: #b89b72;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.custom-marker::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.city-label {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff, 1px -1px 2px #fff, -1px 1px 2px #fff;
    padding: 0;
}

.leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
}

.leaflet-popup-tip {
    background: #ffffff;
}

#map {
    width: 100%;
    height: 550px;
}

.map-floating-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 1000;
    max-width: 350px;
    text-align: left;
}

.state-group {
    margin-bottom: 20px;
}
.state-group:last-child {
    margin-bottom: 0;
}

.state-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.state-group .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.state-group p {
    font-size: 11px;
    color: #666;
    margin-left: 18px;
    line-height: 1.6;
    margin-bottom: 0;
}

.map-stats-bar {
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 30px;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 1000;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    flex: 1;
}

.stat-block:not(:last-child) {
    border-right: 1px solid rgba(0,0,0,0.06);
}

.stat-icon {
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.stat-icon i,
.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
}

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

.stat-info strong {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    display: block;
    line-height: 1;
    color: #222;
    margin-bottom: 8px;
}

.stat-info span {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .map-floating-panel {
        position: static;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .map-stats-bar {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 40px 20px;
    }
    .stat-block:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding-bottom: 30px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    #india-map {
        padding: 60px 20px;
    }
    #map {
        height: 350px;
    }
}

.hidden-project {
    display: none !important;
}

.load-more-btn {
    margin: 40px auto 0;
    display: block;
    padding: 10px 22px;
    border: 1px solid #ccc;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #f5f5f5;
}

/* =============================================
   Global Mobile Responsiveness (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Consistent padding and layout stacking */
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 4rem 0;
    }

    /* Stack multi-column grid/flex layouts vertically */
    .grid-2-col,
    .grid-3-col,
    .process-grid,
    .clients-grid,
    .footer-grid,
    .philosophy-grid,
    .stats-container,
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .portfolio-grid,
    .vr-grid {
        grid-template-columns: 1fr;
    }

    /* Forms stacking */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .form-group.half-width {
        width: 100%;
    }

    /* Fix specific section layouts */
    .featured-card {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .featured-card:nth-child(even) .featured-img {
        order: -1;
    }

    .featured-img {
        width: 100%;
    }

    .featured-content p {
        max-width: 100%;
    }

    /* Fix typography scale for mobile */
    h1 {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
    }

    h2 {
        font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.4rem !important;
    }
    
    p, body {
        font-size: 16px !important; /* Ensure min ~16px readable text */
        line-height: 1.6;
    }

    /* Make images fully responsive */
    img, video, iframe {
        max-width: 100% !important;
        height: auto;
    }

    /* Button and interaction optimizations */
    .btn-primary,
    .btn-primary-outline,
    .btn-secondary,
    .cta-button,
    .contact-submit-btn,
    .load-more-btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        box-sizing: border-box;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-ctas a {
        width: 100%;
        text-align: center;
    }

    /* Specific spacing/layout fixes */
    .hero {
        padding-top: 5rem;
    }

    .contact-main {
        padding: 3rem 0;
    }

    .footer {
        padding-top: 4rem;
    }

    /* Ensure modals scale down */
    .portfolio-modal-inner, .tour-modal-inner {
        width: 95%;
        height: 80vh;
    }

    .portfolio-modal-details {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .stats-container {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 2rem !important;
    }
}
