/* ═══════════════════════════════════════════════════════════
   ARCHENG DESIGNERS — Modern Architectural Design System
   A premium dark-theme design language for architecture
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Palette */
    --bg-deep:        #0a0b0e;
    --bg-primary:     #0f1115;
    --bg-secondary:   #151820;
    --bg-card:        #1a1e27;
    --bg-card-hover:  #20252f;
    --bg-surface:     #232834;

    /* Accent — warm architectural gold */
    --gold:           #c9a96e;
    --gold-light:     #e0c992;
    --gold-dark:      #a07d3f;
    --gold-glow:      rgba(201, 169, 110, 0.2);
    --gold-subtle:    rgba(201, 169, 110, 0.08);

    /* Text */
    --text-primary:   #f4f5f7;
    --text-secondary: #9ea4b0;
    --text-muted:     #5c6370;
    --text-inverse:   #0f1115;

    /* Borders */
    --border:         rgba(255, 255, 255, 0.06);
    --border-accent:  rgba(201, 169, 110, 0.25);

    /* Typography */
    --font-heading:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:      'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Sizing */
    --container:      1280px;
    --section-pad:    120px;
    --gap:            24px;

    /* Radius */
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --radius-xl:      28px;

    /* Transitions */
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration:       0.4s;
    --duration-fast:  0.25s;
    --duration-slow:  0.6s;
}

/* ─── Reset & Foundations ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

::selection {
    background: var(--gold);
    color: var(--text-inverse);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
}

h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

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

a:hover { color: var(--gold); }

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
    color: var(--text-inverse);
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.35);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.95rem;
}

.btn-full { width: 100%; }


/* ═══════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 11, 14, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration) var(--ease-out);
}

.site-header.scrolled {
    background: rgba(10, 11, 14, 0.92);
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.brand-logo img {
    height: 44px;
    width: auto;
    border-radius: 4px;
}

.brand-logo:hover { color: var(--text-primary); }

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: block;
    color: var(--text-primary);
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--duration) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
    padding: 10px 24px;
    font-size: 0.82rem;
    margin-left: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
    border-radius: 2px;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 11, 14, 0.3) 0%,
            rgba(10, 11, 14, 0.4) 30%,
            rgba(10, 11, 14, 0.75) 65%,
            rgba(10, 11, 14, 0.95) 100%
        ),
        linear-gradient(90deg,
            rgba(10, 11, 14, 0.6) 0%,
            transparent 60%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gold-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.hero-badge svg { color: var(--gold); }

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title span {
    display: block;
}

.hero-title em {
    font-style: normal;
    color: var(--gold);
}

.hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    right: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    writing-mode: vertical-lr;
}

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

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--gold);
    animation: scrollDown 2s var(--ease-out) infinite;
}

@keyframes scrollDown {
    0%   { top: -40%; }
    100% { top: 100%; }
}


/* ═══════════════════════════════════════════════════════
   SECTIONS — SHARED
   ═══════════════════════════════════════════════════════ */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════
   PORTFOLIO SECTION
   ═══════════════════════════════════════════════════════ */
.projects-section {
    background: var(--bg-deep);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 9px 22px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    color: var(--text-inverse);
    border-color: var(--gold);
    font-weight: 600;
}

/* Portfolio Grid — Masonry-inspired */
.portfolio-grid {
    columns: 3;
    column-gap: 20px;
}

.project-card {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
}

.project-card.hidden {
    display: none;
}

.project-card.fading {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.project-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

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

.project-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(10, 11, 14, 0.92) 0%,
        rgba(10, 11, 14, 0.5) 40%,
        rgba(10, 11, 14, 0.05) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-cat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.project-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    transform: translateY(10px);
    transition: transform var(--duration) var(--ease-out);
}

.project-card:hover .project-overlay h3 {
    transform: translateY(0);
}

.project-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transform: translateY(10px);
    transition: transform var(--duration) var(--ease-out) 0.05s;
    line-height: 1.5;
}

.project-card:hover .project-overlay p {
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.portrait-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.portrait-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top center;
}

.portrait-meta {
    margin-top: 20px;
}

.portrait-meta h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.portrait-meta p {
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.08rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.about-content > p {
    margin-bottom: 36px;
}

/* Credentials — Timeline Style */
.credentials {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border-accent);
    margin-left: 8px;
    padding-left: 0;
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0 20px 28px;
    position: relative;
}

.credential::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 26px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-secondary);
}

.credential-year {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 60px;
    line-height: 1;
    padding-top: 2px;
}

.credential-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

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


/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.services-section {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.service-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-lead {
    font-size: 1.05rem;
    margin-bottom: 36px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gold-subtle);
    border: 1px solid var(--border-accent);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.88rem;
}

.contact-item a {
    color: var(--gold);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6370' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 36px;
    width: auto;
    border-radius: 3px;
}

