/* ================= ROOT THEME ================= */
:root {
  --bg: #f5f7fa;
  --text: #0b0d12;
  --card: rgba(255, 255, 255, 0.6);
  --border: rgba(0, 0, 0, 0.08);
  --accent: #6366f1;
}

[data-theme="dark"] {
  --bg: #0b0d12;
  --text: #f1f5f9;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
}

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 8%;
  backdrop-filter: blur(20px);
}

.nav-left {
  font-weight: 700;
  font-size: 1.3rem;
}

.nav-right a {
  margin-right: 1.2rem;
  opacity: 0.85;
}

.nav-right a:hover {
  opacity: 1;
}

#theme-toggle {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ================= HERO ================= */
.hero {
  padding: 8rem 8% 6rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtext {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* ================= SECTIONS ================= */
.section {
  padding: 5rem 8%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

/* ================= GRID & CARDS ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  padding: 1.8rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tag {
  font-size: 0.7rem;
  opacity: 0.7;
}

.tech {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.card ul {
  margin-top: 1rem;
  padding-left: 1rem;
}

.card li {
  margin-bottom: 0.4rem;
}

/* ================= TIMELINE ================= */
.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-card {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 12px;
}

/* ================= CONTACT ================= */
.contact {
  text-align: center;
  font-weight: 500;
}

/* ================= ABOUT ================= */
.about p {
  max-width: 600px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* ================= FOOTER ================= */
.footer {
  padding: 3rem 8%;
  text-align: center;
  opacity: 0.85;
}

.footer span {
  display: block;
  margin-top: 0.5rem;
}

.footer:hover {
  text-shadow: 0 0 12px var(--accent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }
  .section {
    padding: 4rem 5%;
  }
}
