/* Home Page - Full width sections */

.content-container:has(.home-page) {
  padding: 0;
  max-width: none;
}

/* Sections - base styles */
.hero-section,
.what-we-do-section,
.email-section,
.use-case-section,
.blog-section {
  padding: 2rem 1rem;
}

/* Subtle alternating backgrounds */
.what-we-do-section {
  background: #ffffff;
}

.use-case-section {
  background: #fafafa;
}

.blog-section {
  background: #ffffff;
}

.email-section {
  background: #ffffff;
}

.hero-section-home {
  background-image: url('/static/img/hero_home.webp');
}

/* Hero content - frosted glass effect */
.hero-content-home {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem 4rem;
  text-align: center;
  max-width: 700px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content-home h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 160px;
}

@media (max-width: 768px) {
  .hero-content-home {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .hero-content-home h1 {
    font-size: 1.4rem;
  }
}

/* Section Header */
.section-header {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--dark, #333);
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

/* Tabs - 3 columns */
.what-we-do-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.what-we-do-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.what-we-do-tab:hover {
  border-color: var(--primary, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.what-we-do-tab.active {
  border-color: var(--primary, #007bff);
  background: var(--primary, #007bff);
  color: white;
}

.what-we-do-tab i {
  font-size: 2rem;
}

.what-we-do-tab span {
  font-weight: 600;
  text-align: center;
}

/* Content area */
.what-we-do-content {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Grid - image left, text right */
.what-we-do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.what-we-do-image img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.what-we-do-text h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 2.5rem;
  margin: 1rem 0 1rem 0;
  color: var(--dark, #333);
}

.what-we-do-text p {
  font-size: 1.5rem;
  color: var(--medium, #666);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.what-we-do-text ul {
  font-size: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.what-we-do-text ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--medium, #666);
}

.what-we-do-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary, #007bff);
  font-weight: bold;
}

@media (max-width: 1200px) {
  .what-we-do-tabs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .what-we-do-tab {
    flex-direction: row;
    padding: 1rem;
  }
  
  .what-we-do-tab i {
    font-size: 1.5rem;
  }
  
  .what-we-do-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .what-we-do-image {
    order: -1;
  }
}

.blog-section > * {
  max-width: 1200px;
  margin: 0 auto;
}

.email-section-inner {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}


/* Email form */
.email-form {
  display: flex;
  gap: 0.5rem;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
}

/* Home modal overlay */
.hp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.hp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hp-modal {
  background: white;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.hp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--ultra-light);
}

.hp-modal-header h3 { margin: 0; }

.hp-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hp-modal-body { padding: 1rem; }

.hp-modal-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid var(--ultra-light);
}

/* Form utilities */
.hp-form-group { margin-bottom: 1rem; }
.hp-form-label { display: block; margin-bottom: 0.25rem; color: var(--medium); }
.hp-form-error { color: var(--danger); font-size: 0.875rem; }
.hp-hidden { display: none; }
.hp-alert-danger { 
  background: rgba(248, 113, 113, 0.15); 
  color: var(--danger); 
  padding: 0.75rem; 
  border-radius: var(--radius); 
  margin-bottom: 1rem; 
}

/* Use Case Section */
.use-case-section {
  --card-image-height: 300px; /* Control card/image height here */
  --card-padding: 1.5rem;
  --card-gap: 1rem;
  /* Slider height = 2 cards (image + padding*2) + 1 gap */
  --slider-height: calc(2 * (var(--card-image-height) + var(--card-padding) * 2) + var(--card-gap));
  background: var(--ultra-light, #f8f9fa);
  overflow: hidden;
}

/* Slider container with dots on the side */
.use-case-slider-container {
  display: flex;
  gap: 2rem;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Vertical slider viewport */
.use-case-slider {
  flex: 1;
  height: var(--slider-height);
  overflow: hidden;
}

/* Track that moves - CSS controls animation speed */
.use-case-track {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  transition: transform 1.5s ease-in-out; /* Change duration here (1.5s = 1.5 seconds) */
}

/* Individual card - height based on image */
.use-case-card {
  display: flex;
  gap: 2rem;
  background: white;
  border-radius: 0.75rem;
  padding: var(--card-padding);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  align-items: stretch;
}

/* Alternating layout - even cards have image on right */
.use-case-card:nth-child(even) {
  flex-direction: row-reverse;
}

.use-case-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-image img {
  height: var(--card-image-height);
  width: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.use-case-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

.use-case-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark, #333);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.use-case-description {
  color: var(--medium, #666);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.use-case-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;  
}

.use-case-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Slider navigation - dots and arrows */
.slider-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: var(--slider-height);
}

.slider-dots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary, #007bff);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(0, 123, 255, 0.3);
}

.slider-dot.active {
  background: var(--primary, #007bff);
}

/* Arrow buttons */
.slider-arrows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary, #007bff);
  background: white;
  color: var(--primary, #007bff);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: var(--primary, #007bff);
  color: white;
}

/* Mobile responsive */
@media (max-width: 1200px) {
  .use-case-slider-container {
    flex-direction: column;
    align-items: center;
  }
  
  .use-case-slider {
    max-height: calc(2 * 350px + 1.5rem); /* Taller cards on mobile */
  }
  
  .use-case-card {
    flex-direction: column !important; /* Stack vertically on mobile */
  }
  
  .use-case-image {
    flex: none;
  }
  
  .slider-nav {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .slider-dots {
    flex-direction: row;
  }
  
  .slider-arrows {
    flex-direction: row;
  }
}

