/* ===== THEME VARIABLES ===== */
:root {
  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f5f9;
  --text-primary: #2d3748;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Brand Colors (Same for both themes) */
  --primary: #0056b3;
  --primary-dark: #003d82;
  --primary-light: #4d88ff;
  --secondary: #ff6b35;
  --accent: #00b4d8;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #ff8c42 100%);
  --gradient-dark: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Raleway', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max-width: 1320px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #374151;
    --text-primary: #f8f9fa;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.6);
  }
}

/* Manual Dark Theme Class (optional override) */
[data-theme="dark"] {
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-tertiary: #374151;
  --text-primary: #f8f9fa;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #4a5568;
  --shadow-color: rgba(0, 0, 0, 0.5);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f5f9;
  --text-primary: #2d3748;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  padding-top: 80px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 75px;
  display: flex;
  align-items: center;
}

.header.scrolled,
body.scrolled .header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  min-height: 65px;
}

/* Dark theme header */
@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(26, 32, 44, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header.scrolled,
  body.scrolled .header {
    background: rgba(26, 32, 44, 0.98);
  }
}

/* Logo Styles */
.logo {
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  margin-right: 10px;
  transition: all 0.3s ease;
  filter: brightness(1);
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .logo-img {
    filter: brightness(1.2) contrast(0.9);
  }
}

.sitename {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  line-height: 1.3;
}

.sitename .brand-exim {
  display: block;
  width: 100%;
  margin-top: -2px;
  font-size: 0.8em;
}

/* Header brand name - white color */
.header .sitename.header-brand,
.header .sitename.header-brand .brand-parnadi,
.header .sitename.header-brand .brand-agrotech,
.header .sitename.header-brand .brand-exim {
}

/* Footer and other sections - colored brand name */
.sitename:not(.header-brand) .brand-parnadi {
  color: #0056b3; /* Dark blue */
}

.sitename:not(.header-brand) .brand-agrotech {
  color: #00b4d8; /* Teal/light blue */
}

.sitename:not(.header-brand) .brand-exim {
  color: #4a5568; /* Dark grey */
}

/* Apply same styling to h2 with sitename class */
h2.sitename {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

h2.sitename .brand-parnadi {
  color: #0056b3; /* Dark blue */
}

h2.sitename .brand-agrotech {
  color: #00b4d8; /* Teal/light blue */
}

h2.sitename .brand-exim {
  color: #4a5568; /* Dark grey */
}

/* Brand name styling in copyright and other sections */
.brand-parnadi {
  color: #0056b3; /* Dark blue */
}

.brand-agrotech {
  color: #00b4d8; /* Teal/light blue */
}

.brand-exim {
  color: #4a5568; /* Dark grey */
}

/* Navigation Menu */
.navmenu {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.nav-item {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.4;
  text-transform: none;
  vertical-align: middle;
  min-height: 44px;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 180, 216, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link span,
.nav-link i {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(0, 86, 179, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px 3px 0 0;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 1;
  }
}

/* Dropdown Styles */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown > .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.nav-item.dropdown .toggle-dropdown {
  font-size: 11px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-top: 0;
  position: relative;
  top: 0;
}

.nav-item.dropdown:hover .toggle-dropdown,
.nav-item.dropdown.active .toggle-dropdown {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--bg-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  min-width: 240px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border: 1px solid var(--border-color);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: dropdownFadeIn 0.3s ease;
}

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

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle i {
  font-size: 1.2rem;
}

/* ===== SERVICE DETAILS PAGE ===== */
.service-details-page .main {
  padding-top: 80px;
}

.page-title {
  background: var(--bg-secondary);
  padding: 100px 0 60px;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  animation: fadeInUp 1s ease;
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: fadeInUp 1s ease 0.2s both;
}

.breadcrumbs li {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-tertiary);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.breadcrumbs .current {
  color: var(--primary);
  font-weight: 600;
}

/* Service Details Sections */
.service-details {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  scroll-margin-top: 100px;
}

.service-details:nth-child(even) {
  background: var(--bg-secondary);
}

.services-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
  border: 1px solid var(--border-color);
}

.services-img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.service-details h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.service-details h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.service-details p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.service-details ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  border-left: 4px solid transparent;
  border: 1px solid var(--border-color);
}

.service-details ul li:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary);
}

