/* 
 * GreenIT - Eco-Friendly Data Center Solutions
 * Main Stylesheet
 */

/* Variable Definitions */
:root {
  /* Colors */
  --color-primary: #2ecc71; /* Eco Green */
  --color-primary-dark: #27ae60;
  --color-primary-light: #a9dfbf;
  --color-secondary: #3498db;
  --color-white: #ffffff;
  --color-light: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --color-black: #000000;
  
  /* Fonts */
  --font-primary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Montserrat', Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container Width */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  
  /* ========================================
     Hero Section Variables (Desktop Default)
     These variables can be overridden in media queries for different devices
     ======================================== */
  
  /* Hero Layout - Layout Control */
  --hero-aspect-ratio: 21/9;           /* Hero area aspect ratio */
  --hero-overlay-gap: 50px;            /* Gap between two cards */
  --hero-card-border-radius: 8px;      /* Card border radius */
  --hero-card-min-height: 280px;       /* Card minimum height */
  
  /* Hero Card Sizes - Card Dimensions */
  --left-card-width: 32%;              /* Left card width (percentage) */
  --left-card-max-width: 360px;        /* Left card maximum width */
  --right-card-width: 42%;             /* Right card width (percentage) */
  --right-card-max-width: 500px;       /* Right card maximum width */
  
  /* Hero Card Padding - Card Inner Padding */
  --card-padding: 24px 20px;           /* Right card padding */
  --card-padding-left: 24px 18px;      /* Left card padding */
  
  /* Hero Card Typography - Card Text Sizes */
  --card-title-size: 18px;             /* Left card title */
  --card-co2-size: 42px;               /* CO2 value */
  --card-unit-size: 16px;              /* CO2 unit */
  --card-heading-size: 28px;           /* Right card heading */
  --card-text-size: 15px;              /* Right card text */
  --card-button-size: 14px;            /* Right card button */
  
  /* Hero CO2 Icon - CO2 Icon Sizes */
  --co2-icon-size: 75px;               /* Icon container size */
  --co2-icon-img-size: 55px;           /* Icon image size */
  
  /* Hero Overlay Effects - Overlay Effect Colors */
  --hero-overlay-primary: rgba(25, 55, 109, 0.5);  /* Primary overlay */
  --hero-overlay-dark: rgba(0, 0, 0, 0.3);         /* Dark overlay */
  --hero-glow-color: rgba(46, 204, 113, 0.08);     /* Green glow */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
}

/* Add global styles when menu is open */
body.menu-open {
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-gray-800);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--color-primary);
  padding: 0.5rem 0;
  position: relative;
  font-weight: 600;
}

.btn-text:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.btn-text:hover:after {
  width: 100%;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-900);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.right-card h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-gray-800);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.right-card p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--color-gray-700);
  max-width: 450px;
}

/* Main Navigation Bar Styles */
.main-header {
  background-color: transparent;
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  /* Adjust gradient background, use dark blue */
  background: linear-gradient(to bottom, 
    rgba(25, 55, 109, 0.4) 0%, 
    rgba(25, 55, 109, 0.25) 60%, 
    rgba(25, 55, 109, 0.1) 80%, 
    rgba(25, 55, 109, 0) 100%);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Remove gradient background on scroll */
  background-image: none;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 0 10px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: 180px;
  /* Simplified style, allowing green logo to display naturally on blue background */
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}

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

