/* =========================
   ROOT VARIABLES (change here for theme tweaks)
   ========================= */
:root {
  /* Colors */
  --bg-black: #05060a;                         /* page base - used under animated gradient */
  --bg-grad: linear-gradient(180deg,#000,#081019);
  --accent-cyan: #00e5ff;
  --accent-cyan-2: #4fc3f7;
  --muted-border: rgba(255,255,255,0.04);

  /* Text */
  --text-white: #ffffff;
  --text-dim: rgba(255,255,255,0.78);

  /* Glass & effects */
  --glass-bg-light: rgba(255,255,255,0.02);   /* thin glass (light) used for cards */
  --glass-bg-medium: rgba(0,0,0,0.36);        /* darker card inner backgrounds */
  --glass-blur: 10px;
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 36px rgba(0,229,255,0.06);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1400px;

  /* Timing */
  --t-quick: 160ms;
  --t-med: 280ms;
}

/* =========================
   RESET & BASE
   ========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: "Poppins", system-ui, sans-serif;    /* matches HTML import */
  background: var(--bg-black);
  background-image: var(--bg-grad);
  color: var(--text-white);
  line-height: 1.55;
  overflow-x: hidden; /* prevent horizontal scroll from small rounding issues */
}

/* headings color */
h1,h2,h3,h4,h5,h6 { color: var(--text-white); }

/* container utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* tiny helpers */
.text-center { text-align: center; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.visually-hidden { position: absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* =========================
   SITE-LAYER ORDER (z-index guide)
   - animated-bg  : z = -4
   - floating dots : z = -3
   - tsParticles   : z = -2
   - video (hero)  : z = -1
   - content       : z >= 0
   ========================= */

/* animated subtle gradient layer (full-screen) */
.animated-bg {
  position: fixed;
  inset: 0;                  /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  z-index: -4;               /* behind everything except absolute very-back elements */
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.95;
  background:
    radial-gradient(circle at 10% 20%, rgba(79,195,247,0.03) 0%, transparent 18%),
    radial-gradient(circle at 90% 80%, rgba(255,213,79,0.02) 0%, transparent 16%),
    var(--bg-grad);
}

/* floating particles (tiny white dots) */
.floating-particles {
  position: fixed;
  inset: 0;
  z-index: -3;               /* above animated-bg */
  pointer-events: none;
  overflow: hidden;
}

/* each visual particle (HTML provides .particle elements) */
.floating-particles .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0.45) 100%);
  opacity: .95;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.06));
  animation: particleFloat linear infinite;
}

/* particle vertical float animation */
@keyframes particleFloat {
  0%   { transform: translateY(110vh) scale(.25); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* hide floating-particles *within* hero to keep video area clean */
#home .floating-particles { display: none !important; }

/* tsParticles canvas (used by script) - behind content but above bg layers */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;               /* sits above animated-bg & floating-particles but below video/content */
  pointer-events: none;
}

/* =========================
   NAVBAR / HEADER
   ========================= */
header.nav-blur {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.56);                     /* slight dark to separate nav */
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--muted-border);
  transition: all var(--t-med);
}
header.nav-blur .container { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 0; }

/* branding font used in HTML */
.futuristic-font { font-family: 'Orbitron', sans-serif; letter-spacing:.6px; color:var(--text-white); font-weight:700; }

/* desktop nav links visuals */
nav.desktop-links { display: flex; gap: 1.2rem; align-items:center; }
nav.desktop-links a {
  color: var(--text-white);
  text-decoration: none;
  font-weight:600;
  font-size:.95rem;
  padding:.35rem .5rem;
  border-radius:8px;
  position:relative;
  transition: transform var(--t-quick), color var(--t-quick);
}
nav.desktop-links a:hover { color: var(--accent-cyan); transform: translateY(-2px); }
nav.desktop-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--text-white));
  transform: translateX(-50%);
  transition: width var(--t-quick);
}
nav.desktop-links a:hover::after { width: 72%; }

/* mobile menu basics */
#menuToggle { background: none; border: 0; color: var(--text-white); cursor:pointer; padding:.25rem; }
#mobileMenu { display: none; padding:.6rem 1rem; background: rgba(0,0,0,0.9); }

/* shrink header small state */
header.nav-blur.small { padding: .55rem 0; }

