/* ============================================================
   HISHAM HASSAN — PHOTOGRAPHER PORTFOLIO
   styles.css
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
    --bg-primary:    #0b0b0b;
    --bg-secondary:  #121212;
    --bg-card:       #181818;
    --bg-elevated:   #1e1e1e;
    --bg-contact:    #0d0c0a;
    --text-primary:  #f0f0f0;
    --text-secondary:#9a9a9a;
    --text-muted:    #555555;
    --accent:        #c9a96e;
    --accent-hover:  #d9bc89;
    --accent-dim:    rgba(201, 169, 110, 0.15);
    --border:        rgba(255, 255, 255, 0.07);
    --border-hover:  rgba(255, 255, 255, 0.14);
    --nav-height:    80px;
    --container:     1280px;
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:      cubic-bezier(0, 0, 0.2, 1);
    --t:             0.3s;
    --t-slow:        0.6s;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* scroll-margin for sticky nav offset */
section { scroll-margin-top: var(--nav-height); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

section:not(#hero):not(#contact) {
    padding: 120px 0;
}

/* ── Typography ─────────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--text-primary);
}

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background var(--t) var(--ease),
                color var(--t) var(--ease),
                border-color var(--t) var(--ease),
                transform var(--t) var(--ease),
                box-shadow var(--t) var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #0b0b0b;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 18px 52px;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--t) var(--ease),
                border-color var(--t) var(--ease),
                backdrop-filter var(--t) var(--ease);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    transition: opacity var(--t) var(--ease);
}
.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color var(--t) var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
    color: var(--accent) !important;
    border: 1px solid rgba(201, 169, 110, 0.4);
    padding: 8px 20px;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    transition: background var(--t) var(--ease),
                border-color var(--t) var(--ease),
                color var(--t) var(--ease) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--accent-dim) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
}

#hero.loaded .hero-image { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            160deg,
            rgba(11, 11, 11, 0.55) 0%,
            rgba(11, 11, 11, 0.3) 35%,
            rgba(11, 11, 11, 0.65) 65%,
            rgba(11, 11, 11, 0.95) 100%
        ),
        radial-gradient(ellipse at 60% 40%, transparent 30%, rgba(11, 11, 11, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 0 24px;
    margin-top: calc(var(--nav-height) / 2);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 7px 18px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%   { transform: scaleY(1);   opacity: 0.5; }
    50%  { transform: scaleY(0.6); opacity: 1;   }
    100% { transform: scaleY(1);   opacity: 0.5; }
}

/* ── About ──────────────────────────────────────────────────── */
#about { background: var(--bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    max-width: 460px;
    overflow: hidden;
}
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-image-frame::after {
    content: '';
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    pointer-events: none;
    z-index: -1;
}

.about-content { padding-right: 20px; }

.about-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-specialties {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.specialty {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left var(--t) var(--ease);
}
.specialty:hover { padding-left: 8px; }

.specialty-num {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    min-width: 24px;
}
.specialty-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color var(--t) var(--ease);
}
.specialty:hover .specialty-name { color: var(--text-primary); }

/* ── Featured Work ──────────────────────────────────────────── */
#featured { background: var(--bg-primary); }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 500px 280px;
    gap: 8px;
}

.featured-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
}

/* Editorial layout: tall left, wide top-right, two bottom-right */
.featured-item--1 { grid-column: 1; grid-row: 1 / 3; }
.featured-item--2 { grid-column: 2 / 4; grid-row: 1; }
.featured-item--3 { grid-column: 2; grid-row: 2; }
.featured-item--4 { grid-column: 3; grid-row: 2; }

.featured-item img {
    transition: transform 0.7s var(--ease);
    width: 100%;
    height: 100%;
}
.featured-item:hover img { transform: scale(1.06); }

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-slow) var(--ease);
}
.featured-overlay span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 10px 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t) var(--ease),
                transform var(--t) var(--ease);
}
.featured-item:hover .featured-overlay { background: rgba(11, 11, 11, 0.45); }
.featured-item:hover .featured-overlay span { opacity: 1; transform: translateY(0); }

