/* ================================================================
   DINFOSEC — shared.css
   REWRITTEN 2026 — Fully fluid, responsive on ALL screen sizes
   Mobile → Tablet → Laptop → Desktop → TV (4K)
   Brand Colors: Deep Red #8B1A1A | Navy #1a1a4e | Gold #D4A017
   Fonts: Sora (headings) + Inter (body) — clean & professional
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Edit these to change the entire site's look
   ================================================================ */
:root {
  /* ── Brand Colors (from logo) ── */
  --red:         #8B1A1A;
  --red-dark:    #5c0f0f;
  --red-light:   #b02222;
  --navy:        #1a1a4e;
  --navy-dark:   #0d0d2e;
  --navy-light:  #2a2a6e;
  --gold:        #D4A017;
  --gold-light:  #f0c040;
  --silver:      #c0c0c0;

  /* ── Background & Surface Colors ── */
  --bg:          #0a0a1a;   /* Main page background */
  --bg2:         #0f0f22;   /* Alternate section background */
  --surface:     #13132b;   /* Card background */
  --surface2:    #1a1a38;   /* Hover card background */
  --border:      rgba(212, 160, 23, 0.18);

  /* ── Text Colors ── */
  --text:        #e8e8f0;   /* Primary body text */
  --muted:       #8888aa;   /* Secondary/muted text */
  --white:       #ffffff;

  /* ── Typography ── */
  --font-h: 'Sora', sans-serif;          /* Headings, logo, UI labels */
  --font-b: 'Inter', sans-serif;          /* Body text, paragraphs */
  --font-m: 'JetBrains Mono', monospace; /* Code, tags, badges */

  /* ── Spacing & Border Radius ── */
  --r:   8px;    /* Small: buttons, inputs */
  --rl:  16px;   /* Medium: cards */
  --rx:  24px;   /* Large: CTA boxes */

  /* ── Navigation Height ── */
  --nav-h: 76px;

  /* ── Animation Easing ── */
  --tr:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Glow Effects ── */
  --glow-gold: 0 0 24px rgba(212, 160, 23, 0.4);
  --glow-red:  0 0 24px rgba(139, 26, 26, 0.5);

  /* ── Container Max Width ── */
  --max-w: 1300px;

  /* ── Section Spacing ── */
  --sec-py: 100px;
}

/* ================================================================
   GLOBAL RESET
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;        /* Base: 1rem = 16px */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling on iOS rotation */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;     /* Prevent horizontal scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* All images are responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; font-family: var(--font-b); border: none; background: none; }
input, select, textarea { font-family: var(--font-b); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::selection { background: var(--gold); color: var(--navy-dark); }

/* ================================================================
   BACKGROUND EFFECTS (fixed, always behind content)
   ================================================================ */

/* Ambient gradient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 20% 10%, rgba(139,26,26,0.1), transparent),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(26,26,78,0.2), transparent);
}

/* Subtle grid lines */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212,160,23,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Particle animation canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ================================================================
   NAVBAR
   Fixed at top, blurred glass effect, collapses to hamburger on mobile
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 26, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  transition: all var(--tr);
}

/* Navbar gets darker + shadow after scroll (JS adds .scrolled class) */
.navbar.scrolled {
  background: rgba(10, 10, 26, 0.98);
  border-bottom-color: rgba(212,160,23,0.3);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

/* Inner container — max-width wrapper */
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: justify;
  justify-content: space-between;
}

/* ── Logo (left side) ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;  /* Never shrink the logo */
}

.nav-logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212,160,23,0.5));
  transition: filter var(--tr), transform var(--tr);
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 16px rgba(212,160,23,0.9));
  transform: scale(1.05);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-name span { color: var(--gold); }

.logo-tagline {
  font-family: var(--font-m);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── Desktop Nav Links (right side) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--r);
  letter-spacing: 0.3px;
  transition: all var(--tr);
  position: relative;
  white-space: nowrap;
}

/* Animated underline on active/hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--tr);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(212,160,23,0.08);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 16px; right: 16px;
}

/* CTA button in navbar */
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-light)) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  border-radius: var(--r) !important;
  box-shadow: 0 4px 16px rgba(139,26,26,0.4);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(139,26,26,0.65) !important;
  transform: translateY(-1px);
}

