/* =============================
   Reset and Base Styles
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #1c1c1c;
  overflow-x: hidden; /* Prevent horizontal scroll from any stray elements */
}

/* =============================
   Header
============================= */
header {
  background: #003366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  flex-wrap: wrap;
  position: relative; /* This is the positioning context for the mega menu */
  z-index: 1000;
  gap: 24px;
}

/* =============================
   Brand (Logo + Text)
============================= */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.brand img.logo {
  height: 50px;
  margin-right: 10px;
}

.logo {
  width: 50px;            /* Adjust size as needed */
  height: 50px;
  border-radius: 50%;     /* Makes it circular */
  border: 2px solid #0d6efd; /* Optional: border for the frame (blue) */
  object-fit: cover;      /* Ensure image doesn't distort */
  background-color: #fff; /* Ensures background stays white */
}
.logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}


/* =============================
   Navigation
============================= */
nav {
  min-width: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* 
  UPDATED: The 'position: relative' was removed from here.
  This is the key change that allows the mega-menu to position
  itself relative to the main <header> instead of this list item.
*/
.nav-links > li {
  /* position: relative; */ /* <-- REMOVED */
}

.nav-links button {
  background: none;
  border: none;
  color: white;
  font-weight: 500;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.nav-links button i.fa-chevron-down {
  font-size: 0.7rem;
}

/* =============================
   Dropdown Menu
============================= */
.dropdown.show-dropdown .mega-menu {
  display: flex;
}

/*
  UPDATED: Mega Menu styles are changed to fit the screen
  and adapt to content height without scrolling.
*/
.dropdown .mega-menu {
  display: none;
  position: absolute;
  top: 100%; /* Position right below the header */
  left: 0;   /* Align to the left edge of the header */
  width: 100%; /* Span the full width of the header */
  background-color: #fff;
  padding: 40px 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 999; /* Lower than header but higher than content */
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start;
  /* REMOVED max-height and overflow to allow content to dictate height */
}


/* =============================
   Mega Menu Items
============================= */
.mega-menu .menu-item {
  flex: 1 1 240px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-decoration: none;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mega-menu .menu-item:hover {
  background-color: #f5f5f5;
}

.mega-menu .menu-item i {
  font-size: 24px;
  color: #007BFF;
}

.mega-menu .menu-item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.mega-menu .menu-item p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

/* =============================
   Responsive Fixes
============================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .auth-links {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  
  /* On small screens, the menu should not be absolute */
  .dropdown .mega-menu {
    position: static;
    width: 100%;
    padding: 20px;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
  }
}

/* =============================
   Auth Buttons
============================= */
.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  background: #660066;
  transition: background 0.3s ease;
}

.auth-links .btn:hover {
  background: #880088;
}

.auth-links .cart {
  background: #004080;
  padding: 8px 12px;
}

.auth-links .cart i {
  font-size: 1rem;
}

/* =============================
   Badge
============================= */
.hot-deal {
  background-color: red;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}




/* Hero Section */
.hero {
  padding: 50px 20px;
  text-align: center;
  background-color: #f5f5f5;
}

.domain-search {
  margin-top: 30px;
}

input[type="text"] {
  padding: 10px;
  width: 300px;
  font-size: 16px;
  border: 2px solid #660066;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  background-color: #660066;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Why Us Section */
.why-us {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.why-us h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #222;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.features div {
  max-width: 250px;
  width: 100%;
  background-color: #f9f9f9;
  padding: 25px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.features div:hover {
  transform: translateY(-6px);
}

.features div i {
  font-size: 2rem;
  color: #0073e6;
  margin-bottom: 15px;
}

.features div h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.features div p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}



/* --- Plans Section --- */
.plans {
  /* H2 heading  centered */
  text-align: center;
}

.plans h2 {
    font-size: 2.5rem; /* Larger, more impactful heading */
    color: #333;
    margin-bottom: 40px; /* More space below the heading */
}

.plan-cards {
  display: flex;
  gap: 30px; /* Increased gap for larger cards */
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* --- Card Styling (UPDATED) --- */
.card {
  background: white;
  /* Replaced border with a modern shadow */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px; /* Increased padding */
  border-radius: 10px;
  width: 300px; /* Increased card width from 250px */
  display: flex;
  flex-direction: column;
  
  /* --- KEY: Smooth hover effect --- */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- KEY: Hover effect when moused over --- */
.card:hover {
    transform: translateY(-10px); /* Lifts the card up */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Makes the shadow more prominent */
}

.card h3 {
  color: #003366;
  font-size: 1.8rem;
  margin-top: 0;
}

.card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 10px 0 20px 0;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  text-align: left;
  flex-grow: 1; /* Pushes the button down */
}

.card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.card li:last-child {
    border-bottom: none;
}

/* --- Add to Cart Button Styling --- */
.add-to-cart-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: auto; /* Aligns button to the bottom */
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
  background: #003366;
  color: white;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #880088;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-column a i {
  margin-right: 8px;
  font-size: 16px;
  color: #007bff;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #880088;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 14px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  text-decoration: none;
}
.who-for {
  padding: 3rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.who-for h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.audience {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.audience:hover {
  transform: translateY(-5px);
}

.audience i {
  font-size: 2rem;
  color: #0a74da;
  margin-bottom: 0.75rem;
}

.audience h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.audience p {
  font-size: 0.95rem;
  color: #666;
}

.get-online {
  padding: 3rem 2rem;
  background-color: #fff;
  text-align: center;
}

.get-online h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.online-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.online-feature {
  background-color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.online-feature:hover {
  transform: translateY(-5px);
}

.online-feature i {
  font-size: 2rem;
  color: #0a74da;
  margin-bottom: 0.75rem;
}

.online-feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.online-feature p {
  font-size: 0.95rem;
  color: #555;
}