/* ── Parallax Statement Section ─────────────────────────────── */
#parallax {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 160px 0 !important;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    z-index: 0;
    will-change: transform;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(11, 11, 11, 0.82) 0%,
            rgba(11, 11, 11, 0.55) 45%,
            rgba(11, 11, 11, 0.55) 55%,
            rgba(11, 11, 11, 0.92) 100%
        ),
        radial-gradient(ellipse at center, rgba(11, 11, 11, 0) 0%, rgba(11, 11, 11, 0.55) 100%);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
}

.parallax-label {
    color: var(--accent);
    margin-bottom: 32px;
    justify-content: center;
}
.parallax-label::before { background: var(--accent); }

.parallax-quote {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 32px;
}
.parallax-quote em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
}

.parallax-attribution {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    #parallax { padding: 100px 0 !important; min-height: 70vh; }
}

/* ── Portfolio (Tabs) ───────────────────────────────────────── */
#portfolio { background: var(--bg-secondary); }

.tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    cursor: pointer;
    position: relative;
    transition: color var(--t) var(--ease);
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--t) var(--ease);
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--text-primary); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active {
    display: block;
    animation: panelIn 0.4s var(--ease-out);
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    aspect-ratio: 4 / 3;
}
.portfolio-item img {
    transition: transform 0.6s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.07); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t) var(--ease);
}
.portfolio-overlay span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--t) var(--ease),
                transform var(--t) var(--ease);
}
.portfolio-item:hover .portfolio-overlay { background: rgba(11, 11, 11, 0.5); }
.portfolio-item:hover .portfolio-overlay span { opacity: 1; transform: translateY(0); }

/* ── Video Work ─────────────────────────────────────────────── */
#video { background: var(--bg-primary); }

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

.video-item {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    margin-bottom: 14px;
}
.video-thumb img { transition: transform 0.6s var(--ease); }
.video-item:hover .video-thumb img { transform: scale(1.05); }

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t) var(--ease);
}
.video-item:hover .video-overlay { background: rgba(11, 11, 11, 0.6); }

.play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t) var(--ease),
                transform var(--t) var(--ease),
                border-color var(--t) var(--ease);
    backdrop-filter: blur(8px);
}
.play-btn svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.video-item:hover .play-btn {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.video-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    transition: color var(--t) var(--ease);
}
.video-item:hover .video-title { color: var(--text-primary); }

/* ── Brand Mark Divider ─────────────────────────────────────── */
#brand-mark {
    background: var(--bg-primary);
    padding: 100px 0 !important;
    position: relative;
}

.brand-mark-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Decorative accent lines on either side of the logo */
.brand-mark-inner::before,
.brand-mark-inner::after {
    content: '';
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.35), transparent);
}

.brand-mark-logo {
    height: 140px;
    width: auto;
    margin: 0 48px;
    object-fit: contain;
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.brand-mark-logo:hover {
    transform: scale(1.04);
}

@media (max-width: 600px) {
    #brand-mark { padding: 72px 0 !important; }
    .brand-mark-logo { height: 90px; margin: 0 20px; }
    .brand-mark-inner::before,
    .brand-mark-inner::after { max-width: 60px; }
}

/* ── CTA / Contact ──────────────────────────────────────────── */
#contact {
    background: var(--bg-contact);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}
#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(201, 169, 110, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.contact-inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-sub {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 64px;
}

.contact-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--t) var(--ease),
                background var(--t) var(--ease),
                transform var(--t) var(--ease);
    min-width: 220px;
}
.contact-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(201, 169, 110, 0.04);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.contact-card-icon svg { width: 20px; height: 20px; }

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    flex: 1;
}

.contact-card-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-card-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.contact-card-arrow {
    font-size: 18px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t) var(--ease),
                transform var(--t) var(--ease);
}
.contact-card:hover .contact-card-arrow { opacity: 1; transform: translateX(0); }

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
    background: #080808;
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

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