.footer-brand span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-staging {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-staging a {
    color: var(--gold);
}


/* ═══════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 52px; height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-body {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lightbox-img {
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.95);
    transition: transform var(--duration) var(--ease-out);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    text-align: center;
    margin-top: 24px;
    max-width: 600px;
}

.lightbox-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.lightbox-title {
    font-size: 1.6rem;
    margin-top: 6px;
    color: #fff;
}

.lightbox-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transition:
        opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
    transition-delay: var(--delay, 0s);
}

.reveal.reveal-up {
    transform: translateY(32px);
}

.reveal.reveal-left {
    transform: translateX(-32px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */

/* Tablet Landscape */
@media (max-width: 1200px) {
    :root {
        --section-pad: 100px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        columns: 2;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    :root {
        --section-pad: 80px;
    }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: min(380px, 85vw);
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right var(--duration) var(--ease-out);
        z-index: 5;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 28px;
        margin-bottom: 32px;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-cta {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-portrait {
        max-width: 380px;
    }

    .portrait-card img {
        height: 360px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
        --gap: 16px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        height: 68px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero {
        padding-bottom: 48px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .portfolio-grid {
        columns: 2;
        column-gap: 12px;
    }

    .project-card {
        margin-bottom: 12px;
    }

    .project-overlay {
        opacity: 1;
        padding: 16px;
    }

    .project-overlay h3 {
        font-size: 0.95rem;
        transform: none;
    }

    .project-overlay p {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .portfolio-filters {
        gap: 6px;
        margin-bottom: 32px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .portfolio-grid {
        columns: 1;
    }

    .hero-badge {
        font-size: 0.65rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ─── Performance ─── */
.projects-section,
.services-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* ═══════════════════════════════════════════════════════
   SUBPAGE ARCHITECTURE & BREADCRUMBS
   ═══════════════════════════════════════════════════════ */
.page-banner {
    position: relative;
    padding: 160px 0 80px;
    background: radial-gradient(circle at top right, rgba(201, 169, 110, 0.08), transparent 60%),
                linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--duration-fast);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-sep {
    color: var(--gold-dark);
    font-size: 0.9rem;
}

.page-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.page-title em {
    color: var(--gold);
    font-style: normal;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 760px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   HYDERABAD SPOTLIGHT CALLOUT BANNER
   ═══════════════════════════════════════════════════════ */
.hyderabad-spotlight {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(26, 30, 39, 0.9) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.hyderabad-spotlight::after {
    content: 'HYDERABAD';
    position: absolute;
    right: 20px;
    bottom: -10px;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.1em;
    pointer-events: none;
    line-height: 1;
}

.hyderabad-spotlight-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.hyderabad-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hyderabad-spotlight h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hyderabad-spotlight p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO SEARCH & TOOLBAR (projects.html)
   ═══════════════════════════════════════════════════════ */
.portfolio-toolbar {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-search-bar {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.portfolio-search-input {
    width: 100%;
    padding: 14px 20px 14px 46px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--duration-fast);
}

.portfolio-search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: var(--bg-card-hover);
}

.portfolio-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.portfolio-counter {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.portfolio-counter strong {
    color: var(--gold);
    font-weight: 700;
}

.filter-btn .filter-count {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    margin-left: 6px;
    transition: background var(--duration-fast);
}

.filter-btn.active .filter-count {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-inverse);
}

/* Metadata Chips on Project Cards */
.card-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    margin-top: 4px;
    font-weight: 600;
}

.card-location-chip svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   COMPANY PROFILE CREDENTIALS & AWARDS
   ═══════════════════════════════════════════════════════ */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 48px 0;
}

.credential-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform var(--duration), border-color var(--duration);
}

.credential-box:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.credential-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.credential-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gold-subtle);
    border: 1px solid var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.credential-reg-tag {
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.award-feature {
    background: radial-gradient(circle at center, rgba(201, 169, 110, 0.12), transparent 70%),
                var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 60px 0;
}

.award-feature svg {
    color: var(--gold);
    margin-bottom: 16px;
}

.award-feature h3 {
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.publications-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.publication-item {
    background: var(--bg-card);
    border-left: 3px solid var(--gold);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ═══════════════════════════════════════════════════════
   CONTACT & CONSULTATION FORM
   ═══════════════════════════════════════════════════════ */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.office-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
    transition: border-color var(--duration);
}

.office-card:hover {
    border-color: var(--border-accent);
}

.office-card.hyderabad-office {
    border-color: rgba(201, 169, 110, 0.35);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(201, 169, 110, 0.04) 100%);
}

.office-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.office-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--gold-subtle);
    color: var(--gold);
    border: 1px solid var(--gold-glow);
}

.office-detail-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.office-detail-row svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.btn-whatsapp {
    background: #25D366;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hyderabad-spotlight-inner {
        grid-template-columns: 1fr;
    }
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
    .page-banner {
        padding: 130px 0 60px;
    }
}
