/* ===============================================
  CSS Variables / Root
=============================================== */
:root {
  /* Brand Colors */
  --primary-color: #003e83;
  --accent-color: #04ebf1;

  /* Extended Color Palette */
  --primary-dark: #002d5f;
  --primary-light: #0056b8;
  --accent-dark: #03c5ca;
  --accent-light: #4ffbff;
  --accent-cta: #04ebf1;

  /* Header & Footer Specific */
  --header-bg: #ffffff;
  --header-text: #003e83;
  --header-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --footer-bg: #ffffff;
  --footer-bg-gradient: linear-gradient(135deg, #ffffff, #f8f9fa);
  --footer-bg-bottom: #f8f9fa;
  --footer-text: #333333;
  --footer-text-secondary: #666666;
  --footer-border: rgba(0, 0, 0, 0.08);

  /* Text Colors */
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-dark: #333333;

  /* UI Colors */
  --border-light: rgba(255, 255, 255, 0.1);
  --bg-overlay: rgba(255, 255, 255, 0.05);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));

  /* Typography Scale */
  --h1-size: clamp(2.75rem, 5vw, 4.5rem);
  --h2-size: clamp(2.25rem, 4vw, 3.5rem);
  --h3-size: clamp(1.75rem, 3vw, 2.5rem);
  --h4-size: clamp(1.5rem, 2.5vw, 2rem);
  --h5-size: clamp(1.25rem, 2vw, 1.75rem);
  --h6-size: clamp(1rem, 1.5vw, 1.25rem);

  /* Line Heights */
  --heading-line-height: 1.2;
  --body-line-height: 1.6;

  /* Letter Spacing */
  --heading-letter-spacing: -0.02em;
  --body-letter-spacing: 0.01em;

  /* Font Weights */
  --heading-bold: 700;
  --heading-semibold: 600;
  --heading-medium: 500;

  /* Spacing & Sizing */
  --section-padding: 5rem;
  --card-padding: 1.5rem;
  --border-radius: 12px;
  --button-radius: 50px;
  --card-radius: 16px;
  --card-padding-x: 2rem;
  --card-padding-y: 2rem;

  /* Enhanced Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Glassmorphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===============================================
  Base & Typography
=============================================== */
/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Heading Styles */
h1,
.h1 {
  font-size: var(--h1-size);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-letter-spacing);
  font-weight: var(--heading-bold);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-color) 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2,
.h2 {
  font-size: var(--h2-size);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-letter-spacing);
  font-weight: var(--heading-semibold);
  margin-bottom: 1.25rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

h2:hover::after {
  width: 100px;
}

h3,
.h3 {
  font-size: var(--h3-size);
  line-height: var(--heading-line-height);
  font-weight: var(--heading-semibold);
  margin-bottom: 1rem;
  color: var(--text-color);
  transition: color var(--transition-normal);
}

h3:hover {
  color: var(--accent-color);
}

h4,
.h4 {
  font-size: var(--h4-size);
  line-height: var(--heading-line-height);
  font-weight: var(--heading-medium);
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

h5,
.h5 {
  font-size: var(--h5-size);
  line-height: var(--heading-line-height);
  font-weight: var(--heading-medium);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h6,
.h6 {
  font-size: var(--h6-size);
  line-height: var(--heading-line-height);
  font-weight: var(--heading-medium);
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Display Classes */
.display-3 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: var(--heading-bold);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--text-color) 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.display-4 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: var(--heading-bold);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* Text Styles */
.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.section-title {
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-color);
}

.section-subtitle {
  font-size: var(--h6-size);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* ===============================================
  Navigation
=============================================== */
.navbar {
  padding: 1.2rem 0;
  background: var(--header-bg) !important;
  transition: all var(--transition-normal);
  z-index: 1030;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: var(--header-bg) !important;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.nav-link {
  color: var(--header-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition-normal);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

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

.navbar-toggler {
  border: 2px solid var(--primary-color);
  padding: 0.5rem;
  transition: all var(--transition-normal);
}

.navbar-toggler:hover {
  background: var(--primary-color);
}

.navbar-toggler:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===============================================
  Footer
=============================================== */
.main-footer {
  padding: 5rem 0 0;
  background: url("../images/footer-bg.gif"), var(--footer-bg);
  background-position: bottom, center;
  background-size: 100% auto, cover;
  background-repeat: no-repeat;
  color: var(--footer-text);
  position: relative;
}

.footer-curve-divider {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.footer-curve-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--footer-bg);
  clip-path: ellipse(50% 100% at 50% 100%);
}

.footer-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: var(--heading-semibold);
  position: relative;
  padding-bottom: 1rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-normal);
}

.footer-title:hover::after {
  width: 50px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: inline-block;
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.footer-contact li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}

.footer-contact li:hover {
  color: var(--primary-color);
}

.footer-contact li:hover i {
  transform: scale(1.1);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--footer-text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  background: var(--accent-color);
}

.footer-bottom {
  font-size: 0.8rem;
  margin-top: 5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg-bottom);
  text-align: center;
}

