:root {
  --bg-main: #111827;
  --bg-soft: #1F2937;
  --card-bg: #f7f7f9;
  --text-main: #E5E7EB;
  --text-muted: #9CA3AF;
  --accent: #2563EB;
  --border-soft: #2a2f3a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

section {
  margin-block: 80px;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  transition: color 0.2s ease;
}

a:hover {
  color: white;
}

ul {
  padding-left: 20px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Nav */
.nav-bar {
  display: flex;
  justify-content: center;
}

.nav-bar ul {
  display: flex;
  gap: 48px;
  list-style: none;
  padding-left: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-bar a {
  text-decoration: none;
  color: whitesmoke;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Hero */
#home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  min-height: 70vh;
}

.hero-left,
.hero-right {
  flex: 1;
  min-width: 280px;
}

.hero-right {
  padding-top: 0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.hero-img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent);
  display: block;
  margin: 0 auto;
}

.button-container {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.button-cta a {
  text-decoration: none;
  color: var(--text-main);
}

.button-cta:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

/* About */
.about-container {
  margin-bottom: 32px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.technical-skills,
.tools,
.progress {
  background-color: var(--bg-soft);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}

.technical-skills h3,
.tools h3,
.progress h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Cards (Labs + Projects) */
.project-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 20px;
  background-color: var(--card-bg);
  padding: 24px;
  color: var(--bg-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.project-card h3 {
  color: var(--bg-main);
}

.project-card p {
  color: var(--bg-main);
}

.project-card a {
  text-decoration: none;
  color: black;
}

.status {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-card.disabled {
  opacity: 0.75;
}

.project-card.disabled a {
  pointer-events: none;
  cursor: not-allowed;
}

/* Contact */
.contact-container {
  background-color: var(--bg-soft);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}

.contact-container p {
  color: var(--text-main);
}

.contact-container a {
  text-decoration: none;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border-soft);
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .project-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #home {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .nav-bar ul {
    gap: 16px;
  }

  .button-container {
    justify-content: center;
  }

  .hero-img {
    width: 220px;
    height: 220px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}