.footer-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-social a {
    color: var(--text-muted);
    transition: color var(--t) var(--ease), transform var(--t) var(--ease);
    display: flex;
}
.footer-social a:hover { color: var(--text-primary); transform: translateY(-2px); }

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ── Floating WhatsApp Button ──────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35),
                0 0 0 0 rgba(37, 211, 102, 0.6);
    transition: transform var(--t) var(--ease),
                box-shadow var(--t) var(--ease);
    animation: whatsappPulse 2.4s ease-out infinite;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
    animation-play-state: paused;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #0b0b0b;
    color: #f0f0f0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t) var(--ease),
                transform var(--t) var(--ease),
                visibility var(--t);
}
.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #0b0b0b;
}
.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes whatsappPulse {
    0%   { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg { width: 25px; height: 25px; }
    .whatsapp-float-tooltip { display: none; }
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage img {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    transform: scale(0.94);
    transition: transform 0.35s var(--ease-out);
}

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

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 2;
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    font-weight: 300;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t) var(--ease),
                color var(--t) var(--ease),
                border-color var(--t) var(--ease);
    line-height: 1;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 36px;
    font-weight: 300;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t) var(--ease),
                color var(--t) var(--ease),
                border-color var(--t) var(--ease),
                transform var(--t) var(--ease);
    line-height: 1;
}
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

.lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out),
                transform 0.75s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* staggered siblings */
.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.55s; }

.featured-grid .reveal:nth-child(1) { transition-delay: 0s; }
.featured-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.featured-grid .reveal:nth-child(3) { transition-delay: 0.18s; }
.featured-grid .reveal:nth-child(4) { transition-delay: 0.26s; }

.video-grid .video-item:nth-child(1) { transition-delay: 0s; }
.video-grid .video-item:nth-child(2) { transition-delay: 0.08s; }
.video-grid .video-item:nth-child(3) { transition-delay: 0.16s; }
.video-grid .video-item:nth-child(4) { transition-delay: 0.06s; }
.video-grid .video-item:nth-child(5) { transition-delay: 0.14s; }
.video-grid .video-item:nth-child(6) { transition-delay: 0.22s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .featured-grid {
        grid-template-rows: 400px 240px;
    }
}

@media (max-width: 900px) {
    .container { padding: 0 28px; }
    section:not(#hero):not(#contact) { padding: 88px 0; }

    /* Nav */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(11, 11, 11, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0 32px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--t) var(--ease),
                    opacity var(--t) var(--ease),
                    visibility var(--t);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 14px 40px;
        font-size: 14px;
    }
    .nav-links a::after { display: none; }
    .nav-cta {
        margin: 12px 40px 0;
        display: block;
        text-align: center;
        padding: 12px 20px !important;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-frame {
        max-width: 340px;
        margin: 0 auto;
    }
    .about-content { padding-right: 0; }

    /* Featured */
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .featured-item--1 { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 2/3; }
    .featured-item--2 { grid-column: 2; grid-row: 1; aspect-ratio: 4/3; }
    .featured-item--3 { grid-column: 2; grid-row: 2; aspect-ratio: 4/3; }
    .featured-item--4 { grid-column: 1 / 3; grid-row: 3; aspect-ratio: 16/7; }
    .featured-item { height: auto; }

    /* Portfolio */
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    /* Video */
    .video-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .contact-cards { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; max-width: 380px; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    section:not(#hero):not(#contact) { padding: 72px 0; }

    .hero-title { letter-spacing: -1px; }

    /* Featured → single column stack */
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .featured-item--1,
    .featured-item--2,
    .featured-item--3,
    .featured-item--4 {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    /* Portfolio → single column */
    .portfolio-grid { grid-template-columns: 1fr; }

    /* Video → single column */
    .video-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }

    /* Lightbox nav */
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-prev,
    .lightbox-next { width: 40px; height: 40px; font-size: 26px; }
}
