/* Custom Properties / Variables */
:root {
  --primary: #042E2B;
  --secondary: #021C1A;
  --accent: #D4A017;
  --bg-color: #FFFFFF;
  --text-color: #1E293B;
  --text-muted: #64748B;
  --card-bg: #FFFFFF;
  --glass-border: rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.95);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-alt: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --primary: #082925;
  --secondary: #0F4C45;
  --bg-color: #050B14;
  --text-color: #E2E8F0;
  --text-muted: #94A3B8;
  --card-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(5, 11, 20, 0.85);
}

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

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
}

p {
  line-height: 1.7;
}

/* Scroll Progress */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1100;
}
.scroll-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s ease;
}

/* Utilities */
.text-accent { color: var(--accent) !important; }
.bg-primary-dark { background-color: var(--primary) !important; }
.text-muted-footer { color: #94A3B8; }

.tracking-wider { letter-spacing: 2px; }
.transition-transform { transition: transform 0.5s ease; }
.group:hover .transition-transform { transform: scale(1.05); }
.text-hover-primary:hover { color: var(--primary) !important; text-decoration: underline !important; }

/* Navbar & Mega Menu */
.premium-navbar {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  padding: 1.2rem 0;
}
.premium-navbar.navbar-scrolled {
  padding: 0.8rem 0;
}

.logo-text {
  color: #fff;
  transition: color 0.3s;
}

.premium-navbar.navbar-scrolled .logo-text {
  color: var(--primary);
}

[data-theme="dark"] .premium-navbar.navbar-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.premium-navbar .nav-link {
  font-family: var(--font-alt);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0.5rem;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.premium-navbar.navbar-scrolled .nav-link {
  color: var(--text-color);
}

.premium-navbar .nav-link.active,
.premium-navbar .nav-link:hover {
  color: var(--accent) !important;
}

/* Standard Dropdown */
.dropdown-menu {
  background-color: #ffffff;
  border: none;
  box-shadow: 0 10px 40px rgba(15, 76, 69, 0.15);
  border-radius: 12px;
  border-top: 4px solid var(--accent);
  padding: 1rem 0;
  margin-top: 0;
}

[data-theme="dark"] .dropdown-menu {
  background-color: #082925;
  border: 1px solid rgba(212, 160, 23, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.dropdown-item {
  color: #334155;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: transparent !important;
  font-weight: 500;
}

[data-theme="dark"] .dropdown-item {
  color: #E2E8F0;
}

.dropdown-item:hover {
  color: var(--primary);
  background: rgba(15, 76, 69, 0.05) !important;
  padding-left: 2rem;
}

[data-theme="dark"] .dropdown-item:hover {
  color: var(--accent);
  background: rgba(212, 160, 23, 0.05) !important;
}

.dropdown-header {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Mega Menu specific */
.dropdown-mega .dropdown-menu {
  width: 100vw;
  left: 0;
  right: 0;
  top: 100%;
  border-radius: 0 0 12px 12px;
  border-top: 4px solid var(--accent);
  padding: 0;
  background-color: #ffffff;
}

[data-theme="dark"] .dropdown-mega .dropdown-menu {
  background-color: #082925;
}

.mega-content {
  background: transparent;
}

.mega-title {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(212, 160, 23, 0.3);
  padding-bottom: 0.75rem;
  margin-bottom: 1.2rem;
  display: block;
}

[data-theme="dark"] .mega-title {
  color: var(--accent);
  border-bottom-color: rgba(255,255,255,0.1);
}

.mega-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
  padding-left: 0.8rem;
}

[data-theme="dark"] .mega-subtitle {
  color: #94A3B8;
}

.mega-item {
  color: #475569;
  padding: 0.5rem 0.8rem;
  background: transparent !important;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

[data-theme="dark"] .mega-item {
  color: #CBD5E1;
}

.mega-item::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent);
  margin-right: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.mega-item:hover {
  color: var(--primary);
  background: rgba(15, 76, 69, 0.05) !important;
  transform: translateX(5px);
}

[data-theme="dark"] .mega-item:hover {
  color: var(--accent);
  background: rgba(212, 160, 23, 0.05) !important;
}

.mega-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Hover to open dropdown on Desktop */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeUp 0.3s ease forwards;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-col {
  border-right: 1px solid var(--glass-border);
  padding: 0 1.5rem;
}
.mega-col:last-child {
  border-right: none;
}
@media (max-width: 767px) {
  .mega-col { border-right: none; border-bottom: 1px solid var(--glass-border); margin-bottom: 1rem; padding-bottom: 1rem; }
  .mega-col:last-child { border-bottom: none; }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(4,46,43,0.8) 100%);
  z-index: 1;
}

.particles-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
  animation: bg-move 20s linear infinite;
}

@keyframes bg-move {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  font-family: var(--font-alt);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn-premium {
  background: linear-gradient(45deg, var(--accent), #e8c65f);
  color: #000;
  border: none;
  font-weight: 600;
  font-family: var(--font-alt);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
  transition: all 0.3s ease;
  padding: 0.8rem 2rem;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.6);
  color: #000;
}

.btn-outline-premium {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.8rem 2rem;
  backdrop-filter: blur(5px);
}

.btn-outline-premium:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-icon {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-alt);
  margin-bottom: 0.5rem;
  display: block;
}

/* Floating Elements */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  color: #000;
}

.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 1rem 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner.show {
  transform: translateY(0);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 31, 68, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.btn-close-search {
  position: absolute;
  top: 30px; right: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.btn-close-search:hover { color: var(--accent); }
.search-group input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 2rem;
  border-radius: 0;
  padding: 1rem 0;
}
.search-group input:focus {
  background: transparent;
  box-shadow: none;
  border-color: var(--accent);
  color: #fff;
}
.search-group .btn-accent {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  color: var(--accent);
  font-size: 1.5rem;
}

/* Icon box */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(212, 160, 23, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.glass-card:hover .icon-box {
  background: var(--accent);
  color: #000;
  transform: scale(1.1);
}

/* Counters */
.counter-box {
  text-align: center;
  padding: 2rem;
}
.counter-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
}

/* Footer */
.premium-footer {
  border-top: 1px solid var(--glass-border);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-link:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.5rem; }
  .premium-navbar { background: var(--header-bg); backdrop-filter: blur(16px); }
}
