/* ═══════════════════════════════════════════════════════════
   DILPA SIRIMANNA — PERSONAL WEBSITE STYLES
   Design: Warm & Creative Professional
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  --navy:        #1B2B4B;
  --navy-light:  #243660;
  --gold:        #C9974A;
  --gold-light:  #E8B96A;
  --cream:       #FAF8F4;
  --warm-white:  #FFFFFF;
  --teal:        #2D7A7A;
  --teal-light:  #3A9999;
  --blush:       #F5EDE3;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A4A6A;
  --text-light:  #8A8AA8;
  --border:      #E8E0D4;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:   0 2px 8px rgba(27,43,75,0.08);
  --shadow-md:   0 8px 30px rgba(27,43,75,0.12);
  --shadow-lg:   0 20px 60px rgba(27,43,75,0.16);
  --shadow-gold: 0 8px 30px rgba(201,151,74,0.3);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --transition: 0.3s 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; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

/* ─── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-light { background: var(--cream); }
.section-warm  { background: var(--blush); }
.section-dark  { background: var(--navy); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── Section headers ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(201,151,74,0.15);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag.light { background: rgba(201,151,74,0.2); color: var(--gold-light); }
.section-title { color: var(--text-dark); margin-bottom: 12px; }
.section-title.light { color: #fff; }
.section-desc { color: var(--text-mid); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-desc.light { color: rgba(255,255,255,0.7); }

/* ─── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-initials {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  transition: color var(--transition);
}
.navbar.scrolled .logo-name { color: var(--navy); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: all var(--transition);
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}
.navbar.scrolled .nav-link { color: var(--text-mid); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: var(--navy);
  background: rgba(27,43,75,0.08);
}
.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 10px 22px;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.navbar.scrolled .nav-toggle span { background: var(--navy); }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: #080f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 80px;
}

/* Premium layered background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(36,54,96,0.9) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 80%, rgba(18,38,72,0.8) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(201,151,74,0.07) 0%, transparent 50%);
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Animated glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,151,74,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-duration: 14s;
}
.hero-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,122,122,0.1) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-duration: 18s;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,151,74,0.08) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-duration: 10s;
  animation-delay: -7s;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(15px, 10px) scale(1.02); }
}

/* Subtle grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

/* Profile */
.hero-profile-wrap {
  position: relative;
  width: 140px; height: 140px;
}
.hero-profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: spinRing 10s linear infinite;
  opacity: 0.7;
}
.hero-profile-ring-2 {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(201,151,74,0.25);
  animation: spinRing 16s linear infinite reverse;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.hero-profile-img {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,151,74,0.4) 0%, rgba(45,122,122,0.4) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(201,151,74,0.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 50px rgba(201,151,74,0.3), 0 0 100px rgba(201,151,74,0.12);
}
.hero-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-initials {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

/* Hero text block — spaced flex column */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

/* Hero text */
.hero-greeting {
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}
.hero-name {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -1px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,151,74,0.1);
  border: 1px solid rgba(201,151,74,0.25);
  padding: 10px 28px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}
.hero-title {
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-serif);
  letter-spacing: 0.3px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.8;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


/* ─── Rotating stats ticker ─────────────────────────────── */
.hero-ticker-wrap {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ticker-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}
.hero-ticker {
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  position: relative;
}
.hero-ticker::before, .hero-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.hero-ticker::before {
  left: 0;
  background: linear-gradient(to right, rgba(8,15,30,0.7), transparent);
}
.hero-ticker::after {
  right: 0;
  background: linear-gradient(to left, rgba(8,15,30,0.7), transparent);
}
.ticker-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ticker-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 22px 60px;
  flex-wrap: nowrap;
}
.ticker-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.ticker-stat + .ticker-stat {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 48px;
}
.ticker-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  white-space: nowrap;
}
.ticker-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.ticker-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.ticker-dot.active {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}

/* Brands strip */
.hero-brands {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -8px;
}
.hero-brands-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-right: 4px;
}
.brand-chip {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}
.brand-chip:hover {
  border-color: rgba(201,151,74,0.4);
  color: var(--gold-light);
  background: rgba(201,151,74,0.07);
}

