/* ═══════════════════════════════════════════
   KALAM HOUSE KSV CONSTRUCTION
   Mobile-First Portfolio
   Base = mobile → min-width breakpoints scale up
   ═══════════════════════════════════════════ */

:root {
    /* Premium Architectural Palette */
    --bg: #0F1115;
    /* Obsidian Slate */
    --bg-elevated: #16191E;
    --surface: #1A1D24;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(244, 245, 247, 0.15);
    /* Concrete Gray subtle */

    --text: #F4F5F7;
    /* Concrete Gray */
    --text-primary: #F4F5F7;
    --text-secondary: rgba(244, 245, 247, 0.7);
    --text-tertiary: rgba(244, 245, 247, 0.5);

    --accent: #D4A017;
    /* Architectural Brass */
    --accent-light: #E4B532;
    --accent-dark: #B88A14;
    --accent-glow: rgba(212, 160, 23, 0.15);
    --accent-subtle: rgba(212, 160, 23, 0.06);
    --success: #25d366;

    /* Fluid Typography System */
    --font-heading: 'Playfair Display', Georgia, serif;
    /* Primary Display */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    /* High-impact elements */
    --font-body: 'Inter', system-ui, sans-serif;
    /* High legibility */

    --container: 1440px;
    --header-h: 64px;
    --radius: 4px;
    /* More architectural/sharp */

    /* Motion Context */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-unveil: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Ergonomics (Fitts's Law) */
    --tap: 48px;
    --bottom-bar: 72px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    font-feature-settings: 'cv01', 'cv02';
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--bottom-bar);
}

/* ─── Typography (mobile base) ─── */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    /* Fluid Scaling */
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    letter-spacing: -0.03em;
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1vw + 0.875rem, 1.125rem);
    /* 60-75 character lines theoretically */
    line-height: 1.7;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

strong {
    color: var(--text);
    font-weight: 600;
}

::selection {
    background: var(--accent);
    color: black;
}



/* ─── Layout (mobile base) ─── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 3.5rem 0;
}

/* ─── Section Labels ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-label i {
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

/* Legacy CSS Drafting Crosshair Removed */

.section-header p {
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   HEADER (mobile base)
   ═══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    border-image: linear-gradient(90deg, transparent, var(--accent-dark), transparent) 1;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    /* Tightened gap */
    line-height: 1;
}

.logo-mark {
    width: 60px;
    /* Reduced width to just show the emblem */
    height: auto;
    max-height: 60px;
    flex-shrink: 0;
    display: block;
    object-position: left center;
    /* Align to left to crop text if we use overflow */
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: white;
}

.logo-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.logo .dot {
    color: var(--accent);
}

/* Nav - MOBILE: slide-in drawer */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85%, 320px);
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 105;
}

.nav.active {
    transform: translateX(0);
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--tap);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s var(--ease);
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent);
    color: black;
    padding: 0.75rem 1.6rem 0.75rem 1.2rem;
    /* Asymmetrical padding to offset clip-path on right */
    min-height: var(--tap);
    border-radius: 0;
    /* Override radius for structural look */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 0 0 var(--accent-glow);
    width: 100%;
    margin-top: 1rem;
    position: relative;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* Hamburger - visible on mobile */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    width: var(--tap);
    height: var(--tap);
    position: relative;
    z-index: 110;
    -webkit-tap-highlight-color: transparent;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    position: absolute;
    left: 13px;
}

.hamburger {
    top: 23px;
}

.hamburger::before {
    content: '';
    top: -7px;
}

.hamburger::after {
    content: '';
    top: 7px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile nav overlay backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 104;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════
   HERO (mobile base)
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding: var(--header-h) 0 3.5rem;
    /* More padding for thumb zone CTA */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(200, 149, 42, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center 40%;
    will-change: transform;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.hero-hatching {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.03;
    background-image: repeating-linear-gradient(45deg, var(--accent) 0, var(--accent) 1px, transparent 1px, transparent 15px);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(200, 149, 42, 0.2);
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) 0.1s forwards, badgeGlow 3s ease-in-out 1.5s infinite;
}

.badge-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: heroReveal 0.8s var(--ease-out) forwards;
}

.hero-title .line[data-delay="1"] {
    animation-delay: 0.25s;
}

.hero-title .line[data-delay="2"] {
    animation-delay: 0.4s;
}

.hero-title .line[data-delay="3"] {
    animation-delay: 0.55s;
}

