/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* COLOR VARIABLES */
:root {
  --primary: #6366f1;
  --accent: #22c55e;
  --dark: #0f172a;
  --light: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
}

body {
  line-height: 1.6;
  background: var(--light);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;

  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  color: white;
}

.logo img {
  height: 45px;
  border-radius: 50%;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* DARK BUTTON */
.dark-btn {
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background: var(--primary);
  color: white;
  transition: 0.3s;
}

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

/* ================= HERO ================= */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;

  background: url("/bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;

  /* background: linear-gradient(135deg, #6366f1, #22c55e);
  color: white; */
  padding: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
}

.hero p {
  margin: 15px 0;
  font-size: 18px;
}

/* BUTTON */
.btn {
  padding: 12px 25px;
  border: none;
  background: white;
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

/* ================= SERVICES ================= */
.services {
  padding: 60px 20px;
  text-align: center;
  background: var(--light);
}

.services h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--dark);
}

/* GRID */
.service-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.card {
  padding: 40px;
  background: var(--card);
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 200px;
  border: 1px solid #e2e8f0;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--dark);
  color: #cbd5f5;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* ================= DARK MODE ================= */
body.dark {
  background: var(--dark);
  color: white;
}

body.dark .services {
  background: #020617;
}

body.dark .card {
  background: #1e293b;
  color: white;
  border: none;
}

body.dark .navbar,
body.dark .footer {
  background: #020617;
}

/* ================= MOBILE ================= */
.menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media(max-width: 768px) {

  /* NAV */
  .nav-links {
    flex-direction: column;
    background: #020617;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none;
    text-align: center;
    padding: 20px 0;
  }

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

  .menu {
    display: block;
  }

  .service-container {
    grid-template-columns: 1fr;
  }

 
  .hero {
    height: 50vh; 
    padding: 20px;

    background-position: center top; 
    background-size: cover;
  }

  .hero h1 {
    font-size: 28px; 
  }

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