/* ═══════════════════════════════════════
   IT Certification Practice Exams
   styles.css — Japanese Minimal Tech
   ═══════════════════════════════════════ */

:root {
  --deep: #0a1628;
  --navy: #0f2040;
  --slate: #162a4a;
  --accent: #c8102e;
  --accent-glow: rgba(200,16,46,0.15);
  --white: #ffffff;
  --snow: #f4f6f9;
  --silver: #a0aec0;
  --text: #1a202c;
  --text-light: #4a5568;
  --gold: #d4a853;
  --font-heading: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes patternDrift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation: fadeUp 0.6s ease 0.1s both; }
.fade-up-d2 { animation: fadeUp 0.6s ease 0.2s both; }
.fade-up-d3 { animation: fadeUp 0.6s ease 0.3s both; }

/* ── Navigation ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
  font-family: var(--font-heading); font-weight: 900; font-size: 18px;
  color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-logo .jp { font-size: 10px; color: var(--silver); font-weight: 400; }
.nav-mark {
  display: inline-flex; width: 28px; height: 28px; background: var(--accent);
  border-radius: 4px; align-items: center; justify-content: center;
  font-size: 14px; color: white; font-weight: 900;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--silver); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; transition: all 0.25s;
  font-family: var(--font-body);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links .nav-cta {
  background: var(--accent); color: white; font-weight: 600;
  padding: 8px 18px; border-radius: 6px;
}
.nav-links .nav-cta:hover { background: #a50d24; }
.nav-jp { font-size: 10px; color: #667; display: block; }
.mobile-toggle {
  display: none; background: none; border: none;
  color: white; font-size: 24px; cursor: pointer;
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 540px; display: flex; align-items: center;
  background: var(--deep); overflow: hidden; padding-top: 64px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px);
  animation: patternDrift 20s linear infinite;
}
.hero::after {
  content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1200px;
  margin: 0 auto; padding: 80px 24px;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--accent); }
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(32px, 5vw, 56px);
  font-weight: 900; color: var(--white); line-height: 1.15;
  margin-bottom: 16px; max-width: 700px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--silver); max-width: 560px;
  margin-bottom: 8px; line-height: 1.6;
}
.hero-jp {
  font-family: var(--font-body); font-size: 14px;
  color: rgba(255,255,255,0.35); margin-bottom: 32px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: white; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  padding: 16px 36px; border-radius: 8px; transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(200,16,46,0.3);
}
.hero-cta:hover {
  background: #a50d24; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,16,46,0.4);
}
.hero-cta::after { content: '↓'; transition: transform 0.3s; }
.hero-cta:hover::after { transform: translateY(3px); }
.hero-quote {
  margin-top: 40px; padding: 20px 24px; border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.03); border-radius: 0 8px 8px 0; max-width: 500px;
}
.hero-quote p {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--silver); font-style: italic; margin-bottom: 6px;
}
.hero-quote .jp { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── Sections ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
.section-title {
  font-family: var(--font-heading); font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900; color: var(--text); margin-bottom: 8px; line-height: 1.25;
}
.section-subtitle {
  font-size: 15px; color: var(--text-light);
  margin-bottom: 40px; max-width: 600px;
}

/* ── Why Section ── */
.why-section { background: var(--snow); }
.why-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why-text { font-size: 15px; color: var(--text-light); line-height: 1.85; }
.why-text p { margin-bottom: 16px; }
.why-text strong { color: var(--text); }
.why-jp {
  font-size: 13px; color: var(--silver); margin-top: 16px;
  padding: 12px 16px; border-left: 2px solid var(--accent);
  background: white; border-radius: 0 6px 6px 0;
}
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: white; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px; text-align: center; transition: all 0.3s;
}
.stat-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.stat-num {
  font-family: var(--font-heading); font-size: 36px;
  font-weight: 900; color: var(--deep);
}
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── Cert Cards ── */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.cert-card {
  background: white; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: all 0.35s ease;
}
.cert-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--deep), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.cert-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,22,40,0.08);
}
.cert-card:hover::before { transform: scaleX(1); }
.cert-icon {
  width: 44px; height: 44px; background: var(--snow); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--deep); margin-bottom: 16px; border: 1px solid #e2e8f0;
}
.cert-card h3 {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.cert-desc { font-size: 13.5px; color: var(--text-light); margin-bottom: 4px; }
.cert-jp { font-size: 12px; color: var(--silver); margin-bottom: 18px; }
.cert-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); text-decoration: none; padding: 8px 16px;
  border: 1.5px solid var(--accent); border-radius: 6px; transition: all 0.25s;
}
.cert-btn:hover { background: var(--accent); color: white; }
.cert-btn::after { content: '→'; transition: transform 0.25s; }
.cert-btn:hover::after { transform: translateX(3px); }

/* ── EC-Council Section ── */
.ec-section { background: var(--deep); color: white; }
.ec-section .section-label { color: var(--gold); }
.ec-section .section-label::before { background: var(--gold); }
.ec-section .section-title { color: white; }
.ec-section .section-subtitle { color: var(--silver); }
.ec-section .cert-card { background: var(--navy); border-color: rgba(255,255,255,0.06); }
.ec-section .cert-card:hover { border-color: var(--gold); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.ec-section .cert-card::before { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.ec-section .cert-icon { background: var(--slate); border-color: rgba(255,255,255,0.08); color: var(--gold); }
.ec-section .cert-card h3 { color: white; }
.ec-section .cert-desc { color: var(--silver); }
.ec-section .cert-jp { color: rgba(255,255,255,0.3); }
.ec-section .cert-btn { color: var(--gold); border-color: var(--gold); }
.ec-section .cert-btn:hover { background: var(--gold); color: var(--deep); }

/* ── Guide Section ── */
.guide-section { background: var(--snow); }
.guide-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.guide-text { font-size: 15px; color: var(--text-light); line-height: 1.85; }
.guide-text p { margin-bottom: 16px; }
.guide-text strong { color: var(--text); }
.guide-path {
  background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px;
}
.guide-path h3 {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  margin-bottom: 20px; color: var(--text);
}
.path-step {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px;
  padding-bottom: 18px; border-bottom: 1px solid #f0f0f0;
}
.path-step:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.path-num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: var(--deep); color: white; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.path-step a {
  text-decoration: none; color: inherit; display: block; transition: color 0.2s;
}
.path-step a:hover strong { color: var(--accent); }
.path-step strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 2px; transition: color 0.2s; }
.path-step span { font-size: 12px; color: var(--text-light); }

/* ── Footer ── */
footer {
  background: var(--deep); color: var(--silver); padding: 48px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: white;
}
.footer-brand .jp {
  font-size: 11px; color: var(--silver); font-weight: 400; display: block; margin-top: 4px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: var(--silver); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--silver); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .why-content, .guide-content { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: rgba(10,22,40,0.98);
    padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 48px 24px; }
  .cert-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
