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

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fc;
  --color-bg-card: #ffffff;
  --color-surface: #f0f2f5;
  --color-border: #e2e5eb;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-subtle: #94a3b8;
  --google-blue: #3b82f6;
  --google-red: #ef4444;
  --google-yellow: #f59e0b;
  --google-green: #10b981;
  --color-accent: var(--google-blue);
  --color-accent-hover: #2563eb;
  --color-accent-bg: #eff6ff;
  --color-accent-subtle: #dbeafe;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--google-blue);
  -webkit-text-fill-color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 24px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.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(--color-text-secondary);
  border-radius: 1px;
  transition: var(--transition);
}

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #e8f0fe 100%);
}

.hero-content {
  max-width: 1080px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-text {
  flex: 1;
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--google-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

.google-wordmark {
  font-family: 'Product Sans', var(--font-display);
  font-weight: 500;
}

.g-blue { color: var(--google-blue); }
.g-red { color: var(--google-red); }
.g-yellow { color: var(--google-yellow); }
.g-green { color: var(--google-green); }

.qxo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  color: #0066FF;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-subtle);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--google-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-2);
}

.btn-secondary {
  background: transparent;
  color: var(--google-blue);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-accent-bg);
  border-color: var(--color-accent-bg);
}

.hero-image {
  flex-shrink: 0;
}

.image-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), 0 8px 16px rgba(0, 0, 0, 0.06);
  border: 4px solid var(--color-bg);
  outline: 3px solid var(--color-accent-subtle);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  animation: float 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-text-subtle);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--color-text-subtle);
  border-radius: 2px;
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ===== Sections ===== */
section {
  padding: 96px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  color: var(--color-text);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--google-blue);
  border-radius: 2px;
}

/* ===== About ===== */
#about {
  background: var(--color-bg-alt);
}

.about-content p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  max-width: 720px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--google-blue);
  margin-bottom: 4px;
}

.stat:nth-child(2) .stat-number { color: var(--google-red); }
.stat:nth-child(3) .stat-number { color: var(--google-yellow); }
.stat:nth-child(4) .stat-number { color: var(--google-green); }

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--google-blue);
  z-index: 1;
}

.timeline-item:nth-child(2) .timeline-marker { border-color: var(--google-red); }
.timeline-item:nth-child(3) .timeline-marker { border-color: var(--google-yellow); }
.timeline-item:nth-child(4) .timeline-marker { border-color: var(--google-green); }
.timeline-item:nth-child(5) .timeline-marker { border-color: var(--google-blue); }

.timeline-content {
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--color-accent-subtle);
}

.timeline-item:first-child .timeline-content {
  border-left: 3px solid var(--google-blue);
}

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

.company-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.company-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 4px;
}

.company-logo.education-logo {
  width: 48px;
  height: 48px;
}

.qxo-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.timeline-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
}

.company {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--google-blue);
  font-weight: 500;
  margin-top: 2px;
}

.team {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin-top: 4px;
}

.timeline-meta {
  text-align: right;
  flex-shrink: 0;
}

.location,
.date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.date {
  margin-top: 2px;
  color: var(--color-text-secondary);
}

.badge-current {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--google-blue);
  background: var(--color-accent-bg);
  border-radius: 12px;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--google-blue);
  border-radius: 50%;
}

.timeline-details li strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== Projects ===== */
#projects {
  background: var(--color-bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: var(--color-accent-subtle);
}

.project-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.project-card:nth-child(1) .project-icon { color: var(--google-blue); }
.project-card:nth-child(2) .project-icon { color: var(--google-red); }
.project-card:nth-child(3) .project-icon { color: var(--google-green); }

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-text);
}

.project-type {
  font-size: 0.8rem;
  color: var(--google-blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.project-card p:last-of-type {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--color-accent-bg);
  color: var(--google-blue);
  font-weight: 500;
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border);
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--color-surface);
  border: none;
  color: var(--color-text-secondary);
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}

.skill-tag:hover {
  background: var(--color-accent-bg);
  color: var(--google-blue);
}

.skill-tag--highlight {
  background: var(--google-blue);
  color: #fff;
  font-weight: 500;
}

.skill-tag--highlight:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* ===== Education ===== */
#education {
  background: var(--color-bg-alt);
}

.education-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.education-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.degree {
  font-size: 1rem;
  color: var(--google-blue);
  margin-top: 4px;
  font-weight: 500;
}

.edu-location {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  margin-top: 4px;
}

.edu-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.education-badge {
  width: 56px;
  height: 56px;
  color: var(--google-yellow);
  flex-shrink: 0;
}

.coursework,
.achievements {
  margin-top: 24px;
}

.coursework h4,
.achievements h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-tags span {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.achievements p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* ===== Contact ===== */
.contact-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-top: -32px;
  margin-bottom: 40px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--color-bg-card);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-2);
  color: var(--google-blue);
  transform: translateY(-2px);
  border-color: var(--color-accent-subtle);
}

.contact-card svg {
  width: 28px;
  height: 28px;
}

.contact-card span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Footer ===== */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-bg-alt);
}

footer p {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .image-wrapper {
    width: 220px;
    height: 220px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contact-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
