/* ==========================================
   PRODUCT LABS - MAIN STYLESHEET
   Modular CSS Architecture
   Import order matters!
   ========================================== */

/* ========== Base Styles ========== */
@import './base/variables.css';
@import './base/reset.css';
@import './base/typography.css';

/* ========== Layout ========== */
@import './layout/layout.css';
@import './layout/navbar.css';
@import './layout/footer.css';

/* ========== Components ========== */
@import './components/buttons.css';
@import './components/cards.css';
@import './components/diagrams.css';

/* ========== Sections ========== */
@import './sections/cta.css';
@import './sections/page-hero.css';
@import './sections/technology-works.css';
@import './sections/services-cards.css';
@import './sections/products-carousel.css';
@import './sections/carousels.css';
@import './sections/animations-scroll.css';
@import './sections/ai-first-principles.css';
@import './sections/about-enhancements.css';

/* ========== Utilities ========== */
@import './utilities.css';

/* ========== Animations ========== */
@import './animations.css';

/* ========== Performance Optimizations ========== */
@import './performance.css';

/* ==========================================
   CUSTOM COMPONENT STYLES
   Specific component styles not in modules
   ========================================== */

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Enhanced opacity and grayscale filter for better readability */
  opacity: 0.4;
  filter: grayscale(80%) brightness(0.7);
  /* GPU acceleration */
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Enhanced gradient overlay: more dramatic for better contrast */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(255, 255, 255, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-text-light);
  padding: 4rem 2rem;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  /* Enhanced text shadow for better readability */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 4px 24px rgba(0, 0, 0, 0.4);
  /* Entrance animation: fade in + move up */
  opacity: 0;
  animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  /* Enhanced text shadow for better readability */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5), 0 2px 16px rgba(0, 0, 0, 0.3);
  /* Entrance animation: fade in + move up with delay */
  opacity: 0;
  animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  /* Entrance animation: fade in + move up with delay */
  opacity: 0;
  animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
}

/* Enhanced CTA button hierarchy in hero */
.hero-buttons .btn:first-child {
  /* Primary CTA gets the gradient treatment */
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.hero-buttons .btn:first-child:hover {
  background: linear-gradient(135deg, #ffffff, #e8e8e8);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn:last-child {
  /* Secondary CTA - more subtle */
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-buttons .btn:last-child:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero entrance animation keyframes */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.scroll-arrow:hover {
  border-color: rgba(255, 255, 255, 1);
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-base);
  background-color: var(--color-bg-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-text-dark);
  box-shadow: 0 0 0 3px rgba(63, 63, 63, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.5);
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 2px 12px rgba(0, 0, 0, 0.4);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Reset special hero button styles for mobile */
  .hero-buttons .btn:first-child,
  .hero-buttons .btn:last-child {
    width: 100%;
    max-width: 300px;
  }
  
  .carousel-card {
    width: 320px;
    height: 480px;
  }
  
  .carousel-card-image-wrapper {
    height: 200px;
  }
  
  .carousel-card-content {
    padding: 1.5rem;
  }
  
  .carousel-card-title {
    font-size: 1.4rem;
  }
  
  .carousel-card-description {
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .carousel-card.prev,
  .carousel-card.next {
    transform: translateX(-60%) scale(0.7);
    opacity: 0.3;
  }
  
  .carousel-card.next {
    transform: translateX(60%) scale(0.7);
  }
  
  .carousel-btn-prev {
    left: -10px;
  }
  
  .carousel-btn-next {
    right: -10px;
  }
  
  .carousel-btn-prev,
  .carousel-btn-next {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  
  /* Fix for responsive grids in pages */
  section [style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* ========== Utility Classes for Common Patterns ========== */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========== Glassmorphism Section Background ========== */
.section-glass-bg {
  position: relative;
  background: #f9fafb;
}



/* Enhanced text styling for glass sections */
.section-glass-bg .section-title {
  color: #1a1a1a;
  text-shadow: none;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
}

/* Decorative line under title */
.section-glass-bg .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
}

.section-glass-bg .section-subtitle {
  color: #4b5563;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

/* Section Header Enhancement */
.section-header-enhanced {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  color: #1a1a1a;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}