/* =========================
   HERO / HOME
   - video is absolute background in HTML; keep it behind content
   ========================= */
#home {
  position: relative;
  min-height: calc(100vh - 88px);   /* leave room for header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.75rem 1rem 6rem;
  overflow: hidden;
}

/* video styling — matches HTML classes used */
#home video.absolute,
#home video.object-cover,
#home video.w-full,
#home video.h-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;               /* cover entire hero area */
  z-index: -1;                     /* behind content but above tsParticles */
  filter: brightness(.52) saturate(.95); /* dim for legibility */
  pointer-events: none;
}

/* optional overlay inside hero (HTML had .absolute-overlay) */
#home .absolute-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.62));
  z-index: 0;
}

/* hero content front layer */
.hero-content { position: relative; z-index: 20; padding: 1rem 1.2rem; max-width: 1100px; margin: 0 auto; }

/* CTA - button baseline */
.btn {
  display: inline-block;
  padding: .95rem 1.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
  color: var(--accent-cyan);
  font-weight: 800;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform var(--t-quick), background var(--t-quick), box-shadow var(--t-quick);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -110%;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left .5s ease;
  opacity: .6;
}
.btn:hover { transform: translateY(-4px); background: var(--accent-cyan); color: #061118; box-shadow: var(--shadow-glow); }
.btn:hover::before { left: 100%; }

/* primary CTA */
.btn-primary {
  padding: 1rem 2.2rem;
  border-radius: 999px;
  border: 2px solid var(--text-white);
  background: linear-gradient(135deg, var(--accent-cyan), var(--text-white));
  color: #071018;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
}

/* =========================
   ABOUT SECTION
   - entire section left transparent so background shows through
   - the inner .bg-transparent card gets the glass look
   ========================= */
#about { padding: 6.25rem 1rem 3.5rem; background: transparent; }

/* About inner card (HTML uses class .bg-transparent) */
#about .bg-transparent {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(180deg, var(--glass-bg-light), rgba(255,255,255,0.01));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,195,247,0.06);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
}

/* branch cards (three cards inside about) */
#branchesContainer { display: grid; grid-template-columns: repeat(3,1fr); gap:1rem; margin-top: 1.25rem; }
.branch-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,229,255,0.02), rgba(79,195,247,0.01));
  border: 1px solid rgba(0,229,255,0.10);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.branch-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,229,255,0.04); }

/* small screens for about grid */
@media (max-width: 1024px) { #branchesContainer { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { #branchesContainer { grid-template-columns: 1fr; } #about{ padding-top: 4.25rem; } }

/* =========================
   TEAM SECTION
   ========================= */
#team { padding: 4.5rem 1rem; }
.team-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:1.25rem; max-width:1200px; margin: 0 auto; }

/* team cards */
.team-card, .game-card {
  background: linear-gradient(180deg, var(--glass-bg-light), rgba(255,255,255,0.01));
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.team-card:hover, .game-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); border-color: rgba(79,195,247,0.12); }

/* avatars */
.team-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 999px; margin: 0 auto .6rem; border: 3px solid var(--text-white); box-shadow: 0 6px 22px rgba(0,0,0,0.6); }

/* =========================
   PROJECTS / GAMES SECTION
   ========================= */
#games { padding: 4.5rem 1rem; background: transparent; }

/* style for game-card (used widely in HTML) */
#games .game-card { padding: 2rem; }
#games img { display:block; width:100%; height:auto; border-radius:12px; }

/* teaser grid under Projects */
#games .grid { gap: 1rem; }

/* =========================
   GALLERY / SLIDER
   ========================= */
.gallery-wrapper { position: relative; width: 100%; }
.slider-container {
  position: relative; width: 100%; height: 600px;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--muted-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  transition: all var(--t-med) ease;
  perspective: var(--depth);
  transform-style: preserve-3d;
  isolation: isolate;
}
.slider-container:hover { box-shadow: var(--shadow-soft), 0 0 48px rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.1); }

.slider-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; transform-style: preserve-3d; }

/* ornaments */
.slide::before {
  content:""; position:absolute; top:20px; right:20px; width:150px; height:150px;
  background: radial-gradient(circle, rgba(0,229,255,0.1), transparent 70%);
  border-radius:50%; z-index:2; animation: slideInnerCurve 4s ease-in-out infinite;
}
@keyframes slideInnerCurve { 0%,100%{transform:scale(1) rotate(0deg); opacity:.6;} 50%{transform:scale(1.2) rotate(180deg); opacity:1;} }

