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

:root {
  /* User-defined Palette */
  --primary: #9E7FFF; /* Purple - Matches Alpha Edit logo 'alpha' part */
  --secondary: #B09FFF; /* Lighter Purple - Replaces previous blue theme */
  --accent: #f472b6; /* Pink */
  --background: #171717; /* Dark Grey */
  --surface: #262626; /* Slightly lighter Dark Grey */
  --text: #FFFFFF; /* White */
  --text-secondary: #A3A3A3; /* Light Grey */
  --border: #2F2F2F; /* Darker Grey */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%); /* Adjusted second color for accent */
  --gradient-text: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  --gradient-title: linear-gradient(135deg, var(--text) 0%, var(--secondary) 100%);

  /* Fonts */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reusable Components */
.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.5;
}

.btn {
  padding: 16px 32px;
  border-radius: 32px; /* Rounded feature */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(158, 127, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(158, 127, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(158, 127, 255, 0.3);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(23, 23, 23, 0.8); /* Use background variable */
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(158, 127, 255, 0.1); /* Use primary variable */
}

.navbar.scrolled {
  background: rgba(23, 23, 23, 0.95);
  box-shadow: 0 4px 24px rgba(158, 127, 255, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  /* Add flex-shrink: 0 to prevent logo from shrinking if needed */
  flex-shrink: 0; 
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px; /* Rounded feature */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  /* Add this to make sure it's in the middle */
  flex-grow: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* --- CHANGED SECTION START --- */

/* CTA Button styles are now global */
.cta-btn {
  background: var(--gradient-primary);
  color: white !important; /* !important to override .nav-links a color */
  padding: 10px 24px;
  border-radius: 24px; /* Rounded feature */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none; /* Added this */
  display: inline-block; /* Added this */
  flex-shrink: 0; /* Prevent button from shrinking */
  white-space: nowrap; /* Prevent text wrap */
}

/* Make sure .cta-btn does not get the underline effect */
.cta-btn::after {
  display: none !important;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(158, 127, 255, 0.4);
}

/* Hide the mobile-only button on desktop */
.mobile-cta {
  display: none;
}

/* --- CHANGED SECTION END --- */


/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Removed old background and animations as video will cover it */
  background: var(--background); 
  overflow: hidden;
}

/* Removed old ::before and @keyframes backgroundScroll */


/* ***** UPDATED: VIDEO BACKGROUND STYLES START ***** */
.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; 
}

.video-background-container iframe {
  /* FINAL ROBUST COVER FIX: 
     Uses 'max' to ensure the 16:9 video's dimensions are always larger than 
     the viewport's dimensions, guaranteeing 100% cover (full zoom) 
     without vertical clipping on tall screens (mobile portrait).
  */
  position: absolute;
  top: 50%;
  left: 50%;
  
  /* यह 16:9 Aspect Ratio को बनाए रखते हुए पूरे Viewport को Cover करता है */
  width: max(100vw, calc(100vh * 16 / 9));
  height: max(100vh, calc(100vw * 9 / 16));
  
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Tint/Overlay for better readability and blue/purple color effect (as requested) */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark overlay for readability + Blue/Purple tint */
  background: linear-gradient(
    45deg,
    rgba(158, 127, 255, 0.4) 0%, /* Primary Purple/Blue Tint */
    rgba(23, 23, 23, 0.8) 50%, /* Dark Background for Text */
    rgba(176, 159, 255, 0.4) 100% /* Secondary Purple/Blue Tint */
  );
  z-index: 1; /* Above the video, below the content */
}

.hero-content {
  /* Ensure content is on top of the video and overlay */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 24px;
  margin-top: 80px;
}
/* ***** UPDATED: VIDEO BACKGROUND STYLES END ***** */


.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 16px; /* Rounded feature */
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
  z-index: 2; /* Keep indicator visible above the video/overlay */
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}

/* Our Work Section (formerly Services) */
.portfolio {
  padding: 120px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(158, 127, 255, 0.1) 0%, transparent 70%),
    var(--background);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 16px; /* Rounded feature */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(158, 127, 255, 0.3) 0%, rgba(176, 159, 255, 0.3) 100%); /* Updated to new secondary purple */
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(158, 127, 255, 0.4);
}

.portfolio-item:hover::before {
  opacity: 0.6;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.9); /* Use background variable */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.portfolio-overlay p {
  color: var(--text-secondary);
  text-align: center;
}

/* Video Portfolio Section */
.video-portfolio {
  padding: 120px 0;
  background: var(--background);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.video-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; /* Rounded feature */
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.video-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(158, 127, 255, 0.2);
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio for videos */
  border: none;
}

.video-caption {
  padding: 24px;
  text-align: center;
}

.video-caption h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.video-caption p {
  color: var(--text-secondary);
  line-height: 1.6;
}


