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

:root {
  --orange: #FF9900;
  --orange-dim: #cc7a00;
  --bg: #0a0e17;
  --bg2: #111827;
  --bg3: #1a2235;
  --card: #141c2e;
  --border: #1e2d4a;
  --text: #e2e8f0;
  --text-dim: #8892a4;
  --white: #ffffff;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.btn-nav {
  background: var(--orange) !important;
  color: var(--bg) !important;
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--orange-dim) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text);
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg3); color: var(--orange); }
.mobile-menu.open { display: block; }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,153,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-greeting {
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text-dim);
  min-height: 2.5rem;
  margin-bottom: 1.5rem;
}

.typed-text { color: var(--orange); font-weight: 600; }
.cursor {
  color: var(--orange);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.badge {
  background: rgba(255,153,0,0.12);
  color: var(--orange);
  border: 1px solid rgba(255,153,0,0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--bg);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--orange-dim); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 3px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite;
}
@keyframes scroll-wheel { 0%,100% { transform: translateY(0); opacity:1; } 50% { transform: translateY(6px); opacity:0.3; } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }

/* =============================================
   SECTION COMMON
   ============================================= */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-title span { color: var(--orange); }

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* =============================================
   ABOUT
   ============================================= */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.about-avatar { text-align: center; }

.avatar-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  padding: 3px;
  margin: 0 auto 1.5rem;
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
}

.avatar-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
}
.stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.75;
}
.about-text strong { color: var(--text); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hi-icon { font-size: 1rem; }

/* =============================================
   SKILLS
   ============================================= */
#skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover {
  border-color: rgba(255,153,0,0.35);
  transform: translateY(-3px);
}

.skill-card-icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
}
.tag.expert {
  background: rgba(255,153,0,0.1);
  border-color: rgba(255,153,0,0.3);
  color: var(--orange);
}
.tag.learning {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  color: #a78bfa;
}

.learning-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 1.5rem;
  font-style: italic;
}

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
#experience { background: var(--bg2); }

.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.tl-dot {
  position: absolute;
  left: -2.5rem;
  top: 1.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border);
}
.tl-dot.highlight {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(255,153,0,0.5);
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.tl-card:hover { border-color: rgba(255,153,0,0.3); }
.tl-card.featured {
  border-color: rgba(255,153,0,0.4);
  background: linear-gradient(135deg, rgba(255,153,0,0.05) 0%, var(--card) 100%);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tl-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); }
.tl-company { font-size: 0.85rem; color: var(--orange); margin-top: 0.2rem; }
.tl-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

.tl-bullets { margin-bottom: 1rem; }
.tl-bullets li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
  line-height: 1.6;
}
.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.75rem;
  top: 0.3rem;
}

.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tl-tags span {
  font-size: 0.72rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
#certifications { background: var(--bg); }

.cert-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin: 2.5rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--orange);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, border-color 0.2s;
}
.cert-card:hover { transform: translateY(-3px); }

.cert-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace;
}

.cert-card p { font-size: 0.88rem; color: var(--text); font-weight: 600; line-height: 1.4; }
.cert-card span { font-size: 0.72rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

/* Colors per tier */
.cert-card.pro { border-color: rgba(255,153,0,0.3); }
.cert-card.pro:hover { border-color: rgba(255,153,0,0.6); }
.cert-card.pro .cert-badge { background: rgba(255,153,0,0.15); color: var(--orange); }

.cert-card.specialty { border-color: rgba(139,92,246,0.3); }
.cert-card.specialty:hover { border-color: rgba(139,92,246,0.6); }
.cert-card.specialty .cert-badge { background: rgba(139,92,246,0.15); color: #a78bfa; }

.cert-card.assoc { border-color: rgba(59,130,246,0.3); }
.cert-card.assoc:hover { border-color: rgba(59,130,246,0.6); }
.cert-card.assoc .cert-badge { background: rgba(59,130,246,0.15); color: #93c5fd; }

.cert-card.found { border-color: rgba(34,197,94,0.3); }
.cert-card.found:hover { border-color: rgba(34,197,94,0.6); }
.cert-card.found .cert-badge { background: rgba(34,197,94,0.15); color: #86efac; }

.cert-card.gcp { border-color: rgba(59,130,246,0.3); }
.cert-card.gcp:hover { border-color: rgba(59,130,246,0.6); }
.cert-card.gcp .cert-badge { background: rgba(59,130,246,0.15); color: #93c5fd; }

.cert-card.azure { border-color: rgba(100,149,237,0.3); }
.cert-card.azure:hover { border-color: rgba(100,149,237,0.6); }
.cert-card.azure .cert-badge { background: rgba(100,149,237,0.15); color: #a8c4f5; }

/* =============================================
   CONTACT
   ============================================= */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { transform: translateY(-3px); }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.contact-icon.linkedin { background: #0a66c2; color: #fff; font-size: 1.3rem; }
.contact-icon.github { background: #161b22; color: #fff; border: 1px solid #30363d; }
.contact-icon.youtube { background: #ff0000; color: #fff; }

.contact-card h4 { font-size: 0.95rem; color: var(--white); font-weight: 700; }
.contact-card p { font-size: 0.82rem; color: var(--text-dim); }
.contact-card:hover .linkedin { box-shadow: 0 0 12px rgba(10,102,194,0.5); }
.contact-card:hover .github { box-shadow: 0 0 12px rgba(255,255,255,0.1); }
.contact-card:hover .youtube { box-shadow: 0 0 12px rgba(255,0,0,0.4); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}
footer strong { color: var(--orange); }

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-highlights { grid-template-columns: 1fr; }

  .timeline { padding-left: 1.5rem; }
  .tl-dot { left: -1.5rem; }

  .tl-header { flex-direction: column; }

  section { padding: 4rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
