/* --- GOD-TIER SETUP & VARIABLES --- */
:root {
  --bg-color: #0a0a0a;
  --primary-accent: #00bfff; /* Electric Blue */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --container-bg: #111111;
  --border-color: #222;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
}

/* --- CUSTOM CURSOR --- */
.cursor {
  width: 25px;
  height: 25px;
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  position: fixed; /* Changed from absolute to fixed */
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease,
    opacity 0.2s ease;
  z-index: 9999;
  opacity: 0; /* Start invisible */
}
body.cursor-ready .cursor {
  opacity: 1; /* Become visible once the mouse moves */
}

/* --- PRE-LOADER -- OPTIMIZED --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Faster fade out */
}
.preloader-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
  font-weight: 900;
  opacity: 0;
  animation: fadeInOut 1.2s ease-in-out infinite; /* Faster pulse */
}
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* --- NAVIGATION MENU --- */
.menu-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.5s ease-in-out;
}
.menu-btn__burger {
  width: 30px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 5px;
  transition: all 0.5s ease-in-out;
}
.menu-btn__burger::before,
.menu-btn__burger::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 5px;
  transition: all 0.5s ease-in-out;
}
.menu-btn__burger::before {
  transform: translateY(-10px);
}
.menu-btn__burger::after {
  transform: translateY(10px);
}

/* Menu Open State */
.menu-btn.open .menu-btn__burger {
  transform: translateX(-50px);
  background: transparent;
}
.menu-btn.open .menu-btn__burger::before {
  transform: rotate(45deg) translate(35px, -35px);
}
.menu-btn.open .menu-btn__burger::after {
  transform: rotate(-45deg) translate(35px, 35px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay-content {
  text-align: center;
}
.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  margin: 1rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.3s ease, transform 0.5s ease, opacity 0.5s ease;
}
.nav-overlay.open .nav-link {
  transform: translateY(0);
  opacity: 1;
}
/* Staggered animation for nav links */
.nav-overlay.open .nav-link:nth-child(1) {
  transition-delay: 0.2s;
}
.nav-overlay.open .nav-link:nth-child(2) {
  transition-delay: 0.3s;
}
.nav-overlay.open .nav-link:nth-child(3) {
  transition-delay: 0.4s;
}
.nav-overlay.open .nav-link:nth-child(4) {
  transition-delay: 0.5s;
}
.nav-overlay.open .nav-link:nth-child(5) {
  transition-delay: 0.6s;
}

.nav-link:hover {
  color: var(--primary-accent);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden; /* Hide video overflow */
}

/* Video Background Styling */
.hero-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
}
.hero-video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Overlay for text readability */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensures all content inside is centered */
  z-index: 1; /* Make sure content is above video and overlay */
}

.hero-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-accent);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  max-width: 600px;
  margin-left: auto; /* Centers the block */
  margin-right: auto; /* Centers the block */
  margin-bottom: 2.5rem; /* Increased spacing */
}
.cta-button {
  display: inline-block;
  background: var(--primary-accent);
  color: #000; /* Dark text for contrast */
  padding: 1rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.mouse {
  width: 25px;
  height: 45px;
  border: 2px solid var(--text-primary);
  border-radius: 15px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}
@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

/* --- GENERAL SECTION STYLES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--container-bg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  perspective: 1000px;
}
.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  border-color: var(--primary-accent);
}
.service-icon {
  font-size: 3rem;
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* --- WHY US SECTION --- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-us-image img {
  width: 100%;
  border-radius: 10px;
}
.text-left {
  text-align: left;
}
.feature {
  margin-bottom: 2rem;
}
.feature h3 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-accent);
}
.feature h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* --- REBUILT: PROCESS & PRICING SECTION --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; /* Reduced gap slightly */
  background: var(--container-bg);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border-color);
  align-items: flex-start; /* Align columns to the top */
}
.info-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.info-header i {
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 1rem;
}
.info-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
}

/* GOD-TIER "HOW IT WORKS" STEPPER */
.process-stepper {
  position: relative;
  padding-left: 50px; /* Space for the line and numbers */
}
.process-stepper::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background-color: var(--border-color);
}
.step {
  position: relative;
  margin-bottom: 2.5rem;
}
.step:last-child {
  margin-bottom: 0;
}
.step-number {
  position: absolute;
  left: -50px;
  top: -5px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary-accent);
  background-color: var(--container-bg);
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}
.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.step:hover .step-number {
  transform: scale(1.1);
}

/* PRICING COLUMN STYLES */
.pricing-column {
  text-align: center;
}
.pricing-intro {
  margin-bottom: 2.5rem !important;
}
.pricing-details {
  display: inline-block;
  text-align: left;
}
.price-item {
  margin-bottom: 2.5rem;
}
.price-item:last-child {
  margin-bottom: 0;
}
.price-point {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.price-figure {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 4.5rem;
  color: var(--primary-accent);
  line-height: 1;
}
.price-figure .currency {
  font-size: 3.5rem;
}
.price-label {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.price-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  padding-left: 2px;
}

/* --- GALLERY SECTION --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.tall {
  grid-row: span 2;
}
.wide {
  grid-column: span 2;
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--container-bg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-accent);
}
.testimonial-card .fa-quote-left {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-accent);
  opacity: 0.2;
}
.testimonial-text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  padding-top: 1rem;
}
.testimonial-author {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- FAQ SECTION --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--container-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden; /* Important for the transition */
  transition: border-color 0.3s ease;
}
.faq-item:hover {
  border-color: var(--primary-accent);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
}
.faq-question h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.faq-question i {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}
.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
}
/* Active State */
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-accent);
}
.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust as needed for content */
}

/* --- CONTACT SECTION --- */
.contact-section {
  background: var(--container-bg);
  border-radius: 15px;
}
.quote-form {
  max-width: 800px;
  margin: 3rem auto 0 auto;
}
.form-group {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
}
.quote-form {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.form-group:not(.full-width) {
  flex: 1 1 calc(50% - 1rem);
}
.full-width {
  flex: 1 1 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid #555;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: var(--font-body);
  outline: none;
  position: relative;
  z-index: 1;
}
.form-group textarea {
  resize: vertical;
}
.form-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  z-index: 0;
  pointer-events: none;
}
.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -15px;
  font-size: 0.9rem;
  color: var(--primary-accent);
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary-accent);
}
.quote-form .cta-button {
  margin: 0 auto;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* NEW: FOOTER CONTACT ICONS */
.footer-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-contact a:hover {
  color: var(--primary-accent);
  transform: translateY(-5px);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 5rem; /* Add vertical gap on mobile */
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px; /* Adjusted for mobile */
  }
  .tall {
    grid-row: span 2; /* Tall items can still span 2 rows on tablet */
  }
  .wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  body {
    cursor: auto;
  } /* Disable custom cursor on mobile */
  .cursor {
    display: none;
  }
  .info-grid {
    padding: 2rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .tall {
    grid-row: span 1; /* Reset on mobile */
  }
  .wide {
    grid-column: span 1; /* Reset on mobile */
  }
  .form-group:not(.full-width) {
    flex-basis: 100%;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}