.hero-title .line.accent {
    color: var(--accent);
    text-shadow: 0 0 80px rgba(200, 149, 42, 0.25);
}

.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0;
    margin-top: 2rem;
    animation: fadeUp 0.6s var(--ease-out) 0.8s forwards;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1vw + 0.875rem, 1.125rem);
    max-width: 60ch;
}

.scroll-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: black;
    background: var(--accent);
    padding: 0 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: var(--tap);
    /* Structural plate cut corners */
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s var(--ease);
    width: 100%;
    /* Full width bottom anchored for mobile reach */
}

.scroll-cta:active {
    transform: scale(0.95);
}

.scroll-cta:hover {
    background: var(--accent-light);
}

.scroll-arrow {
    display: none;
    /* Hide on mobile button style */
}

@media (min-width: 768px) {
    .scroll-cta {
        width: auto;
        background: transparent;
        color: white;
        padding: 0;
    }

    .scroll-arrow {
        display: inline-flex;
        animation: float 2.5s ease-in-out infinite;
    }

    .scroll-cta:hover {
        gap: 0.75rem;
    }
}

.hero-scroll-hint {
    display: none;
}

/* ═══════════════════════════════════════════
   MARQUEE (mobile base)
   ═══════════════════════════════════════════ */
.marquee-strip {
    background: var(--accent);
    padding: 0.75rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: black;
    padding: 0 0.5rem;
}

.sep {
    font-size: 6px;
    /* Small circle */
    color: rgba(0, 0, 0, 0.4);
    margin: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   PORTFOLIO (mobile-first – vertical stack)
   ═══════════════════════════════════════════ */
.portfolio-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    /* space for scrollbar/dots */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.portfolio-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Webkit */
}

.portfolio-item {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    scroll-snap-align: center;
    /* Snap to center for better mobile view */
    flex: 0 0 calc(90vw - 2rem);
    /* Single card taking most of width */
    max-width: 400px;
    /* Cap for mobile */
    position: relative;
}

/* Architectural crop marks on hover */
.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 4px;
    /* Slightly inset from the border */
    border: 1px solid transparent;
    pointer-events: none;
    z-index: 10;
    background:
        linear-gradient(to right, var(--accent) 1px, transparent 1px) 0 0,
        linear-gradient(to bottom, var(--accent) 1px, transparent 1px) 0 0,
        linear-gradient(to left, var(--accent) 1px, transparent 1px) 100% 0,
        linear-gradient(to bottom, var(--accent) 1px, transparent 1px) 100% 0,
        linear-gradient(to right, var(--accent) 1px, transparent 1px) 0 100%,
        linear-gradient(to top, var(--accent) 1px, transparent 1px) 0 100%,
        linear-gradient(to left, var(--accent) 1px, transparent 1px) 100% 100%,
        linear-gradient(to top, var(--accent) 1px, transparent 1px) 100% 100%;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.portfolio-item:hover::after {
    opacity: 1;
}



/* Unveil Animation removed to fix viewport clipping bugs */
.portfolio-item {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

/* Dimension Lines */
.portfolio-img::after {
    content: 'W 24" × H 36"';
    /* Generic plan dimension */
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 29, 36, 0.9);
    color: var(--accent);
    font-size: 0.65rem;
    padding: 2px 8px;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    border: 1px solid var(--accent);
    border-radius: 2px;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.portfolio-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    border-top: 1px dashed rgba(212, 160, 23, 0.4);
    border-left: 1px dashed rgba(212, 160, 23, 0.4);
    border-right: 1px dashed rgba(212, 160, 23, 0.4);
    height: 10px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.portfolio-item:hover .portfolio-img::after,
.portfolio-item:hover .portfolio-img::before {
    opacity: 1;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-date {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════
   SERVICES (mobile base)
   ═══════════════════════════════════════════ */
.services {
    background-color: var(--bg-elevated);
    /* Architectural Blueprint Grid Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: all 0.4s var(--ease);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Steel Rivets */
.service-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    pointer-events: none;
    background-image:
        radial-gradient(circle 2px, rgba(255, 255, 255, 0.15) 100%, transparent),
        radial-gradient(circle 2px, rgba(255, 255, 255, 0.15) 100%, transparent),
        radial-gradient(circle 2px, rgba(255, 255, 255, 0.15) 100%, transparent),
        radial-gradient(circle 2px, rgba(255, 255, 255, 0.15) 100%, transparent);
    background-position:
        0 0,
        100% 0,
        0 100%,
        100% 100%;
    background-size: 4px 4px;
    background-repeat: no-repeat;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.service-icon i {
    font-size: 24px;
    transition: all 0.3s var(--ease);
}

.service-card:hover .service-icon i {
    transform: scale(1.15) rotate(5deg);
}



.service-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-hover);
    /* Increased contrast based on visual audit */
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    min-height: var(--tap);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    transition: gap 0.3s var(--ease), color 0.3s;
}

.service-link i {
    font-size: 16px;
}

/* ═══════════════════════════════════════════
   ABOUT (mobile base)
   ═══════════════════════════════════════════ */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-visual {
    order: -1;
    position: relative;
}

.about-visual::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60%;
    aspect-ratio: 1/1;
    border-top: 1px dashed var(--accent);
    border-right: 1px dashed var(--accent);
    border-radius: 0 100% 0 0;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.about-img-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    /* Structural L-bracket look */
    z-index: 2;
    pointer-events: none;
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    /* Structural L-bracket look */
    z-index: 2;
    pointer-events: none;
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.6s var(--ease);
}

.about-content h2 {
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 0.75rem;
}

.official-stats-block {
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.official-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(212, 160, 23, 0.02) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.official-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 160, 23, 0.15);
    color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.banner-icon i {
    font-size: 20px;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.banner-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 500;
}

.banner-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.about-quote {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* margin-top removed because it's now inside the block */
    text-align: center;
}

.stats-row li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.5rem;
    background: transparent;
    /* inherit from block */
    border-right: 1px solid var(--border);
}