/* Legacy .stat classes kept for backward compat */
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-plus { color: var(--gold-light); font-weight: 700; font-size: 1.2rem; }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Actions */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Social */
.hero-social { display: flex; gap: 10px; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDrop 1.5s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.7); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════
   HIGHLIGHTS
   ════════════════════════════════════════════════════════════════ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 1rem;
}
.highlight-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,151,74,0.3);
}
.highlight-icon {
  width: 48px; height: 48px;
  background: rgba(201,151,74,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.highlight-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.highlight-card p { color: var(--text-mid); font-size: 0.92rem; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ════════════════════════════════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cert-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-badge {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cert-badge.in-progress {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}
.cert-info h4 { font-size: 0.88rem; color: var(--navy); margin-bottom: 4px; font-family: var(--font-sans); font-weight: 600; }
.cert-info span { font-size: 0.78rem; color: var(--text-light); }
.cert-status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(45,122,122,0.1);
  color: var(--teal);
}
.cert-status.in-progress { background: rgba(201,151,74,0.1); color: var(--gold); }
.cert-has-img { border-color: rgba(201,151,74,0.3); }
.cert-has-img:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(201,151,74,0.2); }
.cert-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }
.cert-view-hint { font-size: 0.7rem; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }

/* ════════════════════════════════════════════════════════════════
   SKILLS
   ════════════════════════════════════════════════════════════════ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.skill-category {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.skill-category:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-cat-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-cat-icon {
  width: 36px; height: 36px;
  background: rgba(201,151,74,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}
.skill-cat-header h3 { font-size: 1rem; color: var(--navy); font-family: var(--font-sans); }
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skill-tag {
  padding: 5px 12px;
  background: var(--blush);
  color: var(--text-mid);
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.skill-tag:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   TIMELINE (JOURNEY)
   ════════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(201,151,74,0.3);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 50px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translate(-50%, 0);
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}
.timeline-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 100%;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.timeline-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,151,74,0.4);
  transform: translateY(-2px);
}
.timeline-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.timeline-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(201,151,74,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.timeline-img img { width: 100%; height: 100%; object-fit: cover; }
.timeline-title { color: #fff; font-size: 1rem; margin-bottom: 2px; font-family: var(--font-sans); font-weight: 600; }
.timeline-company { color: var(--gold-light); font-size: 0.88rem; font-weight: 500; }
.timeline-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 12px;
}
.timeline-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
}
.timeline-desc { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.6; }
.timeline-desc ul { padding-left: 0; }
.timeline-desc li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.timeline-desc li::before { content: '▸'; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* ════════════════════════════════════════════════════════════════
   EDUCATION
   ════════════════════════════════════════════════════════════════ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.edu-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.edu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.edu-card-top {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.edu-img {
  width: 56px; height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.edu-img img { width: 100%; height: 100%; object-fit: cover; }
.edu-degree { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.edu-institution { color: var(--gold-light); font-size: 0.88rem; font-weight: 500; }
.edu-period { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 4px; }
.edu-card-body { padding: 20px 28px; }
.edu-grade {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: rgba(201,151,74,0.1);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.edu-desc { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.edu-cert-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.edu-cert-btn:hover { background: var(--gold); transform: translateX(2px); }

/* ════════════════════════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════════════════════════ */
.projects-filter {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card.hidden { display: none; }
.project-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-type-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}
.project-icon-placeholder { color: rgba(255,255,255,0.3); font-size: 3rem; }
.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; font-family: var(--font-sans); font-weight: 700; }
.project-body p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.project-tag {
  padding: 3px 10px;
  background: var(--blush);
  color: var(--text-mid);
  border-radius: 10px;
  font-size: 0.72rem;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-top: 4px;
}
.project-link:hover { color: var(--gold); gap: 10px; }

/* ════════════════════════════════════════════════════════════════
   OTHER
   ════════════════════════════════════════════════════════════════ */
.other-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.other-tab {
  padding: 9px 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.other-tab:hover { border-color: var(--gold); color: var(--gold); }
.other-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.other-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; gap: 14px; align-items: flex-start;
}
.other-card.hidden { display: none; }
.other-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.other-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(27,43,75,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.other-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.other-card h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 3px; font-family: var(--font-sans); }
.other-card .org { color: var(--gold); font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.other-card .period { color: var(--text-light); font-size: 0.78rem; margin-bottom: 6px; }
.other-card p { color: var(--text-mid); font-size: 0.85rem; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: all var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(201,151,74,0.4); }
.contact-card i {
  width: 44px; height: 44px;
  background: rgba(201,151,74,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-card h4 { color: #fff; font-size: 0.82rem; font-family: var(--font-sans); margin-bottom: 2px; opacity: 0.6; }
.contact-card a, .contact-card span { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.contact-card a:hover { color: var(--gold-light); }

.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(8px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(201,151,74,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-feedback {
  text-align: center;
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 22px;
}
.form-feedback.success { color: #6fcf97; }
.form-feedback.error { color: #eb5757; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.footer {
  background: #0D1828;
  padding: 24px 0;
}
.footer-content {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-links { display: flex; gap: 14px; }
.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   CHATBOT
   ════════════════════════════════════════════════════════════════ */
.chatbot-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  z-index: 9000;
  transition: all var(--transition);
}
.chatbot-fab:hover { transform: scale(1.1); }
.chatbot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.3); }
}
.chatbot-window {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 360px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9001;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
  max-height: 540px;
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chatbot-avatar {
  width: 40px; height: 40px;
  background: rgba(201,151,74,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
}
.chatbot-header h4 { color: #fff; font-size: 0.95rem; font-family: var(--font-sans); margin-bottom: 2px; }
.chatbot-status { color: #6fcf97; font-size: 0.75rem; }
.chatbot-close {
  margin-left: auto;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 1rem;
  transition: color var(--transition);
}
.chatbot-close:hover { color: #fff; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 280px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--blush);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}
.suggestion-chip {
  padding: 5px 12px;
  background: var(--blush);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition);
}
.suggestion-chip:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.chatbot-input-row {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.chatbot-input-row input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.88rem;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}
.chatbot-input-row input:focus { border-color: var(--gold); }
.chatbot-input-row button {
  width: 38px; height: 38px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.chatbot-input-row button:hover { background: var(--gold-light); transform: scale(1.05); }
.chat-typing .chat-bubble {
  display: flex; align-items: center; gap: 4px;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* ════════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 90vw; max-height: 90vh;
  position: relative;
  overflow: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--navy); border: none;
  color: #fff; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.modal-close:hover { background: var(--gold); }
#certModalImg { max-width: 700px; width: 100%; border-radius: var(--radius-sm); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding: 0 0 0 60px;
  }
  .timeline-dot { left: 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 6px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }
  .nav-links.open { right: 0; }
  .nav-link { color: rgba(255,255,255,0.8); font-size: 1rem; width: 100%; }
  .nav-toggle { display: flex; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 20px; }
  .stat-divider { width: 60px; height: 1px; }
  .chatbot-window { width: calc(100vw - 56px); right: 14px; }
}
