@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  /* Brand Colors - Updated */
  --primary-color: #0044ff;
  /* Electric Blue from Logo */
  --primary-dark: #002299;
  --secondary-color: #ff6b00;
  /* Energetic Orange */
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --bg-light: #ffffff;
  --bg-off-white: #f1f5f9;
  --bg-dark: #0f172a;

  /* Typography - Modern */
  --font-main: 'Outfit', sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 6rem;

  /* Modern UI */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass: rgba(255, 255, 255, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  /* overflow-x: hidden; removed to fix sticky header */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Modern Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  /* Pill shape */
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 68, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--secondary-color), #ff9900);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 68, 255, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
  /* Gradient change on hover */
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

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

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -1px;
}

.section-title span {
  display: block;
  width: 80px;
  height: 6px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 3px;
}

/* Glassmorphism Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  /* More opaque for logo blend */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: padding 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem var(--spacing-md);
  /* Reduced vertical padding for large logo */
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 95px;
  /* Much larger */
  mix-blend-mode: multiply;
  /* Hides white bg */
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  font-size: 1.1rem;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a:not(.btn):hover {
  color: var(--primary-color);
}

/* Active Button Style */
.nav-links .btn.active {
  background: var(--secondary-color);
  color: white !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: var(--radius-sm);
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  border: 1px solid #f0f0f0;
}

.dropdown-content a {
  color: var(--text-dark) !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--bg-off-white);
  color: var(--primary-color) !important;
  padding-left: 20px;
  /* Slight slide effect */
}

/* Show on Hover (Desktop) */
.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
  .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    /* Stack vertically on mobile */
    display: none;
    /* Hidden by default */
    box-shadow: none;
    border: none;
    background-color: #f8f9fa;
    width: 100%;
  }

  /* Show when parent is clicked/active (Requires JS or simplify to always show if needed) 
     For now, we'll make it always visible or hover-based which is tricky on mobile.
     Let's make it visible on hover for simplicity or refine main.js later if needed.
     Actually, for mobile menu which is flex-col, let's keep it simple: 
     Hover doesn't work well. Let's make it always visible in mobile menu or add a toggle.
     For this iteration: Always visible in mobile menu to ensure accessibility. 
  */
  .nav-links.active .dropdown-content {
    display: block;
    padding-left: 0;
  }

  .dropdown-content a {
    padding: 10px;
    font-size: 0.9rem;
    color: #555 !important;
  }
}

/* Modern Hero Section */
.hero {
  /* Overlay gradient for text readability + modern feel */
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.7) 0%, rgba(0, 68, 255, 0.3) 100%), url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1470&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: -webkit-linear-gradient(#fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e2e8f0;
}

.team-member {
  position: relative;
  overflow: visible;
  /* Allow info box to hang out */
  margin-bottom: 2rem;
  /* More space at bottom */
}

.team-info {
  background: white;
  width: 90%;
  /* Wider */
  margin: -30px auto 0;
  /* Less negative margin to push it down */
  padding: 2rem 1rem;
  /* More padding */
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-name {
  font-weight: 800;
  font-size: 1.8rem;
  /* Much larger */
  color: var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Features Grid - Float Effect */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: var(--bg-off-white);
  border-radius: 50%;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
  background: rgba(0, 68, 255, 0.1);
}

/* Services - Image Cards */
.services {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-off-white);
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-content: center;
  /* Fix alignment */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  /* Adjusted width */
  gap: 2.5rem;
  text-align: center;
  justify-content: center;
  /* Fix alignment */
  max-width: 1000px;
  margin: 0 auto;
}


.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.team-photo-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team-member:hover .team-photo-img {
  transform: scale(1.05);
  /* Zoom effect */
}

.service-img {
  height: 240px;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-content {
  padding: 2rem;
  position: relative;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-content h3 {
  font-size: 1.8rem;
  color: var(--bg-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Testimonials - Modern Cards */
.testimonials {
  padding: var(--spacing-xl) 0;
  background: var(--bg-dark);
  color: white;
  position: relative;
}

.section-title-light h2 {
  color: white;
}

.section-title-light span {
  background: var(--secondary-color);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  /* Glass dark */
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.testimonial-stars {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonial Slider */
.testimonial-slider-container {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
  /* Space for buttons */
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.testimonial-card {
  flex: 0 0 100%;
  /* Default mobile: 1 slide */
  box-sizing: border-box;
}

/* Desktop: 3 slides */
@media (min-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 14px);
    /* (100% - (2 * gap)) / 3 roughly */
  }
}

/* Tablet: 2 slides */
@media (min-width: 768px) and (max-width: 991px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 10px);
  }
}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  /* Very subtle glass */
  color: #94a3b8;
  /* Discrete grey */
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}


/* Financing / CTA Section */
.financing {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.financing h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.financing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.1;
  pointer-events: none;
}

/* Footer */
footer {
  background-color: #0b0f19;
  /* Deep dark blue/black */
  color: #a0aec0;
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--secondary-color);
  /* Pop of orange */
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  justify-content: center;
  /* Fix alignment */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: left;
}

.footer-col h4 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  transition: padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.qualiopi-badge {
  background: white;
  padding: 15px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}



/* Animations Logic */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page Headers */
.page-header {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: -85px;
  /* Pull behind header */
  padding-top: 85px;
}

/* Mobile Menu Button - Hidden by default on Desktop */
.hamburger {
  display: none;
}

/* Responsive & Mobile Menu */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    /* Smaller text on mobile */
  }

  .hamburger {
    display: flex;
    /* Flex to center icon - VISIBLE on Mobile */
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: white;
    /* Ensure non-transparent for click target */
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    position: absolute;
    /* Absolute to avoid flex overlaps */
    right: 1.5rem;
    /* Fixed to right */
    top: 50%;
    transform: translateY(-50%);
    /* Center vertical */
    z-index: 3000;
    /* Super high priority */
    pointer-events: auto;
    /* Force clickable */
    user-select: none;
    /* No text selection */
    -webkit-tap-highlight-color: transparent;
    /* No mobile tap highlight */
    outline: none;
    padding: 0;
    margin: 0;
  }

  .hamburger:hover {
    background: rgba(0, 68, 255, 0.1);
  }

  .nav-links {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 85px;
    /* Height of header */
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    /* Very high */
    border-top: 1px solid #f1f5f9;
  }

  .nav-links.active {
    display: flex !important;
    /* Force show */
    animation: slideDown 0.3s ease-out;
  }

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

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

  /* Adjust page header text */
  .page-header h1 {
    font-size: 2.5rem;
  }

  /* Document Download Buttons - Mobile */
  .btn-text {
    display: none;
  }

  /* Compact button for icon only */
  a.btn-outline {
    padding: 0.8rem 1.2rem;
  }
}

/* Checklist / Equipment Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.checklist-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #f1f5f9;
}

.checklist-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.checklist-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: #f1f5f9;
}

.checklist-content {
  padding: 1.5rem;
}

.checklist-content h4 {
  color: var(--bg-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.checklist-content p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}


/* Checklist Icons Update */
.checklist-icon-wrapper {
  width: 100%;
  height: 120px;
  background: var(--bg-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.checklist-card:hover .checklist-icon-wrapper {
  background: var(--primary-color);
  color: white;
}

/* Specific colors for types */
.checklist-card:nth-child(even) .checklist-icon-wrapper {
  color: var(--secondary-color);
}


/* Payment Badge */
.payment-badge {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  }
}