/* ===============================================
  Hero Section
=============================================== */
.hero-section {
  position: relative;
  width: 100%;
  max-height: 1080px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: block;
}

.background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================================
  Layout & Components
=============================================== */
.text-accent {
  color: var(--accent-color) !important;
}

.themed-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.themed-section.gradient {
  background: var(--gradient-primary);
}

.themed-section.light {
  background: var(--bg-overlay);
}

.themed-section.accent {
  background: var(--accent-color);
}

.themed-section.cta {
  background: var(--accent-cta);
}

.themed-section.cta {
  background: var(--accent-cta);
}

.themed-section.cta h1.display-4 {
  color: var(--primary-color);
  /* Override the gradient text effect */
  background: none;
  -webkit-text-fill-color: var(--primary-color);
}

.themed-section.cta p.lead {
  color: var(--primary-dark);
}

.themed-section.cta .themed-button.primary {
  background: var(--primary-color);
  color: white;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.themed-section.cta .themed-button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.themed-section.cta .themed-button.primary i {
  color: var(--accent-color);
}

.themed-section.light-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.themed-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

/* Buttons */
.themed-button {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.themed-button.accent {
  background: var(--accent-color);
  color: var(--primary-color);
}

.themed-button.accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ===============================================
  Cards & Accordion
=============================================== */
.themed-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding-y) var(--card-padding-x);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.themed-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.themed-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-hover);
}

.themed-card:hover::before {
  opacity: 0.05;
}

/* Service Cards */
.service-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.75;
  transition: all var(--transition-normal);
}

.service-card:hover .service-number {
  opacity: 1;
  transform: scale(1.1);
}

/* Accordion Styles */
.service-icon {
  transition: all var(--transition-normal);
  color: var(--accent-color);
  font-size: 1.25rem;
}

.accordion-body {
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-top: 1px solid var(--glass-border);
}

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

.service-details li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-details li i {
  color: var(--accent-color);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* ===============================================
  Email
=============================================== */
.email-display {
  font-family: monospace;
  background: var(--glass-bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  user-select: all;
  display: inline-block;
  color: var(--text-color);
}

.copy-btn {
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.copy-btn:hover {
  transform: translateY(-2px);
}

.process-step {
  transition: all var(--transition-normal);
}

.process-step:hover {
  transform: translateX(10px);
}

.step-icon {
  transition: all var(--transition-normal);
}

.process-step:hover .step-icon {
  transform: scale(1.2);
}

/* ===============================================
  Gallery Portfolio
=============================================== */
/* ===============================================
  Gallery Portfolio
=============================================== */
.gallery-row {
  position: relative;
  padding: 2rem 0;
  overflow-x: scroll;
  overflow-y: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin: 2rem 0;
  border-radius: 16px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.gallery-row::-webkit-scrollbar {
  display: none;
}

.gallery-row.active {
  cursor: grabbing;
}

.scroll-container {
  display: inline-flex;
  gap: 2rem;
  padding: 0 2rem;
  min-width: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.gallery-item {
  flex: 0 0 auto;
  width: 400px;
  height: 300px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.item-title {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.item-description {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

/* Video Container Styles */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .play-button {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox-media {
  position: relative;
  width: 100%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Video Wrapper Styles */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 90vw;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Image Wrapper Styles */
.image-wrapper {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-info {
  transform: translateY(0);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.close-lightbox:hover {
  opacity: 1;
}

/* Navigation Controls */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2001;
  padding: 1rem;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-item {
    width: 280px;
    height: 210px;
  }
  
  .scroll-container {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .lightbox {
    padding: 1rem;
  }
  
  .close-lightbox {
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
  }
  
  .lightbox-nav {
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-info {
    padding: 15px;
  }

  .video-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .image-wrapper {
    max-width: 100%;
  }
}
/* ===============================================
  Media Queries
=============================================== */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  :root {
    --section-padding: 4rem;
    --card-padding-x: 1.5rem;
    --card-padding-y: 1.5rem;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 3rem;
  }

  body {
    padding-top: 70px;
  }

  .navbar-collapse {
    background: var(--header-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 2.5rem;
    --card-padding: 1.25rem;
  }

  .service-number {
    font-size: 2rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .footer-curve-divider {
    height: 50px;
    top: -50px;
  }

  .main-footer {
    background-size: 100% 100%, 100% 100%;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2rem;
    --card-padding-x: 1rem;
    --card-padding-y: 1rem;
  }

  .hero-content {
    text-align: center;
  }

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

/* Print Styles */
@media print {
  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }

  .navbar,
  .hero-section video,
  .themed-button,
  .social-links {
    display: none !important;
  }

  .themed-section {
    background: none !important;
    padding: 1rem 0 !important;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  .footer-curve-divider {
    display: none;
  }
}