.slide::after {
  content:""; position:absolute; bottom:0; left:0; width:100%; height:200px;
  background: linear-gradient(to top, var(--glass-bg-medium) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  clip-path: ellipse(75% 100% at 50% 100%);
  backdrop-filter: blur(8px); z-index:3;
}

.side-shade { position:absolute; top:0; width:22%; height:100%; z-index:2; pointer-events:none; mix-blend-mode:multiply; }
.side-shade.left { left:0; background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25), rgba(0,0,0,0)); }
.side-shade.right { right:0; background: linear-gradient(270deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25), rgba(0,0,0,0)); }

.inner-curve-left, .inner-curve-right { position:absolute; border-radius:50%; z-index:2; }
.inner-curve-left { top:50%; left:-30px; width:100px; height:100px; background: radial-gradient(circle, rgba(79,195,247,0.08), transparent 60%); transform: translateY(-50%); animation: leftCurveFloat 5s ease-in-out infinite; }
.inner-curve-right { bottom:30%; right:-40px; width:120px; height:120px; background: radial-gradient(circle, rgba(0,229,255,0.06), transparent 70%); animation: rightCurveFloat 7s ease-in-out infinite reverse; }
@keyframes leftCurveFloat { 0%,100%{transform:translateY(-50%) translateX(0);} 50%{transform:translateY(-60%) translateX(10px);} }
@keyframes rightCurveFloat { 0%,100%{transform:translateX(0) scale(1);} 50%{transform:translateX(-10px) scale(1.1);} }

.slide img {
  width:100%; height:100%; object-fit:cover; cursor:pointer;
  transform-origin:center center;
  transform: rotateY(0deg) translateZ(0);
  transition: transform var(--t-slow) cubic-bezier(0.4,0,0.2,1), opacity var(--t-med) ease;
  will-change: transform, opacity; backface-visibility:hidden;
}
.slide:hover img { transform: scale(1.02) translateZ(0); }

/* 3D states */
.slide.active img { transform: rotateY(0deg) translateZ(0) scale(1); opacity:1; }
.slide.prev img { transform-origin:center right; transform: rotateY(35deg) translateZ(-240px) scale(0.92); opacity:0.85; }
.slide.next img { transform-origin:center left; transform: rotateY(-35deg) translateZ(-240px) scale(0.92); opacity:0.85; }

.slider-container.sliding-left .slide.active img { transform-origin:center right; transform: rotateY(20deg) translateZ(-160px) scale(0.98); }
.slider-container.sliding-right .slide.active img { transform-origin:center left; transform: rotateY(-20deg) translateZ(-160px) scale(0.98); }

/* slide content */
.slide-content { position:absolute; bottom:40px; left:40px; right:40px; z-index:4; color:var(--text-white); }
.slide-title { font-size:2rem; font-weight:600; margin-bottom:.5rem; color:var(--text-white); text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.slide-description { font-size:1rem; color:var(--text-dim); font-weight:400; line-height:1.5; text-shadow:0 1px 4px rgba(0,0,0,0.5); }

/* nav buttons */
.nav-btn {
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px; background:var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur)); border:1px solid var(--muted-border);
  border-radius:50%; color:var(--accent-cyan); font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:10;
  transition: all var(--t-quick) ease; box-shadow: var(--shadow-soft);
}
.nav-btn:hover { background:var(--glass-bg-medium); border-color: rgba(0,229,255,.2); color:var(--text-white); transform:translateY(-50%) scale(1.05); box-shadow:var(--shadow-soft), var(--shadow-glow); }
.nav-btn:active { transform:translateY(-50%) scale(0.95); }
.prev { left:20px; } .next { right:20px; }

/* thumbnails */
.thumbnails { display:flex; justify-content:center; gap:16px; margin-top:2rem; padding:0 20px; flex-wrap:wrap; }
.thumb { width:80px; height:80px; border-radius:var(--radius-md); overflow:hidden; cursor:pointer; background:var(--glass-bg-light); backdrop-filter: blur(var(--glass-blur)); border:1px solid var(--muted-border); transition: all var(--t-quick) ease; position:relative; box-shadow:var(--shadow-soft); }
.thumb::before { content:""; position:absolute; inset:-1px; border-radius:var(--radius-md); background:linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-2)); opacity:0; transition: opacity var(--t-quick) ease; z-index:-1; }
.thumb img { width:100%; height:100%; object-fit:cover; transition: transform var(--t-quick) ease; }
.thumb:hover { transform: translateY(-2px) scale(1.05); box-shadow:var(--shadow-soft), var(--shadow-glow); }
.thumb.active::before { opacity:1; }
.thumb.active { border-color:transparent; }

