/* ============================================================
   SECURE TECHNOLOGY — AI-Era Design System
   Dark / Light Mode, Advanced Animations, Cyber Color Palette
   ============================================================ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Dark Mode defaults (html.dark) ── */
html.dark body {
    background-color: #030712;   /* near-black: slate-950-ish */
    color: #f1f5f9;
}

/* ── Light Mode (html.light) ── */
html.light body {
    background-color: #f8fafc;
    color: #0f172a;
}

/* ── Glassmorphism Navbar ── */
.glass-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease;
}
html.dark  .glass-nav { background: rgba(3, 7, 18, 0.82); }
html.light .glass-nav { background: rgba(248, 250, 252, 0.88); border-color: rgba(6,182,212,0.2); }

/* ── Glass Cards ── */
.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
html.dark  .glass-card { background: rgba(15, 23, 42, 0.55); }
html.light .glass-card { background: rgba(255,255,255,0.75); border-color: rgba(6,182,212,0.15); }

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 8px 32px -8px rgba(6, 182, 212, 0.25), 0 0 0 1px rgba(139,92,246,0.1);
}

/* ── Primary Button ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 60%, #06b6d4 120%);
    background-size: 200% auto;
    border-radius: 0.6rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4), 0 0 0 0 rgba(6,182,212,0);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.55), 0 0 20px rgba(139,92,246,0.3);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

/* ── Secondary Button ── */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.6rem;
    border: 1px solid rgba(6, 182, 212, 0.35);
    transition: all 0.3s ease;
}
html.dark  .btn-secondary { color: #e2e8f0; background: rgba(6,182,212,0.07); }
html.light .btn-secondary { color: #0f172a; background: rgba(6,182,212,0.08); }
.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.65);
    box-shadow: 0 0 16px rgba(6,182,212,0.2);
    transform: translateY(-1px);
}

/* ── Text Gradient (AI-era cyan → violet → fuchsia) ── */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(120deg, #22d3ee 0%, #a78bfa 50%, #e879f9 100%);
    background-size: 200% auto;
    animation: gradientShift 5s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ── Background Grid ── */
.bg-grid-pattern {
    background-size: 44px 44px;
    background-image:
        linear-gradient(to right, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
}
html.light .bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(6, 182, 212, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.09) 1px, transparent 1px);
}

/* ── Ambient Glow Orbs ── */
.bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: glowDrift 10s ease-in-out infinite alternate;
}
html.dark  .bg-glow { background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, rgba(139,92,246,0.06) 50%, transparent 70%); }
html.light .bg-glow { background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, rgba(139,92,246,0.04) 50%, transparent 70%); }

@keyframes glowDrift {
    0%   { transform: scale(0.85) translate(-2%, -2%); opacity: 0.6; }
    100% { transform: scale(1.15) translate(2%, 2%);  opacity: 1; }
}

/* ── Animated Glow Border on Cards ── */
.glow-border { position: relative; }
.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #06b6d4, #8b5cf6, #e879f9, #06b6d4);
    background-size: 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 6s linear infinite;
}
.glow-border:hover::before { opacity: 1; }

@keyframes borderRotate {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ── Scan Line Effect ── */
.animate-scan { position: relative; overflow: hidden; }
.animate-scan::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(6,182,212,0.18), transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}
@keyframes scanline {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(300%); }
}

/* ── Float ── */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out infinite; animation-delay: 3s; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-18px); }
}

/* ── Fade In Up (scroll reveal) ── */
.animate-fade-in-up {
    animation: fadeInUp 0.75s ease-out both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Pulse Slow ── */
.animate-pulse-slow { animation: pulseSlow 3s ease-in-out infinite; }
@keyframes pulseSlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(0.97); }
}

/* ── Slow Spin ── */
.animate-spin-slow { animation: spinSlow 14s linear infinite; }
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Particle dots (decorative) ── */
.dot-particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #06b6d4;
    animation: particleDrift 8s ease-in-out infinite;
    opacity: 0.6;
}
@keyframes particleDrift {
    0%, 100% { transform: translate(0,0);      opacity: 0.6; }
    25%       { transform: translate(12px,-16px); opacity: 1; }
    50%       { transform: translate(20px,4px);  opacity: 0.4; }
    75%       { transform: translate(8px,18px);  opacity: 0.8; }
}

