/* =========================
   THEME VARIABLES
========================= */
:root {
  --bg: #f7f9fb;
  --text: #222;
  --card: #ffffff;
  --card-text: #444;
  --footer: #323232;
  --nav-text: #fff;

  --accent: #3ec6e0;
  --accent-glow: rgba(62,198,224,0.35);
}

body.dark-mode {
  --bg: #121212;
  --text: #f5f5f5;
  --card: rgba(30,30,30,0.85);
  --card-text: #d6d6d6;
  --footer: #323232;

  --accent: #3ec6e0;
  --accent-glow: rgba(62,198,224,0.6);
}

/* =========================
   GLOBAL
========================= */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  align-items: center;
  padding: 24px 4vw;
}

.logo {
  height: 70px;
}

.nav-links {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* =========================
   ADVANCED TOGGLE BUTTON
========================= */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  margin-left: 10px;
  transition: 0.3s;
}

.theme-toggle::before {
  content: "🌙";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

body.dark-mode .theme-toggle::before {
  transform: translateX(30px);
  content: "☀";
}

/* =========================
   MOBILE NAV
========================= */
.nav-toggle {
  display: none;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #005bea 0%, #0b73ef 100%);
  padding: 80px 20px;
  transform: translateX(100%);
}

.side-menu a {
  display: block;
  color: #fff;
  margin-bottom: 18px;
}

/* =========================
   GLASS CARDS + GLOW
========================= */
.portfolio-card,
.feature,
.team-card,
.user-card,
.glass-card {
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.portfolio-card:hover,
.feature:hover,
.team-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* TEXT */
.portfolio-card p,
.feature p,
.team-card p {
  color: var(--card-text);
}

/* =========================
   BUTTONS
========================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #005bea, #3ec6e0);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 32px;
  text-decoration: none;
  transition: 0.25s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 64px;
  background: var(--footer);
  color: #fff;
  text-align: center;
  padding: 32px 0;
}

/* =========================
   DARK MODE BACKGROUND EFFECT
========================= */
body.dark-mode::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(62,198,224,0.08), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(62,198,224,0.08), transparent 40%);
  z-index: -1;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}