/* modal */
.modal { position: fixed; inset:0; background: rgba(5,6,10,.95); backdrop-filter: blur(20px); display:flex; justify-content:center; align-items:center; visibility:hidden; opacity:0; transition: all var(--t-med) ease; z-index:1000; }
.modal.active { visibility: visible; opacity:1; }
.modal img { max-width:90%; max-height:85%; border-radius:var(--radius-lg); box-shadow:var(--shadow-soft), var(--shadow-glow); animation: modalZoom .4s ease; }
@keyframes modalZoom { from { transform: scale(.8); opacity:0; } to { transform: scale(1); opacity:1; } }
.modal-close { position:absolute; top:30px; right:40px; width:40px; height:40px; background:var(--glass-bg-light); backdrop-filter: blur(var(--glass-blur)); border:1px solid var(--muted-border); border-radius:50%; color:var(--text-white); font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition: all var(--t-quick) ease; }
.modal-close:hover { background:var(--glass-bg-medium); color:var(--accent-cyan); transform:scale(1.1); }

/* progress & counter */
.progress-container { position:absolute; bottom:0; left:0; width:100%; height:3px; background:var(--glass-bg-light); }
.progress-bar { height:100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-2)); transition: width var(--t-med) ease; border-radius:0 2px 2px 0; }
.slide-counter { position:absolute; top:20px; right:20px; background:var(--glass-bg-medium); backdrop-filter: blur(var(--glass-blur)); border:1px solid var(--muted-border); border-radius:var(--radius-sm); padding:8px 12px; font-size:.875rem; color:var(--text-dim); font-weight:500; z-index:5; }
.slide-counter .current { color:var(--accent-cyan); }

/* responsive */
@media (max-width: 768px) {
  .slider-container { height: 400px; border-radius: var(--radius-md); }
  .slide-content { bottom: 20px; left: 20px; right: 20px; }
  .slide-title { font-size: 1.5rem; }
  .slide-description { font-size: .9rem; }
  .nav-btn { width: 40px; height: 40px; font-size: 16px; }
  .thumb { width: 60px; height: 60px; }
  .thumbnails { gap: 12px; }
}
@media (max-width: 480px) {
  .slider-container { height: 350px; }
  .prev { left: 10px; } .next { right: 10px; }
  .slide-counter { top: 10px; right: 10px; padding: 6px 10px; font-size: .8rem; }
}
/* =========================
   ART PIPELINE
   - Section transparent; inner cards (.tech-diagram) get glass
   ========================= */
#art-pipeline { padding: 4.5rem 1rem; background: transparent; }

/* tech-diagram card visuals */
#art-pipeline .tech-diagram {
  padding: 1.2rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--glass-bg-light), rgba(255,255,255,0.01)); /* light glass */
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
#art-pipeline .tech-diagram h4 { margin-bottom: .5rem; font-size: .95rem; color: var(--text-white); }
#art-pipeline .tech-diagram p, #art-pipeline .tech-diagram ul { font-size: .82rem; color: var(--text-dim); line-height: 1.5; }

/* layout (grid) already handled by HTML classes; CSS ensures visual look */

/* =========================
   CONTACT SECTION
   - Section transparent so background remains visible
   - We target the *left* info card via structural selector and right form via #contactForm id
   ========================= */
#contact { padding: 4.5rem 1rem; background: transparent; }

/* center wrapper: in HTML it's .max-w-6xl mx-auto; ensure consistent max width */
#contact > .max-w-6xl, #contact .max-w-6xl { max-width: 1120px; margin: 0 auto; }