.main-header.scrolled .logo img {
  /* Use subtle shadow for differentiation on white background */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.main-header.scrolled .logo img:hover {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.main-nav {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
  width: 100%;
  max-width: 480px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 22px;
  justify-content: flex-end;
  align-items: center;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 3px;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 1px 3px rgba(15, 35, 75, 0.65);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.main-header.scrolled .main-nav a {
  color: var(--color-gray-800);
  text-shadow: none;
}

.main-header.scrolled .main-nav a.active {
  color: var(--color-primary);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--color-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  margin-right: 0;
  white-space: nowrap;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(20, 45, 90, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(15, 35, 75, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-header.scrolled .language-toggle {
  background-color: rgba(240, 240, 240, 0.8);
}

.language-toggle a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  padding: 0 2px;
  text-shadow: 0 1px 3px rgba(15, 35, 75, 0.65);
  white-space: nowrap;
}

.main-header.scrolled .language-toggle a {
  color: var(--color-gray-700);
  text-shadow: none;
}

.language-toggle a.active {
  color: var(--color-primary);
  position: relative;
}

.language-toggle a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.language-toggle a.active::after {
  width: 100%;
}

.main-header.scrolled .language-toggle a.active {
  color: var(--color-primary);
  position: relative;
}

.language-toggle a:hover:not(.active) {
  color: var(--color-primary-dark);
}

.language-toggle span {
  color: var(--color-gray-400);
  margin: 0 2px;
}

.main-header .btn.btn-primary {
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  background-color: var(--color-primary);
  color: white;
  white-space: nowrap;
  min-width: 110px;
  text-align: center;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.main-header .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(46, 204, 113, 0.5);
  background-color: var(--color-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========================================
   Hero Section - Homepage Hero Area
   Includes: Slider, Overlays, Left & Right Cards
   ======================================== */

/* Hero Container - Container */
.hero {
  position: relative;
  aspect-ratio: var(--hero-aspect-ratio);
  overflow: visible;
  margin-bottom: 260px;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
}

/* Hero Overlay Effects - Overlay Effect Layers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    /* Top navigation bar gradient effect */
    linear-gradient(to bottom, 
      var(--hero-overlay-primary) 0%, 
      rgba(25, 55, 109, 0.35) 10%, 
      rgba(25, 55, 109, 0.2) 20%,
      rgba(25, 55, 109, 0.1) 30%,
      rgba(25, 55, 109, 0) 40%),
    /* Overall mask effect */
    linear-gradient(
      135deg,
      var(--hero-overlay-dark) 0%,
      rgba(0, 0, 0, 0.35) 50%,
      var(--hero-overlay-dark) 100%
    );
  backdrop-filter: brightness(0.95) contrast(1.05);
  z-index: 3;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    var(--hero-glow-color) 0%,
    transparent 70%
  );
  mix-blend-mode: overlay;
  z-index: 4;
  pointer-events: none;
}

/* Hero Slider - Image Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Navigation Dots - Navigation Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.dot.active {
  background-color: var(--color-white);
}

/* Hero Cards Container - Cards Container */
.hero-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 var(--container-padding);
  z-index: 5;
  gap: var(--hero-overlay-gap);
  opacity: 0;
  transition: opacity var(--transition-normal);
  top: 100%;  /* Dynamically adjusted by JavaScript */
}

/* Hero Card Base - Card Base Styles */
.hero-card {
  position: relative;
  border-radius: var(--hero-card-border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  min-height: var(--hero-card-min-height);
}

/* Left Card (CO2 Stats) - Left Card (CO2 Statistics) */
.left-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  width: var(--left-card-width);
  max-width: var(--left-card-max-width);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

/* Right Card (Calculator Link) - Right Card (Calculator Link) */
.right-card {
  background-color: var(--color-white);
  color: var(--color-gray-800);
  width: var(--right-card-width);
  max-width: var(--right-card-max-width);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card Content - Card Content */
.card-content {
  padding: var(--card-padding);
  width: 100%;
}

.left-card .card-content {
  text-align: center;
  padding: var(--card-padding-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Left Card Elements - Left Card Elements */
.left-card h3 {
  font-size: var(--card-title-size);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

.co2-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--co2-icon-size);
  height: var(--co2-icon-size);
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.co2-icon img {
  width: var(--co2-icon-img-size);
  height: var(--co2-icon-img-size);
  filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0, 0, 0, 0.25));
}

.co2-amount {
  font-size: var(--card-co2-size);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.co2-unit {
  font-size: var(--card-unit-size);
  letter-spacing: 0.5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Right Card Elements - Right Card Elements */
.right-card h2 {
  font-size: var(--card-heading-size);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-gray-800);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.right-card p {
  font-size: var(--card-text-size);
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-gray-700);
}

.right-card .btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--card-button-size);
  transition: all var(--transition-normal);
  box-shadow: 0 3px 10px rgba(46, 204, 113, 0.2);
  align-self: flex-start;
}

.right-card .btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
}

/* Hero Vision - Center Text Area */
.hero-vision-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 1000px;
  z-index: 5;
}

.vision-content {
  padding: 2rem;
}

.hero-vision-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow:
    2px 2px 0 rgba(0,0,0,0.2),
    -2px 2px 0 rgba(0,0,0,0.2),
    2px -2px 0 rgba(0,0,0,0.2),
    -2px -2px 0 rgba(0,0,0,0.2),
    0px 3px 6px rgba(0,0,0,0.4);
}

.text-gradient {
  background: linear-gradient(120deg, #2ecc71, #27ae60);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-vision-description {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.6rem);
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 0;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.feature-card h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  color: var(--color-gray-800);
  padding: 0 var(--spacing-lg);
}

.feature-card p {
  margin-bottom: var(--spacing-lg);
  color: var(--color-gray-600);
  flex-grow: 1;
  line-height: 1.5;
  padding: 0 var(--spacing-lg);
}

.feature-card .btn {
  margin: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* Stats section */
.stats-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(rgba(25, 55, 109, 0.85), rgba(25, 55, 109, 0.75)), url('../images/wind-turbines.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(46, 204, 113, 0.1) 0%, rgba(25, 55, 109, 0) 70%);
  z-index: 1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stats-section h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-section p {
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
}

.stat-item {
  padding: var(--spacing-lg);
  position: relative;
  transition: transform var(--transition-normal);
  border-radius: var(--border-radius-lg);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  margin: 0 auto var(--spacing-md);
  width: 48px;
  height: 48px;
  opacity: 0.9;
  transition: transform var(--transition-fast);
}

.stat-item:hover .stat-icon {
  transform: scale(1.1);
  opacity: 1;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: color var(--transition-normal);
}

.stat-item:hover .stat-number {
  color: var(--color-white);
}

.stat-text {
  font-size: 1.1rem;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.stat-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background-color: rgba(33, 160, 84, 0.92);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 10px 25px rgba(33, 160, 84, 0.2), 0 0 15px rgba(33, 160, 84, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(33, 160, 84, 0.92) transparent transparent transparent;
}

.stat-item:hover .stat-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 15px);
  transform: translateX(-50%) translateY(-5px);
}

.tooltip-content {
  position: relative;
  padding: 5px 0;
}

.tooltip-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tooltip-content p strong {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Add tooltip inner decoration */
.tooltip-content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0.8;
}

/* Add bottom-right decoration */
.tooltip-content::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.6;
}

/* Add responsive adjustments */
/* Small screen mobile device common styles (≤539px) */
@media (max-width: 539px) {
  /* Statistics Section */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-tooltip {
    width: 220px;
  }
  
  /* Features Section */
  .feature-icon {
    height: 160px;
  }
  
  .feature-card h3 {
    font-size: 1.2rem;
  }
  
  /* Advantages Section */
  .advantages-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .advantage-icon {
    width: 70px;
    height: 70px;
  }
  
  /* Logo */
  .logo img {
    height: 32px;
  }
}

  /* Calculator Preview Section */
  .calculator-preview {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(52, 152, 219, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

.calculator-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(46, 204, 113, 0.06) 0%, transparent 60%);
  animation: pulse 15s infinite linear;
  z-index: 1;
  pointer-events: none;
}

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

.calculator-preview .container {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.calculator-content {
  padding-right: var(--spacing-xl);
  max-width: 600px;
}

.calculator-content h2 {
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-800);
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 700;
}

.calculator-content p {
  margin-bottom: var(--spacing-xl);
  color: var(--color-gray-700);
  font-size: 1.15rem;
  line-height: 1.6;
}

.calculator-content .btn {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.calculator-content .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35);
}

.calculator-image {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 15px;
}

.calculator-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  width: 75%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
}

.calculator-image:hover img {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Footer */
.site-footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding-top: var(--spacing-xxl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(46, 204, 113, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  position: relative;
  z-index: 2;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 40px;
  width: auto;
  max-width: 160px;
  margin-bottom: var(--spacing-md);
  filter: brightness(1.1);
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo img:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

.footer-logo p {
  margin-bottom: var(--spacing-lg);
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 260px;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
  border-color: var(--color-primary);
}

.social-links img {
  width: 18px;
  height: 18px;
  margin: 0;
  filter: brightness(1.2);
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
}

.footer-links h3,
.footer-contact h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  color: var(--color-gray-400);
  transition: all var(--transition-normal);
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  opacity: 0;
}

.footer-links a:hover::before {
  width: 3px;
  opacity: 1;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-normal);
}

.footer-contact p:hover {
  transform: translateX(5px);
}

.footer-contact img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: var(--color-gray-500);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-bottom-links a {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

.footer-bottom-links a:hover {
  color: var(--color-primary);
}

/* Responsive Common Styles (Tablet + Mobile) */
@media (max-width: 1024px) {
  /* Heading Fonts */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Hero Section */
  .hero {
    margin-bottom: 340px;
  }
  
  .hero-overlay {
    flex-direction: column;
    align-items: center;
  }
  
  .left-card, .right-card {
    width: 90%;
    max-width: 600px;
  }
  
  .left-card {
    margin-bottom: 20px;
  }
  
  /* Logo */
  .logo img {
    height: 36px;
  }
  
  /* Statistics Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 2.8rem;
  }
  
  /* Disable tooltip on tablet + mobile */
  .stat-tooltip {
    display: none;
  }
  
  .stat-item:hover .stat-tooltip {
    display: none;
  }
  
  /* Features Section */
  .feature-icon {
    height: 180px;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
    margin-top: var(--spacing-md);
  }
  
  .feature-card p {
    font-size: 0.95rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
  }
  
  /* Advantages Section */
  .advantage-card {
    padding: var(--spacing-lg);
  }
  
  .advantage-icon {
    width: 80px;
    height: 80px;
  }
  
  .advantage-card h3 {
    font-size: 1.3rem;
  }
  
  .advantage-card p {
    font-size: 1rem;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  /* Calculator Preview Section */
  .calculator-preview .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .calculator-content {
    padding-right: 0;
    text-align: center;
    order: 1;
  }
  
  .calculator-image {
    display: flex;
    justify-content: center;
    padding: 10px;
  }
  
  .calculator-image img {
    width: 70%;
    max-height: 300px;
  }
}

/* Tablet Device Specific Styles (Including Surface Duo and Above) */
@media (min-width: 540px) and (max-width: 1024px) {
  :root {
    /* Hero Layout Variables */
    --hero-aspect-ratio: 16/9;  /* Landscape ratio, suitable for all tablets */
    --hero-overlay-gap: 20px;
    --hero-card-border-radius: 12px;
    --hero-card-min-height: 240px;
    
    /* Hero Card Sizes - Unified 66% for all tablets */
    --left-card-width: 66%;
    --left-card-max-width: 430px;
    --right-card-width: 66%;
    --right-card-max-width: 430px;
    
    /* Hero Card Padding */
    --card-padding: 20px 16px;
    --card-padding-left: 20px 14px;
    
    /* Hero Card Typography */
    --card-title-size: 16px;
    --card-co2-size: 36px;
    --card-unit-size: 14px;
    --card-heading-size: 24px;
    --card-text-size: 14px;
    --card-button-size: 13px;
    
    /* Hero CO2 Icon Sizes */
    --co2-icon-size: 65px;
    --co2-icon-img-size: 48px;
  }
  
  .hero {
    margin-bottom: 400px;
  }
  
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-overlay {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .left-card {
    margin-bottom: 0;
    box-shadow: 0 12px 25px rgba(46, 204, 113, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .right-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .left-card h3 {
    margin-bottom: 12px;
  }
  
  .co2-icon {
    margin-bottom: 12px;
  }
  
  .right-card h2 {
    margin-bottom: 14px;
  }
  
  .right-card p {
    margin-bottom: 16px;
  }
  
  .right-card .btn {
    padding: 10px 20px;
  }
  
  /* Hero Vision - Tablet Responsive */
  .hero-vision-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
  
  .hero-vision-description {
    font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  }
  
  .hero-vision-container {
    top: 42%;
  }
}

/* Mobile Portrait Styles (Small Screen Phones, Excluding Surface Duo) */
@media (max-width: 539px) and (orientation: portrait) {
  :root {
    /* Hero Layout Variables */
    --hero-aspect-ratio: 3/4;
    --hero-overlay-gap: 20px;
    --hero-card-border-radius: 12px;
    --hero-card-min-height: 210px;
    
    /* Hero Card Sizes */
    --left-card-width: 92%;
    --left-card-max-width: 450px;
    --right-card-width: 92%;
    --right-card-max-width: 450px;
    
    /* Hero Card Padding */
    --card-padding: 20px 18px;
    --card-padding-left: 20px 15px;
    
    /* Hero Card Typography */
    --card-title-size: 16px;
    --card-co2-size: 34px;
    --card-unit-size: 15px;
    --card-heading-size: 23px;
    --card-text-size: 14px;
    --card-button-size: 13px;
    
    /* Hero CO2 Icon Sizes */
    --co2-icon-size: 68px;
    --co2-icon-img-size: 50px;
  }
  
  /* Mobile Portrait Hero Section Styles */
  .hero {
    margin-bottom: 490px;
  }
  
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-overlay {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }
  
  .hero-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .left-card {
    margin-bottom: 0;
    box-shadow: 0 12px 25px rgba(46, 204, 113, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .right-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .left-card h3 {
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .co2-icon {
    margin-bottom: 12px;
  }
  
  .co2-amount {
    margin-bottom: 6px;
  }
  
  .co2-unit {
    font-weight: 600;
  }
  
  .right-card h2 {
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  }
  
  .right-card p {
    line-height: 1.5;
    margin-bottom: 18px;
  }
  
  .right-card .btn {
    padding: 10px 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    margin-top: 15px;
  }
  
  .calculator-image img {
    width: 70%;
    max-height: 280px;
  }
  
  /* Hero Vision - Mobile Portrait Responsive */
  .hero-vision-container {
    top: 45%;
    width: 95%;  /* Small screen optimization: increase width utilization */
  }
  
  .vision-content {
    padding: 1rem;  /* Small screen optimization: reduce padding */
  }
}

/* Mobile Landscape Styles (Small Screen Phones, Excluding Surface Duo) */
@media (max-width: 539px) and (orientation: landscape) {
  :root {
    /* Hero Layout Variables */
    --hero-aspect-ratio: 16/9;
    --hero-card-border-radius: 12px;
    --hero-card-min-height: 190px;
    
    /* Hero Card Sizes */
    --left-card-width: 88%;
    --left-card-max-width: 450px;
    --right-card-width: 88%;
    --right-card-max-width: 450px;
    
    /* Hero Card Padding */
    --card-padding: 17px 15px;
    --card-padding-left: 17px 13px;
    
    /* Hero Card Typography */
    --card-title-size: 15px;
    --card-co2-size: 31px;
    --card-unit-size: 13px;
    --card-heading-size: 21px;
    --card-text-size: 13px;
    --card-button-size: 12px;
    
    /* Hero CO2 Icon Sizes */
    --co2-icon-size: 60px;
    --co2-icon-img-size: 44px;
  }
  
  .hero {
    margin-bottom: 365px;
  }
  
  .hero-card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .left-card {
    margin-bottom: 0;
    box-shadow: 0 12px 25px rgba(46, 204, 113, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .right-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .left-card h3 {
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .co2-icon {
    margin-bottom: 10px;
  }
  
  .co2-amount {
    margin-bottom: 5px;
  }
  
  .co2-unit {
    font-weight: 600;
  }
  
  .right-card h2 {
    margin-bottom: 12px;
  }
  
  .right-card p {
    margin-bottom: 16px;
  }
  
  .right-card .btn {
    padding: 9px 18px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    margin-top: 15px;
  }
  
  .calculator-image img {
    width: 85%;
    max-height: 350px;
  }
  
  /* Hero Vision - Mobile Landscape Responsive */
  .hero-vision-container {
    width: 95%;  /* Small screen optimization: increase width utilization */
  }
  
  .vision-content {
    padding: 1rem;  /* Small screen optimization: reduce padding */
  }
}

/* Desktop and Large Tablet Landscape Style Optimization */
@media (min-width: 1025px) and (max-width: 1280px) {
  :root {
    /* Hero Card Variables */
    --hero-card-min-height: 260px;
    --left-card-width: 30%;
    --left-card-max-width: 340px;
    --right-card-width: 40%;
    --right-card-max-width: 470px;
    --card-padding: 22px 18px;
    --card-padding-left: 22px 16px;
    
    /* Hero Card Typography */
    --card-title-size: 17px;
    --card-co2-size: 38px;
    --card-unit-size: 15px;
    --card-heading-size: 26px;
    --card-text-size: 14px;
    --card-button-size: 13px;
    
    /* Hero CO2 Icon Sizes */
    --co2-icon-size: 70px;
    --co2-icon-img-size: 52px;
  }
  
  .left-card h3 {
    margin-bottom: 12px;
  }
  
  .co2-icon {
    margin-bottom: 12px;
  }
  
  .right-card h2 {
    margin-bottom: 14px;
  }
  
  .right-card p {
    margin-bottom: 18px;
  }
  
  .right-card .btn {
    padding: 11px 22px;
  }
}

/* Large Screen Desktop Styles */
@media (min-width: 1281px) {
  :root {
    --hero-card-min-height: 280px;
    --left-card-width: 32%;
    --left-card-max-width: 380px;
    --right-card-width: 42%;
    --right-card-max-width: 520px;
  }
}

/* Our Advantages Section */
.core-advantages {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-white);
  color: var(--color-gray-800);
  position: relative;
  overflow: hidden;
}

.core-advantages::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(46, 204, 113, 0.05) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.core-advantages .container {
  position: relative;
  z-index: 2;
}

.core-advantages .section-title {
  color: var(--color-gray-800);
  margin-bottom: var(--spacing-xl);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.advantage-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: var(--spacing-sm);
  transition: transform var(--transition-normal);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
  border: 2px solid rgba(46, 204, 113, 0.1);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1);
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(56%) sepia(86%) saturate(394%) hue-rotate(93deg) brightness(91%) contrast(89%); /* Convert icon to green */
}

.advantage-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.advantage-card p {
  color: var(--color-gray-600);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Products & Services Mega Menu (desktop only) */
.has-mega { position: relative; }

/* Dropdown Icon Styles */
.has-mega .dropdown-icon {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.has-mega:hover .dropdown-icon,
.has-mega:focus-within .dropdown-icon {
  opacity: 1;
}

/* Rotate icon when Mega Menu is expanded */
.has-mega a[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

/* Create invisible bridge area connecting button and Mega Menu */
.has-mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px; /* Bridge height */
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 1199;
}

.has-mega:hover::before,
.has-mega:focus-within::before {
  opacity: 1;
  pointer-events: auto;
}

.has-mega .mega {
  position: absolute;
  left: 50%; /* Center relative to parent element */
  transform: translateX(-50%) translateY(8px); /* Horizontal center + initial downward offset */
  top: calc(100% + 16px); /* Restore 16px gap, connected via bridge area */
  width: min(900px, 92vw);
  max-width: calc(100vw - 32px); /* Ensure not exceeding viewport, 16px margin on each side */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  border: 2px solid rgba(46,204,113,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Optimized transition animation */
  z-index: 1200;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { 
  opacity: 1; 
  transform: translateX(-50%) translateY(0); /* Keep horizontal center, remove downward offset */
  pointer-events: auto; 
}
.has-mega .mega .col h4 { 
  margin: 0 0 10px; 
  font-size: 15px; 
  font-weight: 700;
  color: var(--color-primary); 
  letter-spacing: .3px;
}
.has-mega .mega .col a { 
  display: block; 
  padding: 7px 10px; 
  border-radius: 8px; 
  color: var(--color-gray-700); 
  transition: background .2s, color .2s;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
.has-mega .mega .col a:hover { 
  background: rgba(46,204,113,0.12); 
  color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
  .has-mega .mega { display: none; }
}

/* ========================================
   Inquiry Modal Styles (Universal)
   ======================================== */

/* Modal Overlay & Container */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inquiry-modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10002;
    padding: var(--spacing-xxl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: var(--color-gray-600);
    padding: 0;
}

.modal-close:hover {
    background-color: var(--color-light);
    transform: rotate(90deg);
    color: var(--color-gray-900);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Header */
.modal-header {
    margin-bottom: var(--spacing-xl);
    padding-right: 40px;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.modal-header p {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Form in Modal */
.inquiry-modal .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.inquiry-modal .form-group {
    margin-bottom: 0;
}

.inquiry-modal .form-group.full-width {
    grid-column: 1 / -1;
}

.inquiry-modal .form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-gray-700);
    font-size: 0.95rem;
}

.inquiry-modal .form-group input,
.inquiry-modal .form-group select,
.inquiry-modal .form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-gray-800);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inquiry-modal .form-group input:focus,
.inquiry-modal .form-group select:focus,
.inquiry-modal .form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.inquiry-modal .form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-primary);
}

.inquiry-modal .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.inquiry-modal .checkbox-group input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.inquiry-modal .checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

.inquiry-modal .checkbox-group a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.inquiry-modal .checkbox-group a:hover {
    color: var(--color-primary-dark);
}

.inquiry-modal .contact-form button[type="submit"] {
    grid-column: 1 / -1;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.inquiry-modal .contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.inquiry-modal .contact-form button[type="submit"]:disabled {
    background-color: var(--color-gray-400);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: var(--spacing-xl);
        max-height: 95vh;
    }
    
    .modal-header {
        padding-right: 30px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-header p {
        font-size: 0.95rem;
    }
    
    .inquiry-modal .contact-form {
        grid-template-columns: 1fr;
    }
    
    .inquiry-modal .form-group {
        grid-column: 1 !important;
    }
    
    .modal-close {
        top: var(--spacing-md);
        right: var(--spacing-md);
        width: 32px;
        height: 32px;
    }
    
    .modal-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .inquiry-modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: var(--spacing-lg);
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-header p {
        font-size: 0.9rem;
    }
    
    .inquiry-modal .form-group label {
        font-size: 0.9rem;
    }
    
    .inquiry-modal .form-group input,
    .inquiry-modal .form-group textarea,
    .inquiry-modal .form-group select {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    .inquiry-modal .contact-form button[type="submit"] {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .inquiry-modal .checkbox-group label {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Required Field Indicators (Shared)
   ========================================== */

.form-group label .required,
.form-note .required {
    color: #e74c3c;
    font-weight: 600;
    margin-left: 2px;
}

.form-note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* ==========================================
   Privacy Policy Modal Styles (Shared)
   ========================================== */

#privacy-modal {
    display: none;
    position: fixed;
    z-index: 10100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

#privacy-modal.active {
    display: block;
}

#privacy-modal .modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

#privacy-modal .modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid var(--color-primary);
}

#privacy-modal .modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#privacy-modal .close-modal {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 0.25rem;
    opacity: 0.9;
}

#privacy-modal .close-modal:hover,
#privacy-modal .close-modal:focus {
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
    color: var(--color-primary);
}

#privacy-modal .modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    line-height: 1.7;
}

/* Custom scrollbar for privacy modal */
#privacy-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#privacy-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#privacy-modal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    transition: background 0.3s ease;
}

#privacy-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

#privacy-modal .modal-body .last-updated {
    color: var(--color-gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
}

#privacy-modal .modal-body h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

#privacy-modal .modal-body h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

#privacy-modal .modal-body p {
    margin-bottom: 1rem;
    color: #495057;
    line-height: 1.8;
}

#privacy-modal .modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#privacy-modal .modal-body ul li {
    margin-bottom: 0.75rem;
    color: #495057;
    line-height: 1.8;
}

#privacy-modal .modal-body ul li strong {
    color: #2c3e50;
    font-weight: 600;
}

#privacy-modal .modal-body a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

#privacy-modal .modal-body a:hover {
    color: #1a5490;
    border-bottom-color: #1a5490;
}

/* Responsive adjustments for Privacy Modal */
@media screen and (max-width: 768px) {
    #privacy-modal .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    #privacy-modal .modal-header {
        padding: 1rem 1.25rem;
    }

    #privacy-modal .modal-header h2 {
        font-size: 1.4rem;
    }

    #privacy-modal .modal-body {
        padding: 1.25rem;
        max-height: calc(85vh - 80px);
    }

    #privacy-modal .modal-body h3 {
        font-size: 1.15rem;
        margin-top: 1.5rem;
    }

    #privacy-modal .close-modal {
        font-size: 1.75rem;
    }
}

/* ==========================================
   Floating Contact Button
   ========================================== */

.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse-shadow 2s infinite;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(46, 204, 113, 0.6);
}

.floating-contact-btn:active {
    transform: scale(0.95);
}

.floating-contact-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(46, 204, 113, 0.6);
    }
}

/* ==========================================
   Quick Contact Modal
   ========================================== */

.quick-contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.quick-contact-modal.active {
    display: block;
}

.quick-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    pointer-events: auto;
    cursor: pointer;
}

