/* ================================
   GLOBAL STYLES & RESET
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ================================
   ROOT VARIABLES - DARK MODE DEFAULT
   ================================ */

:root {
  /* Background & Text Colors */
  --bg-color: #121212;
  --text-color: #e6e6e6;
  --muted-text: rgba(230, 230, 230, 0.75);

  /* Brand Colors */
  --main-color-1: #FF0000;           /* Red */
  --main-color-2: #0033CC;           /* Blue */
  --accent-color: #FFD700;           /* Gold */

  /* Navigation & UI Backgrounds */
  --nav-bg: rgba(40, 40, 40, 0.95);
  --hover-bg: rgba(255, 0, 0, 0.15);
  --dropdown-bg: rgba(30, 30, 30, 0.98);
  --dropdown-color: #f0f0f0;
  --dropdown-shadow: rgba(0, 0, 0, 0.2);

  /* Shadows & Borders */
  --box-shadow-strong: 0 20px 40px rgba(255, 0, 0, 0.08);
  --border-color: rgba(255, 255, 255, 0.05);
  --border: 1px solid var(--border-color);

  /* UI Elements */
  --mode-toggle: rgba(255, 0, 0, 0.1);
  --mode-toggle-hover: 0 4px 12px rgba(255, 0, 0, 0.2);
  --header-height: 70px;
}

/* ================================
   LIGHT MODE COLOR OVERRIDES
   ================================ */

body.light-mode {
  --bg-color: #ffffff;
  --text-color: #000000;
  --muted-text: rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(230, 230, 230, 0.95);
  --hover-bg: rgba(255, 0, 0, 0.08);
  --dropdown-bg: #ffffff;
  --dropdown-color: #111827;
  --dropdown-shadow: rgba(0, 0, 0, 0.06);
  --box-shadow-strong: 0 20px 40px rgba(0, 51, 204, 0.06);
  --border-color: rgba(0, 0, 0, 0.08);
  --border: 1px solid var(--border-color);
  --mode-toggle: rgba(255, 0, 0, 0.05);
  --mode-toggle-hover: 0 4px 12px rgba(255, 0, 0, 0.18);
}

/* ================================
   BODY STYLES
   ================================ */

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
  transition: all 0.3s ease;
  height: var(--header-height);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

/* ================================
   NAVIGATION LINKS
   ================================ */

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
  margin: 0 2px;
}

.nav-links > li > a:hover {
  color: var(--text-color);
  background: var(--hover-bg);
  transform: translateY(-1px);
}

/* Underline animation on hover/active */
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--text-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links > li > a:hover::after,
.nav-links li.active > a::after {
  width: 60%;
}

/* ================================
   DROPDOWN MENU
   ================================ */

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-color);
}

/* Chevron icon rotation on hover */
.dropdown-toggle .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}

/* Dropdown menu container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--dropdown-bg);
  min-width: 720px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.28s cubic-bezier(.2,.9,.3,1);
  border-radius: 12px;
  box-shadow: 0 20px 40px var(--dropdown-shadow);
  padding: 32px;
  margin-top: 8px;
  border: var(--border);
  color: var(--dropdown-color);
  z-index: 1500;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Grid layout for dropdown content (3 columns) */
.dropdown-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Individual dropdown buttons */
.dropdown-btn {
  width: 100%;
  background: transparent;
  color: var(--dropdown-color);
  border: var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}

.dropdown-btn:hover {
  background: var(--hover-bg);
  color: var(--text-color);
  transform: translateX(3px);
  border-color: var(--main-color-1);
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.15);
}

/* ================================
   MODE TOGGLE (THEME SWITCHER)
   ================================ */

.mode-toggles {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--mode-toggle);
  color: var(--main-color-1);
  cursor: pointer;
  transition: all 0.25s ease;
  border: var(--border);
}

.mode-toggle:hover {
  background: var(--main-color-1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--mode-toggle-hover);
}

.mode-toggle .material-symbols-outlined {
  font-size: 18px;
}

/* ================================
   MOBILE MENU TOGGLE
   ================================ */

.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 999;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color, #fff);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation for X icon when active (hamburger to X) */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background gradients (decorative) */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(210, 91, 63, 0.3) 0%, rgba(210, 91, 63, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(95, 138, 160, 0.2) 0%, rgba(95, 138, 160, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

/* Red highlight text in hero title */
.hero h1 .highlight {
  color: var(--main-color-1);
  display: block;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted-text);
  max-width: 700px;
  margin: 30px auto;
  line-height: 1.6;
}

/* ================================
   HERO BUTTONS
   ================================ */

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 80px;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Primary button (filled with red) */
.btn-primary {
  background: var(--main-color-1);
  color: #fff;
}

.btn-primary:hover {
  background: #CC0000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

/* Secondary button (outlined) */
.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--main-color-1);
}

