:root {
  --bg: #f8fafc;
  --bg-secondary: #ffffff;

  --text: #111827;
  --text-secondary: #6b7280;

  --border: #e5e7eb;

  --accent: #6366f1;
  --accent-dark: #4f46e5;

  --card: #ffffff;

  --shadow:
    0 20px 50px rgba(15, 23, 42, 0.08);
}


/* Dark Mode */

body.dark {
  --bg: #0b0f19;
  --bg-secondary: #111827;

  --text: #f9fafb;
  --text-secondary: #9ca3af;

  --border: #1f2937;

  --card: #111827;

  --shadow:
    0 20px 50px rgba(0, 0, 0, 0.3);
}


/* Reset */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: "Inter", sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.6;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}


a {
  color: inherit;
  text-decoration: none;
}


button {
  border: none;
  cursor: pointer;
}


.container {
  width: min(1120px, 90%);
  margin: auto;
}


/* Header */

.header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  backdrop-filter: blur(12px);

  background:
    color-mix(
      in srgb,
      var(--bg) 85%,
      transparent
    );

  border-bottom:
    1px solid var(--border);
}


.navbar {
  height: 75px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}


.logo {
  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 1.5rem;

  font-weight: 700;
}


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


.nav-links {
  display: flex;

  gap: 28px;
}


.nav-links a {
  color: var(--text-secondary);

  font-size: 0.9rem;

  transition: 0.3s;
}


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


.nav-actions {
  display: flex;

  align-items: center;

  gap: 12px;
}


.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;

  border-radius: 10px;

  background: var(--card);

  color: var(--text);

  border:
    1px solid var(--border);

  font-size: 1rem;
}


.menu-toggle {
  display: none;
}


/* Hero */

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  padding:
    140px 0 80px;
}


.hero-container {
  display: grid;

  grid-template-columns:
    1.1fr 0.9fr;

  gap: 70px;

  align-items: center;
}


.availability {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding:
    8px 14px;

  border-radius: 100px;

  background:
    rgba(99, 102, 241, 0.1);

  color: var(--accent);

  font-size: 0.85rem;

  margin-bottom: 25px;
}


.availability span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;
}


.hero h1 {
  font-family:
    "Space Grotesk",
    sans-serif;

  font-size:
    clamp(2.8rem, 6vw, 5.2rem);

  line-height: 1.05;

  letter-spacing: -2px;

  margin-bottom: 25px;
}


.hero h1 span {
  color: var(--accent);
}


.hero-description {
  max-width: 620px;

  color: var(--text-secondary);

  font-size: 1.05rem;

  margin-bottom: 30px;
}


.hero-buttons {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;

  margin-bottom: 28px;
}


.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding:
    14px 20px;

  border-radius: 10px;

  font-weight: 600;

  transition: 0.3s;
}


.btn-primary {
  background: var(--accent);

  color: white;
}


.btn-primary:hover {
  background: var(--accent-dark);

  transform:
    translateY(-2px);
}


.btn-secondary {
  border:
    1px solid var(--border);

  background: var(--card);
}


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

  transform:
    translateY(-2px);
}


.hero-socials {
  display: flex;

  gap: 12px;
}


.hero-socials a {
  width: 40px;
  height: 40px;

  display: grid;

  place-items: center;

  border:
    1px solid var(--border);

  border-radius: 10px;

  transition: 0.3s;
}


.hero-socials a:hover {
  color: var(--accent);

  border-color: var(--accent);
}


/* Code Window */

.hero-visual {
  position: relative;
}


.code-window {
  background: #111827;

  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25);
}


.window-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding:
    15px 20px;

  background: #1f2937;
}


.window-header p {
  color: #9ca3af;

  font-size: 0.8rem;
}


.window-dots {
  display: flex;

  gap: 6px;
}


.window-dots span {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #6b7280;
}


pre {
  padding: 30px;

  overflow-x: auto;
}


code {
  font-family:
    monospace;

  color: #e5e7eb;

  line-height: 1.8;
}


.purple {
  color: #c084fc;
}


.green {
  color: #86efac;
}


/* Floating Cards */

.floating-card {
  position: absolute;

  display: flex;

  align-items: center;

  gap: 12px;

  padding:
    14px 18px;

  background: var(--card);

  border:
    1px solid var(--border);

  border-radius: 12px;

  box-shadow: var(--shadow);
}


.floating-card i {
  color: var(--accent);
}


.floating-card strong {
  display: block;

  font-size: 0.85rem;
}


.floating-card span {
  color: var(--text-secondary);

  font-size: 0.75rem;
}


.card-data {
  top: -25px;
  right: -30px;
}


.card-code {
  bottom: -25px;
  left: -30px;
}


/* Sections */

.section {
  padding:
    110px 0;
}


.section-heading {
  margin-bottom: 55px;
}


.section-tag {
  display: inline-block;

  color: var(--accent);

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 1px;

  margin-bottom: 15px;
}


.section-heading h2,
.contact-container h2 {
  font-family:
    "Space Grotesk",
    sans-serif;

  font-size:
    clamp(2rem, 4vw, 3.5rem);

  line-height: 1.1;
}


/* About */

.about-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 70px;
}


.about-text {
  color: var(--text-secondary);

  font-size: 1.05rem;
}


