/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
  /* GlowFlow Color Palette */
  --base-white: #ffffff;
  --surface-light: #f9fafb;
  --surface-glass: rgba(255, 255, 255, 0.7);
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;

  /* Gradients */
  --grad-1: #a5b4fc;
  --grad-2: #6366f1;
  --grad-3: #4b4f97;

  /* Accents */
  --accent-cta: #14b8a6;
  --accent-hover: #0d9488;
  --accent-glow: rgba(20, 184, 166, 0.4);

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Typography */
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text-muted);
  background-color: var(--base-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-fast);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--surface-light);
}
::-webkit-scrollbar-thumb {
  background: var(--grad-2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grad-3);
}

/* Selection */
::selection {
  background: var(--accent-cta);
  color: var(--base-white);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.text-center {
  text-align: center;
}
.section-padding {
  padding: 6rem 0;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(to right, var(--grad-2), var(--grad-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--trans-smooth);
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background-color: var(--accent-cta);
  color: var(--base-white);
  box-shadow: 0 4px 14px 0 var(--accent-glow);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--grad-2);
  border: 2px solid var(--grad-2);
}
.btn-outline:hover {
  background: var(--grad-2);
  color: var(--base-white);
}

/* ==========================================================================
   Header & Navigation (Strict Consistency)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.4s ease;
  padding: 1.5rem 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}
.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.main-nav {
  transition: var(--trans-smooth);
}
.nav-list {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-2);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}
.hamburger-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  left: 0;
  transition: var(--trans-smooth);
}
.hamburger-line:nth-child(1) {
  top: 0;
}
.hamburger-line:nth-child(2) {
  top: 9px;
}
.hamburger-line:nth-child(3) {
  top: 18px;
}
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section (Index)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  background: var(--surface-light);
}
.hero-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatOrb 20s infinite ease-in-out alternate;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--grad-1);
  top: -10%;
  left: -10%;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--grad-3);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
  opacity: 0.4;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-cta);
  top: 40%;
  left: 50%;
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text-wrap h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero-text-wrap p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 90%;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* 3D Hero Graphic */
.hero-graphic {
  position: relative;
  perspective: 1000px;
}
.graphic-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}
.hero-graphic:hover .graphic-card {
  transform: rotateY(0deg) rotateX(0deg);
}
.chart-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--surface-light);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.chart-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--grad-2), var(--accent-cta));
  border-radius: 5px;
  animation: growBar 2s ease-out forwards;
  width: 0;
}
.chart-fill.fill-1 {
  animation-delay: 0.5s;
  width: 85%;
}
.chart-fill.fill-2 {
  animation-delay: 0.7s;
  width: 65%;
}
.chart-fill.fill-3 {
  animation-delay: 0.9s;
  width: 95%;
}

@keyframes growBar {
  to {
    width: var(--w);
  }
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem 0;
  background: var(--base-white);
  overflow: hidden;
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scrollTrack 30s linear infinite;
  width: max-content;
}
.trust-track img {
  height: 30px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: var(--trans-fast);
}
.trust-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes scrollTrack {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Services Section (3D & Hover)
   ========================================================================== */
.services-section {
  background: var(--surface-light);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--base-white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--trans-bounce);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(165, 180, 252, 0.1),
    rgba(20, 184, 166, 0.05)
  );
  opacity: 0;
  transition: var(--trans-smooth);
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--grad-2);
  margin-bottom: 1.5rem;
  transition: var(--trans-fast);
}
.service-card:hover .service-icon {
  background: var(--grad-2);
  color: var(--base-white);
  transform: rotate(10deg);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calc-section {
  background: var(--text-main);
  color: var(--base-white);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}
.calc-section .section-title,
.calc-section .section-subtitle {
  color: var(--base-white);
}
.calc-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.calc-group {
  margin-bottom: 2rem;
}
.calc-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--grad-1);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cta);
  cursor: pointer;
}
select.calc-input {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--base-white);
  font-family: var(--font-body);
  font-size: 1rem;
}
select.calc-input option {
  background: var(--text-main);
  color: var(--base-white);
}
.calc-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 3rem;
}
.calc-output h4 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.result-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-cta);
  font-family: var(--font-heading);
  text-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}

/* ==========================================================================
   Stats / Campaign Reports
   ========================================================================== */
.stats-section {
  padding: 6rem 0;
  background: var(--base-white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 3.5rem;
  color: var(--grad-2);
  margin-bottom: 0.5rem;
}
.stat-item p {
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Industry Expertise
   ========================================================================== */
.industry-section {
  background: var(--surface-light);
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.industry-card {
  padding: 2rem;
  background: var(--base-white);
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--trans-smooth);
}
.industry-card:hover {
  border-color: var(--grad-1);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.industry-card i {
  font-size: 2rem;
  color: var(--grad-3);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  padding: 6rem 0;
  background: var(--base-white);
  position: relative;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testi-card {
  background: var(--surface-light);
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
}
.quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(99, 102, 241, 0.1);
}
.testi-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-1);
}
.client-name {
  font-weight: 700;
  color: var(--text-main);
  display: block;
}
.client-role {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==========================================================================
   CTA Form Section
   ========================================================================== */
.cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--grad-3), var(--grad-2));
  color: var(--base-white);
  text-align: center;
}
.cta-section h2 {
  color: var(--base-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}
.inline-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}
.inline-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--base-white);
  font-size: 1rem;
  outline: none;
}
.inline-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.inline-form button {
  flex-shrink: 0;
}

/* ==========================================================================
   Footer (Strict Consistency)
   ========================================================================== */
.site-footer {
  background: var(--text-main);
  color: var(--text-light);
  position: relative;
  margin-top: auto;
}
.footer-top-gradient {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--grad-1),
    var(--grad-2),
    var(--accent-cta)
  );
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}
.footer-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base-white);
  transition: var(--trans-fast);
}
.social-icon:hover {
  background: var(--grad-2);
  transform: translateY(-3px);
}
.footer-heading {
  color: var(--base-white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: var(--text-light);
  transition: var(--trans-fast);
}
.footer-links a:hover {
  color: var(--accent-cta);
  padding-left: 5px;
}
.footer-contact-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.footer-contact-list i {
  color: var(--grad-1);
  margin-top: 0.25rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ==========================================================================
   Subpages (Legal & Contact)
   ========================================================================== */
.subpage-header {
  background: var(--surface-light);
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subpage-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-light);
}
.breadcrumbs a {
  color: var(--grad-2);
  font-weight: 500;
}

.legal-content-wrap {
  padding: 5rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.legal-content-wrap h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}
.legal-content-wrap p {
  margin-bottom: 1.5rem;
}

/* Contact Page Specific */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  padding: 5rem 0;
}
.contact-info-box {
  background: var(--surface-light);
  padding: 3rem;
  border-radius: 20px;
}
.contact-method {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--base-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--grad-2);
  box-shadow: var(--shadow-sm);
}
.contact-form {
  display: grid;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-main);
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--base-white);
  transition: var(--trans-fast);
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--grad-2);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}
.input-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-wrap p {
    margin: 0 auto 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .calc-wrapper,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .header-actions .cta-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--base-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: 0.4s ease;
  }
  .main-nav.open {
    left: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }
  .nav-link {
    font-size: 1.25rem;
    display: block;
    width: 100%;
  }
  .hero-text-wrap h1 {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