.btn-secondary:hover {
  background: var(--main-color-1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

/* ================================
   SCROLL INDICATOR
   ================================ */

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--muted-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator .mouse-icon {
  font-size: 28px;
}

.scroll-indicator .arrows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.scroll-indicator .arrows span {
  font-size: 20px;
}

/* Bouncing animation */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ================================
   CONTENT SECTION
   ================================ */

.content {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 60px;
  line-height: 1.2;
}

/* ================================
   SERVICES GRID & CARDS
   ================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.service-card {
  background: rgba(255, 0, 0, 0.05);
  border: var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  color: var(--text-color);
}

.service-card:hover {
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.1);
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-strong);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(175, 43, 9, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 32px;
  color: var(--main-color-1);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--main-color-2);
}

.service-price strong {
  color: var(--text-color);
}

/* ================================
   SUPPORT SECTION
   ================================ */

.support-section {
  background: rgba(0, 51, 204, 0.05);
  border: var(--border);
  border-radius: 16px;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  backdrop-filter: blur(10px);
  margin-bottom: 60px;
}

.support-icon {
  width: 100px;
  height: 100px;
  background: var(--mode-toggle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: var(--main-color-1);
  flex-shrink: 0;
}

.support-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
}

.support-content p {
  font-size: 1rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ================================
   HEADER STATE CHANGES
   ================================ */

.header-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px var(--dropdown-shadow);
}

/* ================================
   COOKIE CONSENT POPUP
   ================================ */

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-top: var(--border);
  padding: 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cookie-popup.show {
  display: flex;
}

.cookie-popup.fade-out {
  opacity: 0;
  pointer-events: none;
}

.cookie-popup p {
  color: var(--muted-text);
  font-size: 0.95rem;
  margin: 0;
}

.cookie-popup a {
  color: var(--main-color-1);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--main-color-1);
  padding-bottom: 2px;
}

.cookie-popup a:hover {
  color: var(--main-color-2);
  border-bottom-color: var(--main-color-2);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-accept {
  background: var(--main-color-1);
  color: #fff;
}

.cookie-accept:hover {
  background: #c24a2f;
}

.cookie-decline {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.cookie-decline:hover {
  background: var(--hover-bg);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Fade-in animation for mobile nav */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablets - Large screens */
@media (max-width: 1024px) {
  .dropdown-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  /* Hide desktop nav, show mobile toggle */
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--bg-color, #121212);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  /* Show nav links when active */
  .nav-links.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hide dropdown menu on mobile */
  .nav-dropdown {
    display: none;
  }

  .dropdown-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dropdown-menu {
    position: static;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    border: none;
  }

  /* Hero adjustments */
  .hero {
    padding-top: calc(var(--header-height) + 30px);
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 60px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Content adjustments */
  .content {
    padding: 60px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 32px;
    min-height: auto;
  }

  /* Support section layout */
  .support-section {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 24px;
    text-align: center;
  }

  .support-icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
    margin: 0 auto;
  }
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  border-top: var(--border);
  padding: 60px 20px 20px 20px;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.footer-brand {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.footer-brand p {
  margin-bottom: 8px;
  color: var(--muted-text);
}

.footer-brand a {
  color: var(--main-color-1);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--main-color-1);
}

.footer-brand a:hover {
  color: var(--main-color-2);
  border-bottom-color: var(--main-color-2);
}

.footer-links {
  display: flex;
  flex: 3 1 600px;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: var(--muted-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-column ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--main-color-1);
  transition: width 0.3s ease;
}

.footer-column ul li a:hover::after {
  width: 100%;
}

.footer-column ul li a:hover {
  color: var(--text-color);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border);
  padding-top: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--muted-text);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--mode-toggle);
  color: var(--main-color-1);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.footer-socials .social-icon:hover {
  background: var(--main-color-1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-strong);
}

/* ================================
   FOOTER RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* ================================
   SHIELDED LOGO
   ================================ */
.footer-shielded {
  display: inline-block;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer-shielded img {
  display: block;
  height: 50px;
  width: 50px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.footer-shielded:hover img {
  transform: translateY(-2px);
  height: 60px;
  width: 60px;
}

/* ============================
   Eastall Service Store Additions
   ============================ */

.store-container {
  padding: 60px 5%;
}

.store-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.store-hero .hero-content h1 {
  font-size: 3rem;
  color: var(--text-color);
}

.store-hero p {
  color: var(--muted-text);
  margin-top: 0.5rem;
}

.currency-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.currency-bar select {
  background: #1f1f1f;
  color: var(--text-color);
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: 8px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.store-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.store-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.store-card h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.store-card p {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.store-card .price {
  font-weight: 600;
  color: var(--accent-color, #5ac8fa);
  margin-bottom: 1rem;
}

.store-card button {
  background: var(--accent-color, #5ac8fa);
  color: #000;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.store-card button.in-cart {
  background: #ff4757;
  color: #fff;
}

.store-card button:hover {
  filter: brightness(1.2);
}

.cart-bar {
  text-align: center;
  margin-top: 3rem;
}

.checkout-btn {
  background: #5ac8fa;
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
}

.checkout-btn:hover:not(:disabled) {
  background: #69d3ff;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay img {
  width: 130px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
