/* ==========================================================================
   Base & Variables
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap");

:root {
  /* Aurora Theme Colors */
  --bg-base: #f8fafc;
  --text-main: #0f172a;
  --text-light: #475569;

  --aurora-cyan: #00e5ff;
  --aurora-indigo: #6366f1;
  --aurora-purple: #a855f7;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Typography */
  --font-heading: "Exo 2", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
      Aurora Animated Background
      ========================================================================== */
.aurora-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-base);
}

.aurora-blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.aurora-blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--aurora-cyan);
  animation-delay: 0s;
}

.aurora-blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--aurora-purple);
  animation-delay: -5s;
}

.aurora-blob-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: var(--aurora-indigo);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(10vw, -15vh) scale(1.1) rotate(45deg);
  }
  66% {
    transform: translate(-15vw, 10vh) scale(0.9) rotate(-45deg);
  }
  100% {
    transform: translate(5vw, 5vh) scale(1.05) rotate(15deg);
  }
}

/* ==========================================================================
      Utility Classes & Typography
      ========================================================================== */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--aurora-indigo),
    var(--aurora-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--aurora-indigo),
    var(--aurora-purple)
  );
  color: #fff;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-glass:hover {
  background: #fff;
  transform: translateY(-3px);
}

/* Glass Component Base */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
      Header & Navigation (STRICTLY CONSISTENT SITE-WIDE)
      ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 15px 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.logo-link img {
  height: 40px;
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-family: var(--font-heading);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aurora-indigo);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* Mobile Nav Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-base);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav ul li {
  margin: 20px 0;
}

.mobile-nav ul li a {
  font-size: 24px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* ==========================================================================
      Sections (Index Page Specifics & Shared)
      ========================================================================== */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-visual {
  position: relative;
}

.glass-mockup {
  padding: 30px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-chart {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-bottom: 2px solid var(--aurora-indigo);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}

.chart-bar {
  position: absolute;
  bottom: 0;
  width: 15%;
  background: var(--aurora-cyan);
  border-radius: 5px 5px 0 0;
  animation: growBar 2s ease-out forwards;
}

@keyframes growBar {
  from {
    height: 0;
  }
}

/* Services Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.2),
    rgba(99, 102, 241, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--aurora-indigo);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Interactive Calculator */
.calculator-section {
  padding: var(--section-padding);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.calc-form {
  padding: 40px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-group input[type="range"] {
  width: 100%;
  accent-color: var(--aurora-indigo);
}

.calc-results {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(168, 85, 247, 0.1)
  );
}

.result-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--aurora-indigo);
  margin: 20px 0;
}

/* Industry Accordion */
.industry-list {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
}

.accordion-header {
  width: 100%;
  padding: 20px 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 30px;
}

.accordion-content p {
  padding: 20px 0;
  color: var(--text-light);
}

.accordion-item.active .accordion-header {
  background: #fff;
  border-color: var(--aurora-indigo);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

/* Testimonials Carousel */
.testimonials {
  padding: var(--section-padding);
}

.testimonial-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  min-width: 350px;
  padding: 40px;
  scroll-snap-align: center;
}

.testi-card .quote-icon {
  font-size: 30px;
  color: var(--aurora-cyan);
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--aurora-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

/* Subpages & Legal Pages Styling */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.breadcrumbs {
  color: var(--text-light);
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--aurora-indigo);
  text-decoration: none;
}

.legal-content,
.contact-wrapper {
  padding: 60px;
  margin-bottom: 100px;
}

.legal-content h2 {
  margin: 40px 0 20px;
  color: var(--aurora-indigo);
  font-size: 1.8rem;
}

.legal-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Contact Page Forms */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-methods {
  margin-top: 40px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-method i {
  font-size: 24px;
  color: var(--aurora-indigo);
  background: var(--glass-bg);
  padding: 15px;
  border-radius: 50%;
}

.method-details h3 {
  font-size: 1.2rem;
}
.method-details p,
.method-details a {
  color: var(--text-light);
  text-decoration: none;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  background: #fff;
  border-color: var(--aurora-indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
      Footer (STRICTLY CONSISTENT SITE-WIDE)
      ========================================================================== */
.footer {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 20px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-about-text {
  color: var(--text-light);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.social-link:hover {
  background: var(--aurora-indigo);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--aurora-indigo);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.contact-info li a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ==========================================================================
      Responsive Design
      ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 2.5rem;
  }
  .legal-content {
    padding: 30px;
  }
}

/* Animation Utilities for JS ScrollReveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