.about-text p {
  margin-bottom: 20px;
}


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


.about-cards {
  display: grid;

  gap: 18px;
}


.info-card {
  padding: 24px;

  background: var(--card);

  border:
    1px solid var(--border);

  border-radius: 14px;

  transition: 0.3s;
}


.info-card:hover {
  transform:
    translateY(-5px);

  box-shadow: var(--shadow);
}


.info-icon {
  width: 45px;
  height: 45px;

  display: grid;

  place-items: center;

  border-radius: 10px;

  background:
    rgba(99, 102, 241, 0.1);

  color: var(--accent);

  margin-bottom: 15px;
}


.info-card h3 {
  margin-bottom: 8px;
}


.info-card p {
  color: var(--text-secondary);

  font-size: 0.9rem;
}


/* Skills */

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


.skills-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}


.skill-category {
  padding: 28px;

  background: var(--card);

  border:
    1px solid var(--border);

  border-radius: 14px;
}


.skill-category-icon {
  color: var(--accent);

  font-size: 1.4rem;

  margin-bottom: 18px;
}


.skill-category h3 {
  margin-bottom: 18px;
}


.skill-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


.skill-tags span,
.project-tech span {
  padding:
    7px 10px;

  border-radius: 7px;

  background:
    rgba(99, 102, 241, 0.08);

  color: var(--text-secondary);

  font-size: 0.75rem;
}


/* Timeline */

.timeline {
  max-width: 850px;

  margin: auto;

  border-left:
    1px solid var(--border);

  padding-left: 40px;
}


.timeline-item {
  position: relative;

  padding-bottom: 50px;
}


.timeline-dot {
  position: absolute;

  left: -46px;
  top: 5px;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: var(--accent);
}


.timeline-date {
  color: var(--accent);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 1px;
}


.timeline-content h3 {
  font-size: 1.3rem;

  margin:
    8px 0 10px;
}


.timeline-content p {
  color: var(--text-secondary);

  max-width: 650px;
}


/* Projects */

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


.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}


.project-card {
  min-height: 350px;

  padding: 28px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  background: var(--card);

  border:
    1px solid var(--border);

  border-radius: 16px;

  transition: 0.3s;
}


.project-card:hover {
  transform:
    translateY(-8px);

  box-shadow: var(--shadow);
}


.featured-project {
  border-color:
    var(--accent);
}


.project-number {
  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 3rem;

  color:
    rgba(99, 102, 241, 0.25);

  font-weight: 700;
}


.project-type {
  color: var(--accent);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 1px;
}


.project-content h3 {
  font-size: 1.4rem;

  margin:
    10px 0;
}


.project-content p {
  color: var(--text-secondary);

  margin-bottom: 25px;
}


.project-tech {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


/* Philosophy */

.philosophy-section {
  text-align: center;
}


.philosophy-container {
  max-width: 850px;
}


.quote-mark {
  font-size: 5rem;

  color: var(--accent);

  height: 70px;
}


.philosophy-container h2 {
  font-family:
    "Space Grotesk",
    sans-serif;

  font-size:
    clamp(1.8rem, 4vw, 3rem);

  line-height: 1.3;

  margin-bottom: 25px;
}


.philosophy-container > p:last-child {
  color: var(--text-secondary);
}


/* Contact */

.contact-section {
  background: var(--bg-secondary);

  text-align: center;
}


.contact-container {
  max-width: 750px;
}


.contact-container p {
  color: var(--text-secondary);

  margin:
    20px auto 30px;

  max-width: 600px;
}


.contact-buttons {
  display: flex;

  justify-content: center;

  gap: 15px;

  flex-wrap: wrap;
}


/* Footer */

.footer {
  padding:
    25px 0;

  border-top:
    1px solid var(--border);
}


.footer-content {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  color: var(--text-secondary);

  font-size: 0.85rem;
}


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


/* Responsive */

@media (max-width: 900px) {

  .hero-container,
  .about-grid {
    grid-template-columns: 1fr;
  }


  .hero {
    padding-top: 150px;
  }


  .hero-visual {
    max-width: 650px;
  }


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

}


@media (max-width: 700px) {

  .nav-links {
    position: absolute;

    top: 75px;
    left: 0;

    width: 100%;

    display: none;

    flex-direction: column;

    padding: 25px;

    background: var(--bg-secondary);

    border-bottom:
      1px solid var(--border);
  }


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


  .menu-toggle {
    display: block;
  }


  .hero h1 {
    letter-spacing: -1px;
  }


  .floating-card {
    display: none;
  }


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


  .section {
    padding:
      80px 0;
  }


  .about-grid {
    gap: 40px;
  }


  .footer-content {
    flex-direction: column;

    text-align: center;
  }


  pre {
    padding: 20px;

    font-size: 0.8rem;
  }

}


@media (max-width: 450px) {

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
  }


  .btn {
    width: 100%;
  }


  .hero h1 {
    font-size: 2.6rem;
  }


  .timeline {
    padding-left: 25px;
  }


  .timeline-dot {
    left: -31px;
  }

}

/* Active nav link (added by scroll-spy in JS) */
.nav-links a.active {
  color: var(--accent);
}

/* Scroll reveal (added by JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}