/* =========================
   ROOT VARIABLES (THEME v2)
========================= */
:root {
  --bg: #0b0f17;
  --card: rgba(22, 27, 34, 0.75);
  --text: #e6edf3;
  --muted: #9aa4b2;
  --border: rgba(255, 255, 255, 0.12);
  --primary: #5cc8ff;
  --accent: #7c5cff;

  --shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --transition: 0.3s ease;
}

/* LIGHT MODE */
body.light {
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #0d1117;
  --muted: #57606a;
  --border: rgba(0, 0, 0, 0.1);
  --primary: #0969da;
  --accent: #1a7f37;

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

/* =========================
   GLOBAL RESET (MODERN)
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #111827, var(--bg));
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* =========================
   NAVBAR (GLASS PREMIUM)
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar nav a:hover {
  color: var(--primary);
}

.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

/* =========================
   THEME BUTTON
========================= */
#themeToggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

#themeToggle:hover {
  transform: scale(1.08);
}

/* =========================
   HERO (FAANG STYLE IMPACT)
========================= */
.hero {
  text-align: center;
  padding: 100px 8%;
  animation: fadeUp 0.8s ease;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 10px;
}

/* =========================
   BUTTONS (PREMIUM)
========================= */
.hero-buttons {
  margin-top: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  margin: 6px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

/* =========================
   ABOUT
========================= */
.about {
  padding: 60px 8%;
  text-align: center;
}

.about h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.about p {
  color: var(--muted);
  max-width: 750px;
  margin: auto;
}

/* =========================
   GRID (PROJECTS)
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 60px 8%;
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 25px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 50px;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE (FIXED)
========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 30px 5%;
  }
}
