:root {
  --primary: #2e7d32;
  --accent: #ffb300;
  --bg: #f4fdf6;
  --text: #222;
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
}

/* Dark Mode Variables */
body.dark {
  --bg: #0f2027;
  --text: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

/* Underline hover effect */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Controls (Dark mode + Language + Menu toggle) */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls button {
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  transition: 0.3s;
}

.controls button:hover {
  transform: scale(1.05);
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  padding: 3rem;
  border-radius: 20px;
  max-width: 700px;
  animation: fadeIn 1.5s ease;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  color: #eee;
}

/* ================= SECTIONS ================= */

.section {
  padding: 5rem 2rem;
  text-align: center;
}

.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  border: 1px solid var(--glass-border);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* ================= GLASS EFFECT ================= */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* ================= BUTTON ================= */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,179,0,0.4);
}

/* ================= FOOTER ================= */

footer {
  padding: 1.5rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE ================= */

@media(max-width: 768px){

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
    border-radius: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* ================= WHATSAPP ================= */

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 24px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}