/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4f8;
  color: #333;
}

/* HEADER STYLES */
header {
  background: #0d47a1;
  padding: 15px 20px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a i.fa-shopping-cart {
  font-size: 18px;
  margin-left: 5px;
  color: rgb(255, 255, 255);
}

.nav-links a:hover i.fa-shopping-cart {
  color: #ffcc00;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -12px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-toggle i {
  transition: transform 0.3s;
}

/* Desktop Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #1565c0;
  display: none;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  z-index: 999;
}

.dropdown-menu a {
  padding: 12px 20px;
  color: white;
  text-align: left;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Desktop Hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown-menu a {
    padding: 8px 0;
    border-left: 2px solid #fff;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
  }
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 26px;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: #1565c0;
    border-radius: 10px;
    padding: 10px 0;
  }

  .nav-links a {
    padding: 12px 20px;
    text-align: left;
  }

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

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #2196f3, #21cbf3);
  color: white;
  text-align: center;
  padding: 80px 20px;
  animation: fadeIn 2s ease-in-out;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

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

/* DOMAIN SEARCH */
.domain-search {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.domain-search input {
  padding: 12px;
  width: 300px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

.domain-search button {
  padding: 12px 20px;
  background: #ff5722;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.domain-search button:hover {
  background: #e64a19;
}

/* HOSTING PLANS & SERVICES */
.plans,
.services {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
  margin-top: 40px;
}

.plans h2,
.services h2 {
  margin-bottom: 40px;
  color: #0d47a1;
}

.plan-cards,
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.card {
  background: #e3f2fd;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: scale(1.05);
}

.card h3 {
  margin-bottom: 15px;
}

.card p {
  font-size: 15px;
  margin-bottom: 20px;
}

.btn-add {
  background: #0d47a1;
  color: white;
  border: none;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-add:hover {
  background: #094a8f;
}

/* FOOTER */
footer {
  background: #0d47a1;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE TWEAKS */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }

  .card {
    padding: 20px;
  }

  .domain-search input {
    width: 100%;
  }
}
