/* 🎨 ROOT VARIABLES & GLOBAL STYLES */
:root {
  --primary-color: #005792;
  --secondary-color: #0d1421;
  --accent-color: #3ab6f8;
  --highlight-color: #ffffff;
  
  --text-light: #eaf6ff;
  --text-dark: #1a1a1a;
  --bg-dark: #0a0a0a;

  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-blue: #00bfff;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;

  --gradient-primary: linear-gradient(135deg, var(--primary-color), #0077c2);
  --shadow: 0 10px 30px rgba(0, 87, 146, 0.1);
  --shadow-hover: 0 15px 35px rgba(0, 87, 146, 0.2);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --border-radius: 12px;
  
  /* Header height - adjust this to match your actual header height */
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🌌 BODY STYLES WITH ANIMATED GRADIENT BACKGROUND */
body {
  color: var(--text-light);
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-dark);
  position: relative;

  /* User-requested background */
  background: 
      radial-gradient(circle at 30% 40%, rgba(0, 198, 255, 0.25) 0%, transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(74, 144, 226, 0.18) 0%, transparent 50%),
      radial-gradient(circle at center, rgba(0, 123, 255, 0.08), transparent 80%),
      linear-gradient(to bottom right, #0a0a0a, #121620);
  
  background-blend-mode: screen, screen, screen, normal;
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: floatingGlow 8s ease-in-out infinite;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}

@keyframes floatingGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -45%) scale(1.2); }
}

/* Header spacer to account for sticky header */
.header-spacer {
  height: var(--header-height);
  width: 100%;
}

.container-labo {
  width: 100%;
  
}

/* 🏆 HERO SECTION */
.hero-section {
  margin-top: 3rem;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 2rem 4rem;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.05) 0%, transparent 70%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  z-index: 2;
  position: relative;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-blue), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--accent-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #0088cc);
  color: white;
  padding: 0.75rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 191, 255, 0.5);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 90%;     
  max-height: 500px; 
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

  object-fit: contain;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  gap: 0.5rem;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}



/* ↔️ HORIZONTAL SCROLLING SECTION */
#section7 {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.section7-pin-container {
  height: 100vh;
  width: 700vw; /* 7 slides * 100vw each */
  display: flex;
  flex-wrap: nowrap;
  margin-top: 2rem;
}

.method-slide {
  height: 100vh;
  width: 100vw; /* Each slide takes full viewport width */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  flex-shrink: 0; /* Prevent slides from shrinking */
}

.method-slide:nth-child(even) {
  background-color: rgba(13, 20, 33, 0.3);
}

.method-slide:not(.section7-intro) .method-slide-content {
  background: rgba(13, 20, 33, 0.6);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.method-slide-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  padding: 3rem;
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Reverses layout for alternating design */
.method-slide:nth-child(odd):not(.section7-intro) .method-slide-content {
  flex-direction: row-reverse;
}

.method-details {
  flex: 1;
  padding: 1rem;
  position: relative;
  min-width: 0; /* Allows text to wrap properly */
}

.method-number {
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: -2rem;
  right: 2rem;
  z-index: 1;
}

.method-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--highlight-color);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.method-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.method-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--text-light);
  opacity: 0.9;
  line-height: 1.6;
}

.method-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Image container */
.method-image {
  flex: 1;
  min-width: 350px;
  max-width: 500px;
}

/* Image styling */
.method-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Intro slide specific styles */
.section7-intro .method-slide-content {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.intro-content {
  max-width: 800px;
}

.section7-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--highlight-color);
  background: linear-gradient(135deg, var(--accent-blue), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section7-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.scroll-prompt {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-color);
  font-weight: 300;
  animation: bounceHorizontal 2.5s infinite;
}

@keyframes bounceHorizontal {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%); }
  40% { transform: translateX(-40%); }
  60% { transform: translateX(-45%); }
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .method-slide-content {
    gap: 2rem;
    padding: 2rem;
  }
  
  .method-image {
    min-width: 300px;
    max-width: 400px;
  }
  
  .method-image img {
    height: 350px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-section {
    padding: 2rem;
  }
  
  .method-slide {
    padding: 1.5rem;
  }
  
  .method-slide-content {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px; /* Adjust for mobile header */
  }
  
  .hero-section {
    padding: 2.5rem;
  }
  
  .method-slide {
    padding: 1rem;
  }
  
  .method-slide-content,
  .method-slide:nth-child(odd):not(.section7-intro) .method-slide-content {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .method-image {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    order: -1; /* Image on top for mobile */
  }
  
  .method-image img {
    height: 250px;
  }
  
  .method-title {
    text-align: center;
  }

  .method-list li {
    text-align: left;
  }

  .method-number {
    font-size: clamp(3rem, 6vw, 4rem);
    top: -1rem;
    right: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {


  .method-slide-content {
    padding: 1.5rem 0.5rem;
  }
  
  .method-image img {
    height: 200px;
  }
  
  .method-number {
    font-size: clamp(2.5rem, 5vw, 3rem);
    top: -0.5rem;
    right: 0.5rem;
  }
}