/* ============================================================
   EXAM NINJAS — Global Design System
   exam-ninjas.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy-950: #020817;
  --navy-900: #0a0f1e;
  --navy-800: #0d1526;
  --navy-700: #111c35;
  --navy-600: #1a2844;
  --navy-500: #1e3a5f;

  --blue-primary: #3b82f6;
  --blue-hover:   #2563eb;
  --blue-light:   rgba(59,130,246,0.15);

  --cyan-accent:  #06b6d4;
  --cyan-light:   rgba(6,182,212,0.15);

  --gold-accent:  #f59e0b;
  --gold-light:   #fbbf24;
  --gold-bg:      rgba(245,158,11,0.12);

  --white:        #ffffff;
  --white-90:     rgba(255,255,255,0.9);
  --white-70:     rgba(255,255,255,0.7);
  --white-50:     rgba(255,255,255,0.5);
  --white-20:     rgba(255,255,255,0.2);
  --white-10:     rgba(255,255,255,0.1);
  --white-05:     rgba(255,255,255,0.05);

  --gradient-hero:  linear-gradient(135deg, #020817 0%, #0a1628 55%, #0d1f3c 100%);
  --gradient-blue:  linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-gold:  linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-card:  linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  --gradient-radial: radial-gradient(ellipse at top, #0d1f3c 0%, #020817 70%);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  --section-padding: 110px 0;
  --container-max:   1240px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-blue:  0 0 40px rgba(59,130,246,0.25);
  --shadow-cyan:  0 0 40px rgba(6,182,212,0.25);
  --shadow-gold:  0 0 30px rgba(245,158,11,0.3);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-nav:   0 4px 40px rgba(0,0,0,0.6);

  --transition:      all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a            { text-decoration: none; color: inherit; }
img          { max-width: 100%; height: auto; display: block; }
ul, ol       { list-style: none; }
button       { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: var(--section-padding); position: relative; overflow: hidden; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan-accent);
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.15;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--white-70);
  max-width: 580px;
  line-height: 1.8;
}
.text-center                 { text-align: center; }
.text-center .section-desc   { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 0.975rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(59,130,246,0.45);
}
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: var(--white-20);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--blue-primary);
  background: rgba(59,130,246,0.08);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--navy-900);
  font-weight: 700;
  border-color: transparent;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-lg   { padding: 18px 48px; font-size: 1.05rem; }
.btn-sm   { padding: 10px 22px; font-size: 0.875rem; }
.btn-icon { padding: 14px; border-radius: 50%; }

/* ============================================================
   GLASS CARDS
   ============================================================ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 36px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(59,130,246,0.08);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,15,30,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--white-10);
  padding: 14px 0;
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.nav-logo-text .highlight { color: var(--blue-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--white-70);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--white-10);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}
.nav-burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,12,24,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-mobile.open { display: flex; animation: fadeIn 0.25s ease; }
.nav-mobile a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white-70);
  transition: var(--transition);
  padding: 4px 0;
}
.nav-mobile a:hover { color: var(--blue-primary); }
.nav-mobile .btn { font-size: 1.1rem; }

.nav-mobile-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 2.2rem;
  color: var(--white-70);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  background: none; border: none;
}
.nav-mobile-close:hover { color: var(--white); }

/* ============================================================
   HERO SHARED STYLES
   ============================================================ */
.page-hero {
  min-height: 48vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: var(--gradient-radial);
  position: relative;
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 2; padding: 80px 0 60px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.page-hero p { font-size: 1.15rem; color: var(--white-70); max-width: 560px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--white-10);
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p   { color: var(--white-70); font-size: 0.93rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: var(--white-70);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--blue-primary); padding-left: 6px; }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white-10);
  border: 1px solid var(--white-10);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--white-70);
}
.footer-social-icon:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--white-50); font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--white-50); font-size: 0.875rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white-90); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid;
}
.badge-blue { background: var(--blue-light);  border-color: rgba(59,130,246,0.3);  color: var(--blue-primary); }
.badge-cyan { background: var(--cyan-light);  border-color: rgba(6,182,212,0.3);   color: var(--cyan-accent); }
.badge-gold { background: var(--gold-bg);     border-color: rgba(245,158,11,0.35); color: var(--gold-accent); }

/* ============================================================
   DECORATIVE ORBS
   ============================================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}
.orb-blue { background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 70%); }
.orb-cyan { background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%); }
.orb-gold { background: radial-gradient(circle, rgba(245,158,11,0.14) 0%, transparent 70%); }


/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-70);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--white-10);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.975rem;
  transition: var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--white-50); }
.form-control:focus {
  border-color: var(--blue-primary);
  background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-control.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-hint { font-size: 0.8rem; color: var(--white-50); }
.form-error { font-size: 0.8rem; color: #f87171; display: none; }
.form-error.show { display: block; }

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider          { height: 1px; background: var(--white-10); }
.divider-gradient { height: 1px; background: linear-gradient(90deg, transparent, var(--blue-primary), transparent); margin: 0; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-18px) rotate(3deg); }
  66%      { transform: translateY(-9px) rotate(-2deg); }
}
@keyframes float-alt {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-4deg); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 14px rgba(59,130,246,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  /* Hide desktop nav on tablets and smaller */
  .nav-links, .nav-cta { display: none !important; }
  .nav-burger  { display: flex; }
}
@media (max-width: 768px) {
  :root { --section-padding: 75px 0; }
  .nav-mobile  { z-index: 1100; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn       { padding: 12px 26px; font-size: 0.92rem; }
  .btn-lg    { padding: 16px 36px; font-size: 1rem; }
}