.service-details ul li i {
  color: var(--success);
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.service-details ul li span {
  color: var(--text-primary);
  font-weight: 500;
}



/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader:before {
  content: '';
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===== STATS COUNTER ===== */
.about-stats {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== MEMBER INFO ===== */
.member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition-medium);
}

.member:hover .member-info {
  transform: translateY(0);
}

.member-info-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.member-info-content span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.social {
  margin-top: 1rem;
}

.social a {
  color: white;
  margin-right: 1rem;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== PORTFOLIO INFO ===== */
.portfolio-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio-info a {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.portfolio-info a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ===== NAVIGATION ARROWS (SLIDER) ===== */
.navigation-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 10;
}

.arrow {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  font-size: 1.2rem;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ===== SLIDE INDICATORS ===== */
.premium-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--secondary);
  transform: scale(1.2);
}

.indicator-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 10px;
}

.indicator:hover .indicator-tooltip {
  opacity: 1;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

/* ===== GRADIENT OVERLAYS ===== */
.gradient-overlay-1 {
  background: linear-gradient(135deg,
      rgba(0, 86, 179, 0.85) 0%,
      rgba(0, 180, 216, 0.75) 50%,
      rgba(45, 55, 72, 0.8) 100%);
}

.gradient-overlay-2 {
  background: linear-gradient(135deg,
      rgba(139, 69, 19, 0.85) 0%,
      rgba(210, 105, 30, 0.75) 50%,
      rgba(45, 55, 72, 0.8) 100%);
}

.gradient-overlay-3 {
  background: linear-gradient(135deg,
      rgba(0, 128, 0, 0.85) 0%,
      rgba(34, 139, 34, 0.75) 50%,
      rgba(45, 55, 72, 0.8) 100%);
}

/* ===== ADDITIONAL DARK MODE ADJUSTMENTS ===== */
@media (prefers-color-scheme: dark) {
  .hero {
    background: #0a0e17;
  }

  .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
  }

  .footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  .service-item.item-cyan {
    border-top-color: var(--accent);
  }

  .service-item.item-orange {
    border-top-color: var(--secondary);
  }

  .service-item.item-teal {
    border-top-color: #20c997;
  }

  .service-item.item-red {
    border-top-color: var(--danger);
  }

  .service-item.item-indigo {
    border-top-color: #6610f2;
  }

  .service-item.item-pink {
    border-top-color: #e83e8c;
  }

  .highlight {
    background: linear-gradient(135deg, #ff8c42, #ffb366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* ===== CONTAINER FIXES ===== */
.container-fluid.container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  max-width: 100%;
}

/* ===== MOBILE SPECIFIC ===== */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
    margin-right: 8px;
  }

  .sitename {
    font-size: 14px;
    line-height: 1.2;
  }
  
  .sitename .brand-exim {
    font-size: 0.75em;
    margin-top: -1px;
  }
  
  .navmenu ul {
    gap: 2px;
  }
  
  .navmenu ul li a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .header.scrolled .logo-img {
    height: 35px;
  }

  .header.scrolled .sitename {
    font-size: 16px;
  }
  
  .header.scrolled .sitename .brand-exim {
    font-size: 14px;
  }

  .container-fluid.container-xl {
    padding: 0 12px;
  }
  
  .navmenu ul {
    gap: 0;
    flex-wrap: wrap;
  }
  
  .navmenu ul li a {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .navmenu ul li:last-child a {
    padding: 10px 18px;
    margin-left: 8px;
  }

  .section {
    scroll-margin-top: 80px;
  }

  .navigation-arrows {
    padding: 0 20px;
  }

  .arrow {
    width: 50px;
    height: 50px;
  }

  .slide-indicators {
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 35px;
    margin-right: 6px;
  }

  .sitename {
    font-size: 14px;
  }
  
  .sitename .brand-exim {
    font-size: 0.75em;
  }

  .badge {
    font-size: 0.8rem;
    padding: 6px 15px;
  }

  .content-wrapper {
    padding: 0 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {

  .header,
  .footer,
  .scroll-top,
  .theme-toggle,
  .mobile-nav-toggle {
    display: none;
  }

  .section {
    padding: 40px 0;
    background: white !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-secondary);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --border-color: currentColor;
  }

  .service-item,
  .faq-item,
  .info-item,
  .member,
  .portfolio-content {
    border: 2px solid currentColor;
  }
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.dropdown-item {
  padding: 12px 24px;
  display: block;
  color: var(--text-secondary);
  font-weight: 400;
  border-radius: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(0, 86, 179, 0.08);
  color: var(--primary);
  padding-left: 28px;
  transform: translateX(4px);
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

/* Remove background color for agriculture product in dropdown */
.dropdown-item[href*="agro"]:hover {
  background: rgba(0, 86, 179, 0.08) !important;
  color: var(--primary) !important;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10001;
}

.mobile-nav-toggle:hover {
  color: var(--primary);
  background: rgba(0, 86, 179, 0.08);
}

.mobile-nav-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-nav-toggle i {
  transition: transform 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"] i.bi-list {
  transform: rotate(90deg);
}

/* Contact Button */
.nav-item-contact {
  margin-left: 8px;
}

.nav-link-contact {
  background: linear-gradient(135deg, #0056b3, #00b4d8) !important;
  color: white !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-link-contact::before {
  background: linear-gradient(135deg, #004494, #0099cc) !important;
  opacity: 0;
}

.nav-link-contact:hover {
  background: linear-gradient(135deg, #004494, #0099cc) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
  color: white !important;
}

.nav-link-contact:hover::before {
  opacity: 0;
}

.nav-link-contact.active {
  background: linear-gradient(135deg, #0056b3, #00b4d8) !important;
  color: white !important;
}

.nav-link-contact.active::after {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  display: flex;
  max-height: 70vh;
  min-height: 40vh;
  align-items: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.premium-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-content {
  position: relative;
  z-index: 3;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.content-wrapper {
  max-width: 800px;
  padding: 0 20px;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInDown 1s ease;
}

.animated-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s ease 0.3s both;
}

.animated-text {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.6s both;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.9s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-primary);
  scroll-margin-top: 100px;
  transition: background-color 0.3s ease;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
}

.about .img-fluid {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.6s ease;
  border: 1px solid var(--border-color);
}

.about .img-fluid:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.about-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-content .fst-italic {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 15px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.about-content ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
}

.about-content ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.about-content ul li i {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 1.5rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.about-content ul li h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-content ul li p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--bg-primary);
}

.service-item {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  height: 100%;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-item p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.portfolio-filters li {
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  color: var(--text-primary);
  list-style-type: none;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  list-style-type: none;

}

.portfolio-content {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  background: var(--bg-primary);
}

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

/* ===== TEAM SECTION ===== */
.team {
  background: var(--bg-primary);
}

.member {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* ===== FAQ SECTION ===== */
.faq {
  background: var(--bg-secondary);
}

.faq-item {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  padding: 1.2rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.faq-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
  color: var(--text-secondary);
}

.faq-item.faq-active .faq-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-primary);
}

.info-wrap {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.info-item {
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.info-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 1rem;
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.info-item p {
  color: var(--text-secondary);
}

.php-email-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.php-email-form .form-control {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.php-email-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
  outline: none;
}

.php-email-form button[type="submit"] {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
  width: 100%;
  cursor: pointer;
}

.php-email-form button[type="submit"]:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
}

.footer-top {
  padding: 4rem 0 2rem;
}

.footer-links h4,
.footer-newsletter h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.copyright {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gradient-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile Navigation Overlay */
.mobile-nav-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9997;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .navmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 0 30px;
    overflow-y: auto;
    z-index: 9998;
    margin-left: 0;
    border-left: 1px solid var(--border-color);
  }

  .navmenu.active {
    right: 0;
  }

  .nav-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 0 20px;
  }

  .nav-item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    height: auto;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 16px 20px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin: 4px 0;
    min-height: 50px;
  }
  
  .nav-link.active {
    background: rgba(0, 86, 179, 0.12);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    color: var(--primary);
  }
  
  .nav-link.active::after {
    display: none;
  }
  
  .nav-item-contact {
    margin-left: 0;
    margin-top: 12px;
  }
  
  .nav-link-contact {
    margin-left: 0 !important;
    margin-top: 0 !important;
    border-radius: 8px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--bg-secondary);
    margin: 8px 0 0 0;
    border: none;
    padding: 8px 0;
    border-radius: 8px;
    display: none;
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .nav-item.dropdown.active .dropdown-menu {
    display: flex;
  }
  
  .dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
  }
  
  .dropdown-item {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
  }
  
  .dropdown-item:hover {
    padding-left: 44px;
    transform: translateX(4px);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .header {
    padding: 12px 0;
    min-height: 70px;
  }

  .header.scrolled,
  body.scrolled .header {
    min-height: 65px;
    padding: 8px 0;
  }

  .logo-img {
    height: 40px;
    width: 40px;
  }

  .sitename {
    font-size: 14px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .animated-title {
    font-size: 2.5rem;
  }

  .service-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .navmenu {
    width: 300px;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 10px 0;
    min-height: 65px;
  }

  .logo-img {
    height: 35px;
    width: 35px;
  }

  .sitename {
    font-size: 12px;
  }

  .sitename .brand-exim {
    font-size: 0.7em;
  }

  .mobile-nav-toggle {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .navmenu {
    width: 280px;
    max-width: 90vw;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 14px;
  }

  .animated-title {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

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

.align-items-center {
  align-items: center;
}

/* ===== THEME TOGGLE BUTTON (Optional) ===== */
.theme-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1;
}


/* ===== MOBILE MENU CLOSE BUTTON ===== */
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.mobile-nav-close:hover {
  background: var(--primary-dark);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

.mobile-nav-close:active {
  transform: rotate(90deg) scale(0.95);
}

.mobile-nav-close i {
  font-size: 20px;
  line-height: 1;
}

/* Hide close button on desktop */
@media (min-width: 1200px) {
  .mobile-nav-close {
    display: none !important;
  }
}

/* Mobile menu adjustments */
@media (max-width: 1199px) {
  .navmenu {
    padding-top: 80px; /* Space for close button */
  }
}

/* Dark theme support for close button */
@media (prefers-color-scheme: dark) {
  .mobile-nav-close {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.5);
  }
  
  .mobile-nav-close:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.7);
  }
}

[data-theme="dark"] .mobile-nav-close {
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.5);
}

[data-theme="dark"] .mobile-nav-close:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.7);
}

/* Animation for close button when menu opens */
@keyframes slideInRotate {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.mobile-nav-active .mobile-nav-close {
  animation: slideInRotate 0.3s ease-out;
}

/* Alternative close button styles (uncomment if you prefer) */

/* Style 2: Square with rounded corners */
/*
.mobile-nav-close {
  border-radius: 8px;
  width: 45px;
  height: 45px;
}
*/

/* Style 3: Outlined style */
/*
.mobile-nav-close {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.mobile-nav-close:hover {
  background: var(--primary);
  color: white;
}
*/

/* Style 4: Gradient background */
/*
.mobile-nav-close {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.mobile-nav-close:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
*/

/* Accessibility focus state */
.mobile-nav-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Ripple effect on click (optional) */
.mobile-nav-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.mobile-nav-close:active::after {
  width: 100px;
  height: 100px;
}

/* Smooth transition when menu closes */
.navmenu {
  transition: right 0.3s ease, transform 0.3s ease;
}

/* Ensure close button stays visible above menu items */
.mobile-nav-close {
  z-index: 10001;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .mobile-nav-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .mobile-nav-close i {
    font-size: 24px;
  }
  
  .navmenu {
    padding-top: 70px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .mobile-nav-close {
    border: 2px solid currentColor;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-close,
  .mobile-nav-close:hover {
    transition: none;
    animation: none;
    transform: none;
  }
  
  .mobile-nav-close:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .mobile-nav-close {
    display: none !important;
  }
}

.loading {
    display: none !important;
    color: #fff;
    font-weight: 600;
}

.error-message {
    display: none !important;
    color: #ff0000;
    font-weight: 600;
}
.sent-message {
    display: none !important;
    color: #00ff00;
    font-weight: 600;
}