/* the flex container is: <div class="flex flex-col md:flex-row gap-8 w-full"> */
/* left info card = first child DIV inside that flex container -> apply glass here */
#contact .flex > div:first-child {
  background: linear-gradient(180deg, var(--glass-bg-light), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(79,195,247,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  color: var(--text-white);
}

/* contact form card (right column) - HTML uses id="contactForm" */
#contact form#contactForm {
  background: linear-gradient(180deg, var(--glass-bg-light), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(79,195,247,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* inputs inside contact form */
#contact input[type="text"],
#contact input[type="email"],
#contact textarea,
#contact select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.36);
  color: var(--text-white);
  font-size: 1rem;
  transition: box-shadow var(--t-quick), border-color var(--t-quick);
  backdrop-filter: blur(6px);
}
#contact input::placeholder, #contact textarea::placeholder { color: rgba(255,255,255,0.6); }
#contact input:focus, #contact textarea:focus, #contact select:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0,229,255,0.06); }

/* contact labels & status text */
#contact label, #contactStatus { color: var(--text-white); }

/* ensure contact buttons are full-width on mobile and consistent */
#contact .btn { width: 100%; padding: .95rem 1rem; border-radius: 12px; }

/* =========================
   FEEDBACK SECTION
   - Section transparent, form card uses glass look
   ========================= */
#feedback { padding: 4.5rem 1rem; background: transparent; }

/* feedback form id = feedbackForm */
#feedback form#feedbackForm {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--glass-bg-light), rgba(255,255,255,0.01));
  border-radius: 12px;
  border: 1px solid rgba(79,195,247,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* star rating / interactive small things */
.star { font-size: 1.9rem; color: rgba(255,255,255,0.75); cursor: pointer; transition: transform .12s ease, color .12s ease; }
.star.active, .star.selected { color: var(--text-white); transform: scale(1.05); text-shadow: 0 0 10px rgba(255,202,40,0.08); }

/* checkbox styling used elsewhere on site (kept consistent) */
.checkbox-container { display:flex; align-items:center; gap:.6rem; padding:.5rem; border-radius:8px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.02); }
.checkbox-container input[type="checkbox"] { appearance:none; width:18px; height:18px; border-radius:4px; border:2px solid var(--accent-cyan); background:transparent; cursor:pointer; position:relative; }
.checkbox-container input[type="checkbox"]:checked { background: var(--accent-cyan); box-shadow: 0 0 10px rgba(0,229,255,0.06); }

/* =========================
   UTILITIES & ANIMATIONS
   ========================= */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity:1; transform:none; }
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }

.animate-logo-entry { animation: logoEntry 1.2s ease-out forwards; }
@keyframes logoEntry {
  0% { opacity:0; transform: scale(.3) rotate(-30deg); filter: blur(5px); }
  60% { opacity:1; transform: scale(1.05) rotate(5deg); filter: blur(0); }
  100% { transform: scale(1) rotate(0deg); }
}

/* =========================
   RESPONSIVE & FOOTER
   ========================= */
footer { padding: 2.5rem 1rem; text-align: center; color: var(--text-dim); }

@media (max-width: 1024px) {
  nav.desktop-links { display: none; }
  #mobileMenu { display: block; }
  #branchesContainer { grid-template-columns: repeat(2,1fr); }
  #gallery .slider { animation-duration: 36s; }
  #home { min-height: calc(90vh - 72px); padding-top: 3.5rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .btn { padding: .7rem 1.05rem; }
  #branchesContainer { grid-template-columns: 1fr; gap:.85rem; }
  #about { padding-top: 4.25rem; }
}
@media (max-width: 480px) {
  #home { padding-top: 2.5rem; padding-bottom: 3rem; }
  h1 { font-size: 1.8rem; }
  .btn { padding: .6rem .9rem; font-size: .95rem; }
  #about { padding-top: 3.25rem; }
}

/* focus outlines for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,229,255,0.06);
  border-radius: 8px;
}
a:focus-visible { outline: 2px solid rgba(0,229,255,0.09); outline-offset: 2px; }

/* webkit scrollbar visuals to match theme */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.25); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* footer links */
.footer-link {
  color: rgba(255,255,255,0.65);
  transition: all 0.3s ease;
  position: relative;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.footer-link:hover {
  color: var(--accent-cyan);
}
.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Login button */
.nav-login-btn {
  display: inline-block;
  padding: 0;
  height: 20px;   /* button height */
  width: 60px;    /* button width */
  overflow: hidden;
}

.nav-login-btn img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-login-btn img:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Optional – mobile menu hidden by default */
#mobileMenu {
  transition: max-height 0.3s ease;
}