/* ── Hamburger Button (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* Hamburger → X animation when open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg)  translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Drawer ── */
.mob-drawer {
  display: none; /* JS toggles class .open to show */
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 999;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  padding: 14px 22px 22px;
  flex-direction: column;
  gap: 6px;
}
.mob-drawer.open { display: flex; }
.mob-drawer a {
  display: block;
  padding: 13px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: all var(--tr);
}
.mob-drawer a:hover,
.mob-drawer a.active {
  color: var(--gold);
  border-color: rgba(212,160,23,0.25);
  background: rgba(212,160,23,0.06);
}
.mob-cta {
  background: linear-gradient(135deg, var(--red), var(--red-light)) !important;
  color: var(--white) !important;
  text-align: center;
  font-weight: 600 !important;
  margin-top: 8px;
  border: none !important;
}

/* ================================================================
   PAGE HERO (inner pages — services, about, contact)
   ================================================================ */
.page-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 100px) 0 90px;
  text-align: center;
  overflow: hidden;
}
/* Glow gradient behind hero */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139,26,26,0.18), transparent 60%);
}
/* Fade to bg at bottom */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.page-hero .inner { position: relative; z-index: 2; }

/* Badge pill above hero title */
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 100px;
  background: rgba(212,160,23,0.07);
  margin-bottom: 22px;
}
.ph-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.4s ease infinite;
}

/* Page hero titles */
.ph-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.ph-title .accent { color: var(--gold); }

.ph-desc {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.85;
}

/* ================================================================
   LAYOUT CONTAINERS
   ================================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--sec-py) 0;
}

/* Alternate background for sections */
.section-alt {
  background: var(--bg2);
  border-top: 1px solid rgba(212,160,23,0.1);
  border-bottom: 1px solid rgba(212,160,23,0.1);
}

/* Main container — centered, max-width constrained */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Narrow container for text-heavy sections */
.wrap-sm {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ── Section Header Components ── */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(212,160,23,0.28);
  border-radius: 100px;
  background: rgba(212,160,23,0.07);
  margin-bottom: 14px;
}
.sec-label::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease infinite;
}