/* About Section */
.about {
  padding: 120px 0;
  background: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px; /* Rounded feature */
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat:hover {
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(158, 127, 255, 0.2);
}

.stat h3 {
  font-size: 48px;
  background: var(--gradient-accent); /* Use accent gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 24px; /* Rounded feature */
  box-shadow: 0 16px 48px rgba(158, 127, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Testimonials Section */
.testimonials {
  padding: 120px 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(158, 127, 255, 0.15) 0%, transparent 50%),
    var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; /* Rounded feature */
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(158, 127, 255, 0.2);
}

.testimonial-card .stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-card .stars svg {
  width: 20px;
  height: 20px;
  color: var(--accent); /* Use accent color for stars */
}

.testimonial-card blockquote {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-card .client-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 4px;
}

.testimonial-card .client-title {
  color: var(--text-secondary);
  font-size: 14px;
}


/* Contact Section */
.contact {
  padding: 120px 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(158, 127, 255, 0.15) 0%, transparent 50%),
    var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; /* Rounded feature */
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(158, 127, 255, 0.2);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; /* Rounded feature */
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(158, 127, 255, 0.2);
}

.info-card svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.info-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--surface);
  padding: 80px 0 24px;
  border-top: 1px solid var(--border);
}



.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 12px; /* Rounded feature */
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links h4,
.footer-expertise h4, /* Updated from footer-services */
.footer-social h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links ul,
.footer-expertise ul { /* Updated from footer-services */
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-expertise a { /* Updated from footer-services */
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-expertise a:hover { /* Updated from footer-services */
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 50%; /* Rounded feature */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 16px rgba(158, 127, 255, 0.3);
}

.social-links svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-links a:hover svg {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(158, 127, 255, 0.1);
  color: var(--text-secondary);
}

/* Animations */
.animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

.animated.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
}

.animated.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
}

.animated.zoom-in {
  opacity: 0;
  transform: scale(0.9);
}

.animated.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Media Queries */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-text h2 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(38, 38, 38, 0.98); /* Use surface variable */
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(158, 127, 255, 0.2);
    /* Make .nav-links take up space for justification */
    flex-grow: 1; 
    justify-content: center;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  /* --- ADDED SECTION START --- */
  
  /* Hide the desktop button on mobile */
  .desktop-cta {
    display: none;
  }
  
  /* Show the mobile button in the slide-out menu */
  .mobile-cta {
    display: list-item;
    width: 100%;
  }
  
  /* Style the button inside the mobile menu */
  .mobile-cta .cta-btn {
    text-align: center;
    width: 90%;
    margin: 16px auto 0;
  }
  
  /* --- ADDED SECTION END --- */

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .portfolio-item {
    height: 240px;
  }

  .video-item {
    padding: 0; /* Remove padding for video items on small screens if needed */
  }
}
/* ***** UPDATED: VIDEO BACKGROUND STYLES START ***** */
.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; 
}

.video-background-container iframe {
  /* FINAL ROBUST COVER FIX: 
     Uses 'max' to ensure the 16:9 video's dimensions are always larger than 
     the viewport's dimensions, guaranteeing 100% cover (full zoom) 
     without vertical clipping on tall screens (mobile portrait).
  */
  position: absolute;
  top: 50%;
  left: 50%;
  
  /* यह 16:9 Aspect Ratio को बनाए रखते हुए पूरे Viewport को Cover करता है */
  width: max(100vw, calc(100vh * 16 / 9));
  height: max(100vh, calc(100vw * 9 / 16));
  
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Tint/Overlay for better readability and blue/purple color effect (as requested) */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark overlay for readability + Blue/Purple tint */
  background: linear-gradient(
    45deg,
    rgba(158, 127, 255, 0.4) 0%, /* Primary Purple/Blue Tint */
    rgba(23, 23, 23, 0.8) 50%, /* Dark Background for Text */
    rgba(176, 159, 255, 0.4) 100% /* Secondary Purple/Blue Tint */
  );
  z-index: 1; /* Above the video, below the content */
}

.hero-content {
  /* Ensure content is on top of the video and overlay */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 24px;
  margin-top: 80px;
}
/* ***** UPDATED: VIDEO BACKGROUND STYLES END ***** */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--background); 
  overflow: hidden;
}

/* ***** UPDATED: VIDEO BACKGROUND STYLES START (FOR <video> TAG) ***** */
.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Ensures it's behind the content */
}

.video-background-container video {
  /* Use object-fit: cover for local video files - Most reliable method */
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video covers 100% of the container, no top/bottom cutting */
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none; /* Allows clicks to pass through to the content behind */
}

/* Tint/Overlay for better readability and blue/purple color effect (as requested) */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark overlay for readability + Blue/Purple tint */
  background: linear-gradient(
    45deg,
    rgba(158, 127, 255, 0.4) 0%, /* Primary Purple/Blue Tint */
    rgba(23, 23, 23, 0.8) 50%, /* Dark Background for Text */
    rgba(176, 159, 255, 0.4) 100% /* Secondary Purple/Blue Tint */
  );
  z-index: 1; /* Above the video, below the content */
}

.hero-content {
  /* Ensure content is on top of the video and overlay */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 24px;
  margin-top: 80px;
}
/* ***** UPDATED: VIDEO BACKGROUND STYLES END ***** */