/* ═══════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════ */
:root {
  --bg:         #0a0e1a;
  --bg-dark:    #060910;
  --bg-card:    #0f1628;
  --accent:     #00d4ff;
  --accent-2:   #7c3aed;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     rgba(255,255,255,0.07);
  --glow:       0 0 24px rgba(0,212,255,0.25);
  --radius:     12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6, 9, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 5rem;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--accent); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section {
  min-height: 100vh;
  padding: 7rem 0 5rem;
}

.section-dark { background: var(--bg-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.section-title span { color: var(--accent); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* subtle grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(0,212,255,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(124,58,237,0.09) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1100px;
  padding: 0 2rem;
  width: 100%;
}

.hero-content {
  position: relative;
  text-align: left;
  flex: 1;
  max-width: 580px;
}

/* photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 40px rgba(0,212,255,0.25), 0 0 80px rgba(124,58,237,0.15);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0,212,255,0.25), 0 0 80px rgba(124,58,237,0.15); }
  50%       { box-shadow: 0 0 60px rgba(0,212,255,0.4),  0 0 100px rgba(124,58,237,0.25); }
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-wrapper {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  min-height: 2rem;
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 0 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  display: inline-block;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #00b8d9;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2.25rem;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.25rem;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(148,163,184,0.4);
  border-radius: 11px;
  margin: 0 auto 0.5rem;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s ease infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

.about-text strong { color: var(--text); }

.about-details {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.detail {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  align-items: center;
}

.detail-label {
  color: var(--accent);
  font-weight: 600;
  min-width: 75px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.detail a:hover { color: var(--accent); }

.about-skills h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.82rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.skill-badge {
  padding: 0.35rem 0.9rem;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--accent);
  transition: all 0.2s;
  cursor: default;
}

.skill-badge:hover {
  background: rgba(0,212,255,0.14);
  box-shadow: var(--glow);
}

.certs-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.cert-item:hover { border-color: rgba(245,158,11,0.3); }

.cert-icon {
  color: #f59e0b;
  font-size: 1rem;
  flex-shrink: 0;
}

/* fade-in util */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   TIMELINE
═══════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), rgba(124,58,237,0.1));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 18px;
  height: 18px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: var(--glow);
  transition: background 0.3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.timeline-content:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.timeline-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-badge.current {
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.85rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-tags span {
  padding: 0.2rem 0.65rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  font-size: 0.73rem;
  color: #a78bfa;
  font-weight: 500;
}

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover::before { opacity: 1; }

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.project-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  padding: 0.2rem 0.65rem;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 12px;
  font-size: 0.73rem;
  color: var(--accent);
  font-weight: 500;
}

/* stagger project cards */
.project-card:nth-child(2) { transition-delay: 0.07s; }
.project-card:nth-child(3) { transition-delay: 0.14s; }
.project-card:nth-child(4) { transition-delay: 0.21s; }
.project-card:nth-child(5) { transition-delay: 0.28s; }
.project-card:nth-child(6) { transition-delay: 0.35s; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148,163,184,0.45);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-dark);
}

.footer-sub {
  font-size: 0.73rem;
  margin-top: 0.3rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .hero-content { text-align: center; }

  .hero-cta      { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-description { margin: 0 auto 2.5rem; }

  .hero-photo-ring {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .navbar         { padding: 1rem 1.5rem; }
  .navbar.scrolled{ padding: 0.75rem 1.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: rgba(6, 9, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .hero-stats { gap: 1.5rem; }

  .timeline::before { left: 16px; }
  .timeline-item    { padding-left: 50px; }
  .timeline-dot     { left: 8px; }

  .timeline-header { flex-direction: column; gap: 0.5rem; }

  .projects-grid { grid-template-columns: 1fr; }
}
