/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full-screen height */
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle dark overlay for text contrast */
  background: linear-gradient(to bottom, rgba(31, 31, 31, 0.4) 0%, rgba(42, 42, 42, 0.8) 100%);
  z-index: 1;
}

/* Abstract animation effect inspired by reference */
.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(82, 80, 194, 0.15) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: pulse 15s infinite ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  padding: 20px;
}

.hero-content h1 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(82, 80, 194, 0.6);
  line-height: 1.2;
}

.hero-content .sub-headline {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.hero-content .btn-primary {
  display: inline-block;
  padding: 15px 40px;
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 1.4rem;
  background: linear-gradient(90deg, #4169e1 0%, #1348e7 100%);
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.hero-content .btn-primary:hover {
  background: linear-gradient(90deg, #1348e7 0%, #4169e1 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(65, 105, 225, 0.6);
}

.hero-content .btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

/* Animation for futuristic effect */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

/* Mobile Optimizations for Hero Section (Max 768px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
    height: auto;
    padding: 100px 0;
  }

  .hero-content {
    width: 95%;
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero-content .sub-headline {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }
  
  .hero-content .btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
}

/* Mobile Optimizations for Very Small Screens (Max 480px) */
@media (max-width: 480px) {
  .hero-section {
    min-height: 400px;
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
  }

  .hero-content .sub-headline {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-content .btn-primary {
    width: 90%;
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Problem / Solution Section */
/* Note: Using a general .section-container class for consistent padding */
.section-container {
  padding: 80px 20px;
}

#problem-solution {
  color: #ffffff; /* Dark text for contrast on white */
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.3;
  color: #ffffff; /* Main heading dark color */
}

.section-header p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #ffffff; /* Slightly lighter text for paragraphs */
  margin-bottom: 15px;
}

.flywheel-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.flywheel-quadrant {
  text-align: center;
  padding: 20px;
}

.flywheel-quadrant i {
  font-size: 3rem;
  color: #4169e1; /* Using brand accent color from reference */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(65, 105, 225, 0.2);
  display: block; /* Ensures margin works as expected */
}

.flywheel-quadrant h3 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flywheel-quadrant p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
}

/* Mobile Optimizations for Problem / Solution Section (Max 768px) */
@media (max-width: 768px) {
  .section-container {
    padding: 60px 15px;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .section-header p {
    font-size: 1.1rem;
  }
  
  /* Switch to 2 columns for tablets */
  .flywheel-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Mobile Optimizations for Very Small Screens (Max 480px) */
@media (max-width: 480px) {
  .section-container {
    padding: 40px 10px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .section-header p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Stack to 1 column for phones */
  .flywheel-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flywheel-quadrant i {
    font-size: 2.5rem;
  }

  .flywheel-quadrant h3 {
    font-size: 1.3rem;
  }

  .flywheel-quadrant p {
    font-size: 1rem;
  }
}

/* PROOF / CASE STUDIES SECTION */
#proof {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#proof:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

#proof::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(82, 80, 194, 0.2) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: pulse 15s infinite ease-in-out;
}

#proof .section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 1;
}

#proof .section-header h2 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(82, 80, 194, 0.5);
}

#proof .section-header p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.case-studies-container {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Space between case studies */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.case-study {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 40px;
}

.case-study-visual {
  min-height: 400px; /* Set a minimum height for the visual container */
  width: 100%;
  position: relative; /* Needed for positioning the img */
  overflow: hidden; /* Ensures the image doesn't overflow its container */
  border-radius: 10px;
}

.case-study-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is key - it will cover the entire container */
  object-position: center;
  display: block; /* Removes any default spacing */
  border-radius: 10px;
  border: 1px solid rgba(82, 80, 194, 0.4);
  box-shadow: inset 0 0 25px rgba(82, 80, 194, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-visual img:hover {
  transform: scale(1.03);
  box-shadow: inset 0 0 35px rgba(82, 80, 194, 0.4), 0 0 15px rgba(82, 80, 194, 0.3);
}

.case-study-content {
  padding: 10px;
}

.case-study-content h3 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(82, 80, 194, 0.6);
}

.case-study-content p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.case-study-content p strong {
  color: #5d8cfd; /* Brighter blue for emphasis */
  font-family: 'Neon-Heavy', sans-serif;
}

/* Keyframes for the pulse effect (should be defined once per stylesheet) */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

/* Tablet Optimizations (Max 768px) */
@media (max-width: 768px) {
  #proof {
    padding: 40px 15px;
    border-radius: 10px;
  }

  #proof .section-header {
    margin: 0 auto 40px auto;
  }

  #proof .section-header h2 {
    font-size: 2.2rem;
  }

  #proof .section-header p {
    font-size: 1.2rem;
  }

  .case-studies-container {
    gap: 40px;
  }

  .case-study {
    /* Switch to flex for easy re-ordering */
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .case-study-visual {
    order: 1; /* Visuals always on top */
    min-height: 300px;
  }
  .case-study-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .case-study-content {
    order: 2; /* Content always below */
    text-align: center;
  }

  .case-study-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .case-study-content p {
    font-size: 1.1rem;
    max-width: 600px; /* Constrain line length */
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile Optimizations for Very Small Screens (Max 480px) */
@media (max-width: 480px) {
  #proof {
    padding: 30px 10px;
  }

  #proof .section-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  #proof .section-header p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .case-study-visual {
    min-height: 220px;
  }
  .case-study-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .case-study-content h3 {
    font-size: 1.5rem;
  }

  .case-study-content p {
    font-size: 0.95rem;
  }
}