.stats-row li:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    display: inline;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-value {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════
   CONTACT (mobile base)
   ═══════════════════════════════════════════ */
.contact {
    background-color: var(--bg-elevated);
    /* Architectural Blueprint Grid Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.contact-wrapper {
    text-align: center;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header h2 {
    margin-bottom: 0.5rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trust-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    /* Taller card */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.4s var(--ease);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 220px;
    overflow: hidden;
    /* Prevent hazard stripes from bleeding out of rounded corners */
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-card.highlight {
    background: var(--bg-elevated);
    border-color: var(--accent-subtle);
    position: relative;
}

/* Hazard Stripes Base */
.contact-card.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(45deg, var(--accent) 0, var(--accent) 10px, #000 10px, #000 20px);
    opacity: 0.8;
}

.contact-card.highlight:hover {
    border-color: var(--accent);
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.contact-card-icon i {
    font-size: 26px;
    /* Phosphor handles sizes differently than SVG width/height */
}

.contact-card h3 {
    color: var(--text);
    font-size: 1rem;
}

.contact-card span {
    font-size: 0.85rem;
    line-height: 1.5;
}

.contact-big {
    font-family: var(--font-display);
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: 0.02em;
}

.card-sub {
    font-size: 0.75rem !important;
    color: var(--text-tertiary);
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem !important;
    font-weight: 600;
    color: var(--accent) !important;
    margin-top: auto;
    padding-top: 0.25rem;
    transition: gap 0.3s var(--ease);
}

.card-action i {
    font-size: 14px;
}

/* Social Row */
.social-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    min-height: var(--tap);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.social-btn i {
    font-size: 18px;
}

/* ═══════════════════════════════════════════
   FOOTER (mobile base)
   ═══════════════════════════════════════════ */
.footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 2rem 0 calc(var(--bottom-bar) + 1rem);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-left .logo {
    align-items: center;
}

.footer-left .logo-main {
    font-size: 1rem;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-right a {
    color: var(--text-tertiary);
    transition: color 0.3s;
    min-height: var(--tap);
    display: flex;
    align-items: center;
}

.footer-right a:hover {
    color: var(--text);
}

/* ═══════════════════════════════════════════
   MOBILE STICKY CTA BAR
   ═══════════════════════════════════════════ */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 95;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-cta-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.mobile-cta-bar a i {
    font-size: 18px;
}

.cta-call {
    background: var(--accent);
    color: black;
    border: 1px solid var(--accent);
}

.cta-whatsapp {
    background: var(--success);
    color: white;
    border: 1px solid var(--success);
    animation: ctaPulse 5s ease-in-out infinite;
}

.cta-direction {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   WHATSAPP FAB (mobile = icon only, pushed up by bottom bar)
   ═══════════════════════════════════════════ */
.whatsapp-fab {
    position: fixed;
    z-index: 90;
    bottom: calc(var(--bottom-bar) + 1rem);
    right: 1rem;
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.85rem;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.whatsapp-fab i {
    font-size: 24px;
    color: var(--success);
    /* Keep standard whatsapp green but only for icon */
}

.fab-label {
    display: none;
}

/* ═══════════════════════════════════════════
   LIGHTBOX (mobile base = fullscreen)
   ═══════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: var(--tap);
    height: var(--tap);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.lightbox-close i {
    width: 20px;
    height: 20px;
}

.lightbox-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 1rem;
}

.lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lightbox-stage img {
    max-height: 65vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    transition: opacity 0.3s ease;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    padding: 0 0.25rem;
}

.lightbox-caption {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.02em;
}

.lightbox-counter {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: var(--font-display);
}

/* Arrows hidden on mobile (swipe to navigate) */
.lightbox-arrow {
    display: none;
}

.lightbox-swipe-hint {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
    text-align: center;
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(200, 149, 42, 0);
    }

    50% {
        box-shadow: 0 0 20px 2px rgba(200, 149, 42, 0.15);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════════════
   TABLET ↑ (min-width: 640px)
   ═══════════════════════════════════════════ */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 5rem 0;
    }

    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    p {
        font-size: 1rem;
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .hero {
        align-items: center;
        justify-content: center;
        padding-bottom: 4rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1.1rem;
    }

    .hero-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 2rem;
    }

    .hero-desc {
        max-width: 380px;
        font-size: 0.95rem;
    }

    /* Portfolio: 2-column grid on tablet */
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
        padding-bottom: 0;
        margin: 0;
        padding-inline: 0;
        align-items: stretch;
    }

    .portfolio-item {
        flex: auto;
        max-width: none;
        display: flex;
        flex-direction: column;
        scroll-snap-align: none;
    }

    .portfolio-img {
        flex-shrink: 0;
    }

    .portfolio-item {
        border: 1px solid var(--border);
    }

    .portfolio-item:hover {
        transform: translateY(-8px);
        border-color: var(--accent-subtle);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .about-visual {
        order: 0;
    }

    .about-img-wrapper {
        aspect-ratio: 4/5;
    }

    .about-quote {
        margin-top: 1.25rem;
    }

    .stats-row {
        text-align: left;
    }

    .stats-row li {
        align-items: flex-start;
    }

    .stat-num {
        font-size: 2.25rem;
    }

    .contact-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact-card:active {
        transform: none;
    }

    .trust-copy {
        grid-column: 1 / -1;
    }

    .lightbox-stage img {
        max-height: 75vh;
        max-width: 85vw;
    }
}

/* ═══════════════════════════════════════════
   DESKTOP ↑ (min-width: 1024px)
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
    :root {
        --header-h: 76px;
        --bottom-bar: 0px;
    }

    body {
        padding-bottom: 0;
    }

    .container {
        padding: 0 2.5rem;
    }

    .section {
        padding: 6.5rem 0;
    }

    h1 {
        font-size: clamp(3.5rem, 6vw, 5.5rem);
    }

    h2 {
        font-size: clamp(2.25rem, 4vw, 3.5rem);
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1.05rem;
    }

    .section-label {
        font-size: 0.75rem;
        padding-left: 2rem;
    }

    .section-label::before {
        width: 1.25rem;
    }

    .section-header {
        margin-bottom: 3.5rem;
        /* Increased from 2.5rem for better visual hierarchy */
    }

    .section-header p {
        max-width: 600px;
    }

    .logo-main {
        font-size: 1.35rem;
    }

    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    /* Header - desktop: inline nav, hide hamburger */
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
        transform: none;
        transition: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        /* Center them perfectly */
        gap: 2.5rem;
    }

    .nav-link {
        position: relative;
        width: auto;
        min-height: auto;
        font-size: 0.8rem;
        padding: 0;
        /* Removed vertical padding causing offset */
        border-bottom: none;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: var(--accent);
        transition: width 0.3s var(--ease);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    .btn-primary {
        width: auto;
        margin-top: 0;
        padding: 0.65rem 1.4rem;
        border-bottom: none;
    }

    .btn-primary:hover {
        transform: translateY(-1px);
    }

    .btn-primary::after {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    .nav-backdrop {
        display: none !important;
    }

    /* Hero */
    .hero {
        justify-content: center;
        padding-bottom: 6rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-desc {
        max-width: 420px;
        font-size: 1rem;
    }

    .hero-footer {
        margin-top: 3.5rem;
    }

    .hero-scroll-hint {
        display: block;
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        animation: fadeIn 1s ease 1.5s forwards;
    }

    .mouse {
        width: 22px;
        height: 36px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        position: relative;
    }

    .wheel {
        width: 3px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        animation: scrollWheel 2s ease-in-out infinite;
    }

    /* Marquee */
    .marquee-strip {
        padding: 1rem 0;
    }

    .marquee-track {
        animation-duration: 25s;
    }

    .marquee-content span {
        font-size: 1.1rem;
        padding: 0 0.75rem;
    }

    .sep {
        width: 6px;
        height: 6px;
    }

    /* Portfolio: 3-column lockup grid on desktop */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }

    .portfolio-item:nth-child(n) {
        margin-top: 0;
        /* Reset any tablet/asymmetric offsets */
    }





    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
        gap: 1.5rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.5rem;
    }

    .service-icon i {
        width: 22px;
        height: 22px;
    }

    .service-number {
        font-size: 2.5rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .service-card:hover {
        border-color: var(--border-hover);
        background: var(--surface);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card:hover .service-number {
        -webkit-text-stroke-color: var(--border-hover);
    }

    .service-link:hover {
        gap: 0.7rem;
        color: var(--accent-light);
    }

    /* About */
    .about-grid {
        gap: 5rem;
    }

    .about-content h2 {
        margin-bottom: 1.5rem;
    }

    .about-content p {
        margin-bottom: 1rem;
    }

    .about-visual {
        padding-bottom: 2rem;
    }

    .about-img-wrapper::before {
        width: 56px;
        height: 56px;
        top: -6px;
        left: -6px;
    }

    .about-quote {
        position: absolute;
        bottom: -2rem;
        right: -1rem;
        left: auto;
        width: 85%;
        margin-top: 0;
        padding: 1.5rem 2rem;
        background: rgba(26, 26, 31, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
        border-radius: var(--radius);
        z-index: 2;
    }

    .about-visual:hover .about-img-wrapper img {
        filter: grayscale(0);
    }

    .stats-row {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
        gap: 1.5rem;
    }

    .stat-num {
        font-size: 2.75rem;
    }

    .stat-plus {
        font-size: 2rem;
    }

    /* Contact */
    .contact-wrapper {
        max-width: 960px;
        margin: 0 auto;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-header p {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-cards {
        gap: 1.25rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem 2rem;
    }

    .contact-card:hover {
        border-color: var(--accent);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .contact-card:hover .card-action {
        gap: 0.5rem;
    }

    .contact-big {
        font-size: 1.4rem !important;
    }

    .social-row {
        margin-top: 3rem;
        gap: 1rem;
    }

    .social-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }

    .social-btn:hover {
        color: black;
        background: var(--accent);
        border-color: var(--accent);
        transform: translateY(-2px);
    }

    /* Mobile CTA bar - hidden on desktop */
    .mobile-cta-bar {
        display: none;
    }

    /* WhatsApp FAB - visible on desktop with label */
    .whatsapp-fab {
        display: flex;
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.85rem 1.25rem;
        border-radius: 50px;
        background: var(--bg-elevated);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .fab-label {
        display: inline;
    }

    .whatsapp-fab:hover {
        transform: translateY(-3px) scale(1.03);
        border-color: var(--success);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.15);
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }

    .footer-left {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .footer-left .logo {
        align-items: center;
        /* keep centered next to copyright */
    }

    .footer-right {
        gap: 2rem;
    }

    /* Lightbox desktop */
    .lightbox-close {
        top: 1.5rem;
        right: 1.5rem;
    }

    .lightbox-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .lightbox-body {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
        height: auto;
        padding: 2rem;
    }

    .lightbox-stage img {
        max-height: 78vh;
        max-width: 75vw;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
        border-radius: var(--radius);
    }

    .lightbox-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.3s var(--ease);
    }

    .lightbox-arrow:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .lightbox-arrow i {
        width: 20px;
        height: 20px;
    }

    .lightbox-swipe-hint {
        display: none;
    }

    .lightbox-caption {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════
   WIDE DESKTOP ↑ (min-width: 1440px)
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {
    .portfolio-grid {
        gap: 2rem;
    }

    .about-grid {
        gap: 6rem;
    }
}

/* ═══════════════════════════════════════════
   VERY SMALL (max-width: 374px)
   ═══════════════════════════════════════════ */
@media (max-width: 374px) {
    h1 {
        font-size: 2rem;
    }

    .portfolio-item {
        border-radius: 8px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-big {
        font-size: 1.1rem !important;
    }
}