/* ── Typewriter cursor ── */
.typewriter::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: #06b6d4;
    margin-left: 2px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ══════════════════════════════════════════════════
   LIGHT MODE — comprehensive overrides
   Strategy: keep <footer> always dark, fix everything else
   ══════════════════════════════════════════════════ */

/* ── Page body ── */
html.light body { background-color: #f0f4f8; color: #0f172a; }

/* ── Main content area (exclude footer) ── */
html.light main h1,
html.light main h2,
html.light main h3,
html.light main h4,
html.light main h5 { color: #0f172a; }

html.light main p        { color: #334155; }
html.light main label    { color: #1e293b; }
html.light main span.text-white   { color: #0f172a; }
html.light main .text-white       { color: #0f172a; }
html.light main .text-slate-100   { color: #0f172a; }
html.light main .text-slate-200   { color: #1e293b; }
html.light main .text-slate-300   { color: #334155; }
html.light main .text-slate-400   { color: #475569; }
html.light main .text-slate-500   { color: #64748b; }

/* ── Page header banners (breadcrumb sections) ── */
html.light .pt-28.pb-12 {
    background-color: rgba(219, 234, 254, 0.35) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}
html.light nav[aria-label="Breadcrumb"] {
    background-color: rgba(255,255,255,0.8) !important;
    border-color: rgba(6,182,212,0.25) !important;
}
html.light nav[aria-label="Breadcrumb"] a,
html.light nav[aria-label="Breadcrumb"] span { color: #334155; }

/* ── Section backgrounds ── */
html.light section,
html.light main .py-12,
html.light main .py-20 { background-color: transparent; }
html.light .bg-slate-900\/50 { background-color: rgba(241,245,249,0.85) !important; }
html.light .border-y.border-slate-800 { border-color: rgba(6,182,212,0.18) !important; }

/* ── Glass cards (main content only) ── */
html.light main .glass-card {
    background: rgba(255,255,255,0.82) !important;
    border-color: rgba(6,182,212,0.2) !important;
    box-shadow: 0 2px 16px rgba(6,182,212,0.08), 0 1px 4px rgba(0,0,0,0.06);
    color: #0f172a;
}
html.light main .glass-card:hover {
    border-color: rgba(6,182,212,0.5) !important;
    box-shadow: 0 6px 28px rgba(6,182,212,0.18), 0 0 0 1px rgba(139,92,246,0.1);
}

/* ── Inline bg chips / tag badges ── */
html.light main .bg-slate-800\/50 { background-color: rgba(226,232,240,0.7) !important; }
html.light main .bg-slate-900\/50 { background-color: rgba(241,245,249,0.85) !important; }
html.light main .bg-slate-800     { background-color: #e2e8f0 !important; }
html.light main .bg-slate-900     { background-color: #f1f5f9 !important; }
html.light main .border-slate-700      { border-color: #cbd5e1 !important; }
html.light main .border-slate-700\/50  { border-color: rgba(6,182,212,0.2) !important; }
html.light main .border-slate-800      { border-color: #e2e8f0 !important; }
html.light main .border-t.border-slate-700\/50 { border-color: rgba(6,182,212,0.18) !important; }

/* ── Icon backgrounds ── */
html.light main .bg-brand-500\/10  { background-color: rgba(6,182,212,0.12) !important; }
html.light main .bg-accent-500\/10 { background-color: rgba(139,92,246,0.12) !important; }
html.light main .bg-fuchsia-500\/10{ background-color: rgba(217,70,239,0.1) !important; }
html.light main .bg-emerald-500\/10{ background-color: rgba(16,185,129,0.1) !important; }
html.light main .bg-teal-500\/10   { background-color: rgba(20,184,166,0.1) !important; }

/* ── Form inputs ── */
html.light main input,
html.light main textarea,
html.light main select {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.light main input::placeholder,
html.light main textarea::placeholder { color: #94a3b8 !important; }
html.light main input:focus,
html.light main textarea:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15) !important;
}

/* ── Navbar (light) ── */
html.light header nav a        { color: #1e293b !important; }
html.light header nav a:hover  { color: #06b6d4 !important; background-color: rgba(6,182,212,0.08) !important; }
html.light header #mobile-menu a { color: #1e293b !important; }

/* ── Tech stack pills ── */
html.light main .glass-card.rounded-full,
html.light main span.glass-card { color: #0f172a !important; }

/* ── CTA section ── */
html.light .glass-card.rounded-3xl .relative.z-10 h2 { color: #0f172a; }
html.light .glass-card.rounded-3xl .relative.z-10 p   { color: #334155; }

/* ══════════════════════════════════════════════
   FOOTER — always keeps dark appearance
   ══════════════════════════════════════════════ */
html.light footer {
    background-color: #0f172a !important;
    border-color: rgba(6,182,212,0.2) !important;
}
html.light footer h1,
html.light footer h2,
html.light footer h3,
html.light footer h4         { color: #f1f5f9 !important; }
html.light footer p          { color: #94a3b8 !important; }
html.light footer .text-white { color: #f1f5f9 !important; }
html.light footer .text-slate-400 { color: #94a3b8 !important; }
html.light footer .text-slate-500 { color: #64748b !important; }
html.light footer .bg-slate-800   { background-color: #1e293b !important; }
html.light footer .bg-slate-950   { background-color: #0f172a !important; }
html.light footer .border-t.border-slate-800 { border-color: rgba(255,255,255,0.08) !important; }
html.light footer a:hover { color: #22d3ee !important; }

/* ── Theme toggle knob ── */
#theme-toggle-knob { will-change: transform; }
html.light #theme-toggle-knob  { transform: translateX(28px); }
html.light #theme-toggle       { background-color: #e0f2fe; border-color: #06b6d4; }
html.light #theme-toggle-mobile { background-color: #e0f2fe; border-color: #06b6d4; }

/* ══════════════════════════════════════════════════
   AI-ERA HOME PAGE ADDITIONS
   Neural Canvas · Ticker · Tech Marquee · AI Bars
   ══════════════════════════════════════════════════ */

/* ── Neural canvas opacity ── */
.neural-canvas-opacity { opacity: 0.35; }
html.light .neural-canvas-opacity { opacity: 0.12; }

/* ── AI Ticker ── */
.ai-ticker-track  { overflow: hidden; width: 100%; }
.ai-ticker-inner  {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: tickerScroll 32s linear infinite;
}
.ai-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}
.ai-ticker-item:hover { color: #e2e8f0; }
.ai-ticker-sep { color: #1e293b; font-size: 0.5rem; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ai-ticker-inner:hover { animation-play-state: paused; }

/* ── AI Progress Bars ── */
.ai-bar {
    width: 0%;
    animation: growBar 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}
@keyframes growBar {
    from { width: 0%; }
    to   { width: var(--bw, 0%); }
}

/* ── Tech Stack Marquee ── */
.tech-marquee {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    animation: marqueeLeft 28s linear infinite;
    padding-bottom: 4px; /* anti-clip */
}
.tech-marquee-reverse {
    animation: marqueeRight 32s linear infinite;
}
.tech-marquee:hover,
.tech-marquee-reverse:hover { animation-play-state: paused; }

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0%); }
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border-width: 1px;
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}
.tech-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

/* ── Terminal line stagger (applied via JS) ── */
.term-line { will-change: opacity, transform; }

/* ── Count-up numbers ── */
.count-up { font-variant-numeric: tabular-nums; }

/* ── Light mode tweaks for new sections ── */
html.light .tech-pill { background-color: rgba(255,255,255,0.6) !important; color: #0f172a; }
html.light .tech-pill span   { color: #0f172a !important; }

/* ══════════════════════════════════════════════════
   CONTACT PAGE
   Input fields · Budget pills · Select
   ══════════════════════════════════════════════════ */

.contact-input {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}
.contact-input::placeholder { color: #475569; }
.contact-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background-color: rgba(15, 23, 42, 0.85);
}

/* Budget radio pills */
.budget-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.budget-pill span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background-color: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.budget-pill:hover span {
    border-color: rgba(6, 182, 212, 0.5);
    color: #e2e8f0;
}
.budget-pill input:checked + span {
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* select arrow */
select.contact-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2306b6d4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}
select.contact-input option { background-color: #0f172a; color: #f1f5f9; }
select.contact-input optgroup { color: #06b6d4; font-weight: 600; font-size: 0.8rem; }

/* Light mode contact */
html.light .contact-input {
    background-color: rgba(255,255,255,0.9) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: #1e293b !important;
}
html.light .contact-input::placeholder { color: #94a3b8 !important; }
html.light .contact-input:focus { border-color: #06b6d4 !important; box-shadow: 0 0 0 3px rgba(6,182,212,0.1) !important; }
html.light .budget-pill span { background-color: rgba(255,255,255,0.7) !important; color: #475569 !important; border-color: rgba(99,102,241,0.25) !important; }
html.light .budget-pill input:checked + span { background-color: rgba(6,182,212,0.12) !important; color: #0e7490 !important; border-color: #06b6d4 !important; }
html.light select.contact-input option { background-color: #fff; color: #1e293b; }

/* ══════════════════════════════════════════════════
   FOOTER LINKS
   ══════════════════════════════════════════════════ */
.footer-link {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.footer-link:hover {
    color: #06b6d4;
    padding-left: 4px;
}

/* Footer tech stack badges */
.footer-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid var(--badge-border, rgba(99,102,241,0.25));
    background-color: var(--badge-color, rgba(15,23,42,0.5));
    color: var(--badge-text, #94a3b8);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    backdrop-filter: blur(4px);
}
.footer-tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--badge-border, rgba(99,102,241,0.2));
}

/* Career page perks grid */
.perk-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: rgba(15,23,42,0.5);
    border: 1px solid rgba(99,102,241,0.1);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.perk-card:hover { border-color: rgba(6,182,212,0.3); transform: translateY(-2px); }
html.light .perk-card { background-color: rgba(255,255,255,0.6) !important; border-color: rgba(99,102,241,0.2) !important; }

/* Job type badge variants */
.job-badge-ai   { background-color: rgba(139,92,246,0.15); color: #a78bfa; }
.job-badge-eng  { background-color: rgba(6,182,212,0.15);  color: #67e8f9; }
.job-badge-mob  { background-color: rgba(16,185,129,0.15); color: #6ee7b7; }
.job-badge-des  { background-color: rgba(244,114,182,0.15);color: #f9a8d4; }
.job-badge-cloud{ background-color: rgba(251,191,36,0.15); color: #fcd34d; }

/* ══════════════════════════════════════════════════
   GALLERY PAGE
   Masonry grid · Filter tabs · Lightbox
   ══════════════════════════════════════════════════ */

/* Filter buttons */
.gallery-filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(99,102,241,0.2);
    background-color: rgba(15,23,42,0.5);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.gallery-filter-btn:hover {
    border-color: rgba(6,182,212,0.4);
    color: #e2e8f0;
}
.gallery-filter-btn.active {
    background-color: rgba(6,182,212,0.15);
    border-color: #06b6d4;
    color: #67e8f9;
    box-shadow: 0 0 12px rgba(6,182,212,0.2);
}

/* Masonry grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 240px;
        gap: 1.25rem;
    }
}

/* Span variants */
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* Base item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Light mode gallery */
html.light .gallery-filter-btn {
    background-color: rgba(255,255,255,0.7) !important;
    color: #475569 !important;
    border-color: rgba(99,102,241,0.2) !important;
}
html.light .gallery-filter-btn.active {
    background-color: rgba(6,182,212,0.12) !important;
    color: #0e7490 !important;
    border-color: #06b6d4 !important;
}

/* ══════════════════════════════════════════════════
   LEGAL PAGES (Privacy · Terms · Sitemap)
   ══════════════════════════════════════════════════ */

/* Prose body */
.legal-body { color: #cbd5e1; line-height: 1.8; font-size: 0.9rem; }

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(99,102,241,0.1);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #06b6d4;
}
.legal-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.legal-body p { margin-bottom: 0.75rem; }
.legal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}
.legal-body ul li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.4rem;
}
.legal-body ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #06b6d4;
    font-weight: bold;
}
.legal-body a { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: #a78bfa; }
.legal-body strong { color: #f1f5f9; }

.legal-contact-card {
    background: rgba(6,182,212,0.05);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-top: 0.75rem;
}
.legal-contact-card p { margin-bottom: 0.3rem; }

/* Sitemap link rows */
.sitemap-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    padding: 0.35rem 0;
}
.sitemap-link:hover { color: #06b6d4; padding-left: 4px; }
.sitemap-path {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #475569;
}
.sitemap-link:hover .sitemap-path { color: #06b6d4; }

/* Light mode legal */
html.light .legal-body { color: #334155; }
html.light .legal-body h2 { color: #1e293b; }
html.light .legal-body h3 { color: #1e293b; }
html.light .legal-body strong { color: #0f172a; }
html.light .legal-contact-card { background: rgba(6,182,212,0.06); }
