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

:root {
  --bg: #0A0A0A;
  --surface: #121218;
  --surface-2: #1A1A22;
  --surface-3: #222230;
  --text: #F0F0F5;
  --text-dim: #8888A0;
  --cobalt: #0047AB;
  --cobalt-light: #1A5FD0;
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.4);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --max-width: 1100px;
  --nav-h: 64px;
}

[data-theme="light"] {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF0F5;
  --surface-3: #E0E3EB;
  --text: #0A0A12;
  --text-dim: #555566;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 71, 171, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --glow: 0 0 20px rgba(0, 71, 171, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="light"] .navbar { background: rgba(245, 246, 250, 0.85); }
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; display: flex; gap: 2px; }
.logo-bracket { color: var(--cyan); }
.logo-text { color: var(--text); }

.nav-menu { list-style: none; display: flex; gap: 0.25rem; align-items: center; }
.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--cyan); background: var(--cyan-dim); }

.nav-cta {
  background: var(--cobalt);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid var(--cobalt-light);
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.nav-cta:hover { background: var(--cobalt-light); box-shadow: var(--glow); transform: translateY(-2px); }
.nav-cta.active { background: var(--cyan); color: #000 !important; border-color: var(--cyan); }

/* Theme toggle button */
.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s;
}
.theme-toggle:hover { border-color: var(--cyan); transform: rotate(15deg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Main & Sections ===== */
main { min-height: calc(100vh - var(--nav-h)); }

.page-hero {
  padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.page-hero .subtitle { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.section { padding: 3rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  border-radius: 2px;
  margin-top: 0.5rem;
}
.section-desc { color: var(--text-dim); margin-bottom: 2.5rem; max-width: 600px; }

/* ===== Home Hero ===== */
.home-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 71, 171, 0.12), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.08), transparent 50%);
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3%, -3%); }
}

.hero-content { position: relative; text-align: center; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-nick {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  background: linear-gradient(90deg, var(--cobalt-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}
.hero-bio { color: var(--text-dim); font-size: 1.1rem; max-width: 550px; margin: 0 auto 2rem; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.role-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s, color 0.25s;
}
.role-tag:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-light));
  color: #fff;
  border: 1px solid var(--cobalt-light);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cobalt-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.card-tag {
  background: var(--surface-3);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
}

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cobalt), var(--cyan), transparent);
}
.timeline-item { position: relative; padding-left: 55px; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 13px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  z-index: 1;
}
.timeline-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.timeline-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-content .timeline-org { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Certificate Cards ===== */
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.cert-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.cert-badge {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.cert-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.cert-info p { color: var(--text-dim); font-size: 0.88rem; }
.cert-verified {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 600; color: var(--cyan);
  margin-top: 0.5rem;
}

/* ===== Social Page ===== */
.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.social-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.social-card .social-icon { font-size: 1.5rem; }
.social-card span:last-child { font-size: 0.95rem; }

/* Media Player */
.media-section { margin-top: 2rem; }
.media-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.media-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s;
}
.media-tab:hover { border-color: var(--border-hover); color: var(--text); }
.media-tab.active {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt-light);
  box-shadow: var(--glow);
}
.media-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.media-player-wrap iframe { width: 100%; height: 100%; border: 0; }
.player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  gap: 0.5rem;
}

/* ===== Contact Form ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 1rem;
}
.form-success.show { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
}
.contact-info-item .icon { font-size: 1.3rem; }

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-text { color: var(--text-dim); font-style: italic; margin-bottom: 1.25rem; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { color: var(--text-dim); font-size: 0.82rem; }

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: var(--border);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 3rem;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; }
.footer-brand p { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.85rem; color: var(--text-dim); margin-top: 0.25rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: var(--text-dim); font-size: 0.82rem; }

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-link { display: block; padding: 0.75rem 1rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 45px; }
  .timeline-item::before { left: 7px; }
}
