/* =========================
   THEME VARIABLES
========================= */
:root {
  --accent: #14b8a6;
  --accent-hover: #0d9488;

  /* Light */
  --bg-color: #ffffff;
  --bg-alt-color: #f8fafc;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;

  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.dark {
  --bg-color: #020617;
  --bg-alt-color: #0f172a;
  --text-color: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: #020617;
  --border-color: #1e293b;

  --shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.65;
}

/* =========================
   LAYOUT
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

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

.section-title {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-text {
  max-width: 720px;
  color: var(--text-muted);
}

/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

body:not(.dark) .header {
  background: rgba(255, 255, 255, 0.75);
}

body.dark .header {
  background: rgba(2, 6, 23, 0.85);
}

.header-content {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-color);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

#theme-toggle {
  margin-left: 2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  color: var(--text-color);
}

#theme-toggle:hover {
  background-color: var(--bg-alt-color);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
}

body:not(.dark) .hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body.dark .hero {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.1rem;
  font-weight: 700;
}

.hero h2 {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0.6rem 0 1.6rem;
}

.hero-text {
  max-width: 620px;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.2rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

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

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

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

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

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent);
  box-shadow: 0 25px 60px rgba(20, 184, 166, 0.35);
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.highlight-card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* =========================
   SKILLS
========================= */
.skills-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.skill-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-badges span {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background-color: var(--bg-alt-color);
  border: 1px solid var(--border-color);
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.project-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.project-tech {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.projects-more {
  margin-top: 3rem;
  text-align: center;
}

/* =========================
   CONTACT
========================= */
.contact-text {
  max-width: 620px;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.8rem;
  border-radius: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-alt-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 500;
  color: var(--accent);
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image img {
    width: 260px;
    height: 260px;
  }

  nav {
    display: none;
  }
}
.projects-more a {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.projects-more a:hover {
  border-color: var(--accent);
}
/* ===== Mobile Menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: 0.3s ease;
}

/* Mobile layout */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    padding: 1.5rem 0;
  }

  .nav-links a {
    padding: 0.75rem 0;
    margin: 0;
    text-align: center;
    font-size: 1rem;
  }

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

  /* hide desktop nav spacing */
  nav a::after {
    display: none;
  }
}
/* ===== Header Layout Fix ===== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== Hamburger Button ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
}

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

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

/* ===== Desktop Nav (force visible) ===== */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    position: static;
    background: none;
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }
}