/* SERVICE OFFERINGS SECTION */
#services {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

#services::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(82, 80, 194, 0.2) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: pulse 15s infinite ease-in-out;
}

#services .section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 1;
}

#services .section-header h2 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(82, 80, 194, 0.5);
}

#services .section-header p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.services-grid {
  display: grid;
  /* Creates a responsive grid that fits as many columns as possible */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(82, 80, 194, 0.3);
  border-radius: 10px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(82, 80, 194, 0.6);
}

.service-card i {
  font-size: 3rem;
  color: #5d8cfd;
  margin-bottom: 25px;
  text-shadow: 0 0 12px rgba(93, 140, 253, 0.5);
  display: block; /* Ensures margin works correctly */
}

.service-card h3 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Tablet Optimizations (Max 768px) */
@media (max-width: 768px) {
  #services {
    padding: 40px 15px;
    border-radius: 10px;
  }

  #services .section-header h2 {
    font-size: 2.2rem;
  }

  #services .section-header p {
    font-size: 1.2rem;
  }

  .services-grid {
    gap: 25px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card p {
    font-size: 1rem;
  }
}

/* Mobile Optimizations for Very Small Screens (Max 480px) */
@media (max-width: 480px) {
  #services {
    padding: 30px 10px;
  }
  
  #services .section-header {
      margin-bottom: 30px;
  }

  #services .section-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  #services .section-header p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr; /* Stack to a single column */
  }

  .service-card {
    padding: 25px;
  }
}

/* ABOUT US SECTION */
#about {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

#about::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(82, 80, 194, 0.2) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: pulse 15s infinite ease-in-out;
}

/* Styling the single text column provided in the HTML */
#about .text-column {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

#about .text-column h2 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(82, 80, 194, 0.5);
}

#about .text-column p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.4rem;
  line-height: 1.7;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9); /* Slightly off-white for better readability */
}

/* Tablet Optimizations (Max 768px) */
@media (max-width: 768px) {
  #about {
    padding: 40px 15px;
    border-radius: 10px;
  }

  #about .text-column h2 {
    font-size: 2.2rem;
  }

  #about .text-column p {
    font-size: 1.2rem;
  }
}

/* Mobile Optimizations for Very Small Screens (Max 480px) */
@media (max-width: 480px) {
  #about {
    padding: 30px 10px;
  }

  #about .text-column h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
  }

  #about .text-column p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* FINAL CTA SECTION */
#final-cta {
  /* Using the specific dark charcoal gray from the developer note */
  background-color: #22252A;
  padding: 80px 20px;
  color: #ffffff;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#final-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

#final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(82, 80, 194, 0.15) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
  animation: pulse 15s infinite ease-in-out;
}

.final-cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.final-cta-content h2 {
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(82, 80, 194, 0.6);
}

.final-cta-content p {
  font-family: 'Neon-Regular', sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 35px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.final-cta-content .btn-primary {
  display: inline-block;
  padding: 18px 45px;
  font-family: 'Neon-Heavy', sans-serif;
  font-size: 1.4rem;
  background: linear-gradient(90deg, #4169e1 0%, #1348e7 100%);
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.final-cta-content .btn-primary:hover {
  background: linear-gradient(90deg, #1348e7 0%, #4169e1 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.6);
}

.final-cta-content .btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

/* Tablet Optimizations (Max 768px) */
@media (max-width: 768px) {
  #final-cta {
    padding: 60px 15px;
    border-radius: 10px;
  }

  .final-cta-content h2 {
    font-size: 2.2rem;
  }

  .final-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .final-cta-content .btn-primary {
    padding: 15px 35px;
    font-size: 1.2rem;
  }
}

/* Mobile Optimizations for Very Small Screens (Max 480px) */
@media (max-width: 480px) {
  #final-cta {
    padding: 50px 10px;
  }

  .final-cta-content h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .final-cta-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .final-cta-content .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    width: 90%; /* Make button more prominent on small screens */
  }
}