
:root {
  --bg-primary: #f7faff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #dee3e7;
  --bg-nav: linear-gradient(135deg, rgb(0, 101, 168), rgb(51, 74, 88));
  --bg-hero: linear-gradient(135deg, #dbeafe, #f0f9ff);
  --bg-footer: #f1f5f9;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-nav: #dce2eb;
  --text-nav-hover: #2563eb;
  --text-hero: #eff0f3;
  --text-hero-subtitle: #dfe5ec;
  --text-accent: #2563eb;
  --text-footer: #1e40af;
  
  --border-color: #cbd5e1;
  --box-shadow: rgba(0,0,0,0.05);
  --box-shadow-hover: rgba(0,0,0,0.1);
}

body:has(#theme-toggle:checked) {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-nav: linear-gradient(135deg, #1e3a5f, #2d3748);
  --bg-hero: linear-gradient(135deg, #1e3a5f, #2d4a6e);
  --bg-footer: #1e293b;
  
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-nav: #e2e8f0;
  --text-nav-hover: #60a5fa;
  --text-hero: #f1f5f9;
  --text-hero-subtitle: #e2e8f0;
  --text-accent: #60a5fa;
  --text-footer: #93c5fd;
  
  --border-color: #334155;
  --box-shadow: rgba(0,0,0,0.3);
  --box-shadow-hover: rgba(0,0,0,0.5);
}

.theme-checkbox {
  display: none;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav {
  background: var(--bg-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  box-shadow: 0 3px 10px var(--box-shadow);
  position: sticky;
  transition: background 0.3s ease;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  background: var(--bg-nav);
  color: white;
  font-size: 1.6rem;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.logo-circle:hover {
  transform: rotate(10deg);
}

.logo-text h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #dbe0ec;
}

.logo-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #dfe7f3;
}

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu a {
  text-decoration: none;
  color: var(--text-nav);
  margin: 0 10px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.3s;
}

.menu a:hover {
  background-color: rgb(255, 255, 255);
  color: white,var(--text-nav-hover);
}

.menu .active {
  color: #cbd4e7;
  font-weight: 600;
}

.theme-switch {
  cursor: pointer;
  width: 50px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}



.theme-switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body:has(#theme-toggle:checked) .theme-switch::after {
  transform: translateX(24px);
}

.hero {
  background: var(--bg-hero);
  padding: 90px 20px;
  background-image: url('images/hero1.avif');
  border-radius: 0 0 30px 30px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: background 0.3s ease;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--text-hero);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.hero p {
  color: var(--text-hero-subtitle);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.btn {
  display: inline-block;
  background: var(--bg-nav);
  color: white;
  padding: 10px 24px;
  margin: 5px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37,99,235,0.3);
}

.featured {
  padding: 60px 20px;
  background: var(--bg-secondary);
  transition: background 0.3s ease;
}

.featured h2 {
  color:black,var(--text-accent);
  font-size: 2.6rem;
  margin-bottom: 30px;
  font-family:serif;
  transition: color 0.3s ease;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 160px;
}

.box {
  background: var(--bg-tertiary);
  border-radius: 12px;
  width: 380px;
  padding: 18px;
  box-shadow: 0 5px 12px var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px var(--box-shadow-hover);
}

.box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.9s;
}

.box:hover img {
  transform: scale(1.05);
}

.box h3 {
  color: var(--text-accent);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.box a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.box a:hover {
  color: var(--text-nav-hover);
}

.footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 16px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  transition: background 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}