.sec-title {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.sec-title .accent { color: var(--gold); }

.sec-desc {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Gold accent line under headings */
.gold-bar {
  display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 3px;
  margin: 12px 0 18px;
}
.gold-bar.center { margin: 12px auto 18px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all var(--tr);
  text-decoration: none;
  line-height: 1;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139,26,26,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  box-shadow: 0 6px 30px rgba(139,26,26,0.65);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212,160,23,0.35);
}
.btn-gold:hover {
  box-shadow: 0 6px 30px rgba(212,160,23,0.6);
  transform: translateY(-2px);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(212,160,23,0.1);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
  color: var(--gold);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(212,160,23,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg   { padding: 16px 38px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* ================================================================
   CARD (reusable)
   ================================================================ */
.card {
  background: var(--surface);
  border: 1px solid rgba(212,160,23,0.12);
  border-radius: var(--rl);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
/* Top accent line animates on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  opacity: 0;
  transition: opacity var(--tr);
}
.card:hover {
  border-color: rgba(212,160,23,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212,160,23,0.1);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* Icon boxes */
.icon-box {
  width: 64px; height: 64px;
  border-radius: var(--rl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box img { width: 34px; height: 34px; object-fit: contain; }
.icon-box .emoji { font-size: 1.8rem; line-height: 1; }
.icon-box.red   { background: linear-gradient(135deg,rgba(139,26,26,.3),rgba(139,26,26,.1)); border: 1px solid rgba(139,26,26,.3); }
.icon-box.gold  { background: linear-gradient(135deg,rgba(212,160,23,.25),rgba(212,160,23,.08)); border: 1px solid rgba(212,160,23,.3); }
.icon-box.navy  { background: linear-gradient(135deg,rgba(26,26,78,.5),rgba(26,26,78,.2)); border: 1px solid rgba(42,42,110,.4); }

/* ================================================================
   TERMINAL (code window component)
   ================================================================ */
.terminal {
  background: #060612;
  border: 1px solid rgba(212,160,23,0.18);
  border-radius: var(--r);
  padding: 20px 22px;
  font-family: var(--font-m);
  font-size: 0.82rem;
}
.t-bar { display: flex; gap: 7px; margin-bottom: 16px; }
.t-bar span { width: 11px; height: 11px; border-radius: 50%; }
.t-r { background: #ff5f56; }
.t-y { background: #ffbd2e; }
.t-g { background: #27c93f; }
.t-line { margin-bottom: 4px; line-height: 1.7; }
.t-p { color: var(--gold); }
.t-c { color: var(--white); }
.t-o { color: var(--muted); }
.t-s { color: #4ade80; }
.t-w { color: #fbbf24; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--gold);
  animation: blink-cursor 1s step-end infinite;
  vertical-align: middle;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  position: relative;
  z-index: 1;
  background: var(--navy-dark);
  border-top: 2px solid rgba(212,160,23,0.2);
  padding: 70px 0 0;
}

/* 4-column grid: Brand | Links | Company | Contact */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
}

.f-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.f-brand-row img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212,160,23,0.4));
}
.f-brand-name {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
}
.f-brand-name span { color: var(--gold); }
.f-brand-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Social icons */
.f-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.f-socials a {
  width: 38px; height: 38px;
  border-radius: var(--r);
  border: 1px solid rgba(212,160,23,0.2);
  display: grid;
  place-items: center;
  transition: all var(--tr);
  color: var(--muted);
  font-size: 1rem;
}
.f-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,160,23,0.1);
  transform: translateY(-2px);
}

/* Footer column headings */
.footer-col h4 {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,160,23,0.15);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--tr);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid rgba(212,160,23,0.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color var(--tr);
}
.footer-bottom a:hover { color: var(--gold); }

/* Systems operational badge */
.status-chip {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: #4ade80;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 1.5s ease infinite;
}

/* Gold gradient horizontal divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent);
  opacity: 0.5;
}

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
#toast {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 9999;
  padding: 14px 22px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#toast.success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.35); color: #4ade80; }
#toast.error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.35);  color: #f87171; }
#toast.show    { transform: translateY(0); opacity: 1; }

/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes preloader-bar {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(212,160,23,0.3), 0 0 40px rgba(139,26,26,0.1); }
  50%       { box-shadow: 0 0 28px rgba(212,160,23,0.7), 0 0 60px rgba(139,26,26,0.2); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SCROLL REVEAL SYSTEM
   JS adds .vis class when element enters viewport
   Use delay classes .d1–.d6 for staggered reveals
   ================================================================ */
.reveal   { opacity: 0; transform: translateY(30px);  transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-r { opacity: 0; transform: translateX(30px);  transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-s { opacity: 0; transform: scale(0.94);       transition: opacity 0.7s  ease, transform 0.7s  ease; }

.reveal.vis,
.reveal-l.vis,
.reveal-r.vis,
.reveal-s.vis { opacity: 1; transform: none; }

/* Stagger delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   
   Mobile First Approach:
   - Base styles = mobile
   - min-width media queries add styles for larger screens
   
   Breakpoints:
   < 380px   — Small phones (iPhone SE)
   380–575px — Normal phones
   576–767px — Large phones / small tablets
   768–991px — Tablets
   992–1199px — Small laptops
   1200–1499px — Laptops / desktops
   1500–1999px — Large desktops
   2000–2559px — 4K / TV screens
   2560px+    — Ultra-wide / very large TV
   ================================================================ */

/* ── Large desktops ── */
@media (min-width: 1500px) {
  .wrap { max-width: 1420px; }
}

/* ── 4K / Smart TV ── */
@media (min-width: 2000px) {
  html     { font-size: 18px; }
  .wrap    { max-width: 1700px; }
  :root    { --nav-h: 84px; --sec-py: 130px; }
}
@media (min-width: 2560px) {
  html  { font-size: 20px; }
  .wrap { max-width: 2100px; }
}

/* ── Tablet — collapse nav to hamburger ── */
@media (max-width: 1024px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root {
    --nav-h:   68px;
    --sec-py:  72px;
  }
  .page-hero {
    padding: calc(var(--nav-h) + 70px) 0 70px;
  }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; gap: 8px; }
  .ph-title       { font-size: clamp(1.9rem, 8vw, 3rem); }
}

/* ── Small mobile ── */
@media (max-width: 576px) {
  .wrap, .wrap-sm { padding: 0 18px; }
  .btn-lg         { padding: 14px 28px; font-size: 0.95rem; }
  .ph-title       { line-height: 1.15; }
}

/* ── Very small phone ── */
@media (max-width: 380px) {
  :root { --nav-h: 62px; }
  .logo-name      { font-size: 1rem; }
  .nav-logo img   { width: 36px; height: 36px; }
  .logo-tagline   { display: none; }
}
