/* ============================================================
   ADPLIX – Global Stylesheet
   Futuristic Marketing Agency | Navy · Black · White · Cyan
   ============================================================ */

/* ── Variables ── */
:root {
  --navy:       #050d1f;
  --navy-mid:   #0a1a35;
  --navy-light: #0f2448;
  --cyan:       #00d4ff;
  --cyan-dim:   #0099cc;
  --white:      #f0f6ff;
  --grey:       #8a9ab5;
  --glass-bg:   rgba(10, 26, 53, 0.55);
  --glass-border: rgba(0, 212, 255, 0.18);
  --glow:       0 0 24px rgba(0, 212, 255, 0.45);
  --glow-sm:    0 0 10px rgba(0, 212, 255, 0.3);
  --transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:  'Orbitron', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Custom Cursor ── */
#cursor-outer {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 38px; height: 38px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, border-color .25s, opacity .25s;
  opacity: 0.75;
}
#cursor-inner {
  position: fixed; z-index: 10000; pointer-events: none;
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .12s, width .2s, height .2s;
}
body.cursor-hover #cursor-outer {
  width: 58px; height: 58px;
  border-color: rgba(0,212,255,.5);
  background: rgba(0,212,255,.07);
}
body.cursor-hover #cursor-inner { width: 5px; height: 5px; }

/* ── Canvas Particles ── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ── Page Transition Overlay ── */
#page-transition {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--navy);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
#page-transition.slide-in  { clip-path: inset(0 0 0% 0); }
#page-transition.slide-out { clip-path: inset(100% 0 0 0); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 4px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(5, 13, 31, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.nav.scrolled {
  padding: 0.75rem 5%;
  background: rgba(5, 13, 31, 0.92);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
}
.nav-logo span { color: var(--cyan); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; }
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 700;
  background: rgba(5,13,31,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%); transition: transform 0.4s ease;
}
.mobile-nav.open { transform: translateX(0); display: flex; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.6rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--white);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--cyan); text-shadow: var(--glow); }

/* ── Glassmorphism Card ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  border-radius: 16px;
}

/* ── Section Wrapper ── */
.section {
  position: relative; z-index: 1;
  padding: 7rem 8%;
}
.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem; letter-spacing: 5px;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 40px; height: 1px; background: var(--cyan);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900; line-height: 1.1;
  color: var(--white);
}
.section-title span { color: var(--cyan); }
.section-sub {
  margin-top: 1.2rem;
  font-size: 1.05rem; line-height: 1.75;
  color: var(--grey); max-width: 560px;
}

/* ── Cyan Button ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: none; border-radius: 50px;
  cursor: none; transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--navy);
  box-shadow: 0 8px 30px rgba(0,212,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,212,255,0.55);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

/* ── Glowing Divider ── */
.glow-divider {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px; margin: 1.5rem 0;
  box-shadow: var(--glow-sm);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  background: rgba(5,13,31,0.95);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 8% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 900;
  letter-spacing: 3px; color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand-name span { color: var(--cyan); }
.footer-desc { color: var(--grey); line-height: 1.7; font-size: 0.92rem; max-width: 280px; }
.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.72rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; color: var(--grey);
  font-size: 0.9rem; margin-bottom: 0.65rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 6px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.8rem;
  font-size: 0.82rem; color: var(--grey);
}
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 0.9rem;
  transition: var(--transition);
}
.social-icons a:hover {
  border-color: var(--cyan); color: var(--cyan);
  box-shadow: var(--glow-sm);
}

/* ── Ticker / Marquee ── */
.marquee-wrap {
  overflow: hidden; background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--grey);
  padding: 0 2.5rem;
}
.marquee-item span { color: var(--cyan); margin-right: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Stats Counter ── */
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900; color: var(--cyan);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--grey); margin-top: 0.4rem; letter-spacing: 1px; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-cyan   { color: var(--cyan); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 5rem 6%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 5%; }
}