.quick-contact-content {
    position: fixed;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 16px 0 0 0;
    width: 450px;
    max-width: 90vw;
    height: 85vh;
    max-height: 700px;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    animation: slideInFromRight 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom right;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.quick-contact-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-gray-600);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.quick-contact-close:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-900);
    transform: rotate(90deg);
}

.quick-contact-header {
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid var(--color-primary);
}

.quick-contact-header h2 {
    margin: 0 0 0.35rem 0;
    color: var(--color-gray-900);
    font-size: 1.6rem;
    font-weight: 600;
}

.quick-contact-header p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
}

.quick-contact-form {
    padding: 1.5rem 2rem 1.75rem;
}

.quick-contact-form .form-group {
    margin-bottom: 1rem;
}

.quick-contact-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

.quick-contact-form .form-group input,
.quick-contact-form .form-group select,
.quick-contact-form .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.quick-contact-form .form-group input:focus,
.quick-contact-form .form-group select:focus,
.quick-contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.quick-contact-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.quick-contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.quick-contact-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.quick-contact-form .checkbox-group label {
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

.quick-contact-form .checkbox-group label a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.quick-contact-form .checkbox-group label a:hover {
    text-decoration: underline;
}

.quick-contact-form .form-note {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 0.85rem;
    color: var(--color-gray-600);
}

.quick-contact-form .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Custom scrollbar for quick contact modal */
.quick-contact-content::-webkit-scrollbar {
    width: 8px;
}

.quick-contact-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.quick-contact-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.quick-contact-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Responsive adjustments for Quick Contact Modal */
@media screen and (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .floating-contact-btn svg {
        width: 24px;
        height: 24px;
    }

    .quick-contact-content {
        width: 100%;
        max-width: 100vw;
        height: 90vh;
        border-radius: 16px 16px 0 0;
    }

    .quick-contact-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .quick-contact-header h2 {
        font-size: 1.5rem;
    }

    .quick-contact-header p {
        font-size: 0.875rem;
    }

    .quick-contact-form {
        padding: 1.5rem;
    }

    .quick-contact-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

@media screen and (max-width: 480px) {
    .floating-contact-btn {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }

    .quick-contact-content {
        height: 95vh;
    }

    .quick-contact-header h2 {
        font-size: 1.3rem;
    }

    .quick-contact-form {
        padding: 1.25rem;
    }
}
