/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */
:root {
   --color-bg-dark: #050508;
   --color-bg-card: #0d0d14;
   --color-bg-glass: rgba(20, 20, 30, 0.6);
   --color-primary: #7b2cbf;
   --color-primary-glow: rgba(123, 44, 191, 0.5);
   --color-secondary: #00f5d4;
   --color-secondary-glow: rgba(0, 245, 212, 0.5);
   --color-text-main: #ffffff;
   --color-text-muted: #a0a0b5;
   --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
   --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
   --radius-lg: 24px;
   --radius-md: 16px;
   --radius-sm: 8px;
   --z-header: 1000;
   --z-chat: 9999;
}

*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: var(--font-main);
   background-color: var(--color-bg-dark);
   color: var(--color-text-main);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
   width: 10px;
}

::-webkit-scrollbar-track {
   background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
   background: var(--color-primary);
   border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
   background: var(--color-secondary);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-weight: 700;
   line-height: 1.2;
   margin-bottom: 1rem;
}

h1 {
   font-size: clamp(3rem, 5vw, 5.5rem);
   letter-spacing: -0.02em;
}

h2 {
   font-size: clamp(2.5rem, 4vw, 4rem);
}

h3 {
   font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.text-gradient {
   background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.text-muted {
   color: var(--color-text-muted);
}

.text-center {
   text-align: center;
}

.container {
   width: 100%;
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 5%;
}

.section-padding {
   padding: 8rem 0;
}

.section-header {
   margin-bottom: 4rem;
   text-align: center;
}

.section-header p {
   max-width: 600px;
   margin: 0 auto;
   font-size: 1.125rem;
}

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1rem 2.5rem;
   font-size: 1rem;
   font-weight: 600;
   text-decoration: none;
   border-radius: 50px;
   transition: var(--transition-fast);
   cursor: pointer;
   border: none;
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.btn-primary {
   background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
   color: var(--color-text-main);
   box-shadow: 0 10px 20px var(--color-primary-glow);
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
   z-index: -1;
   transition: opacity var(--transition-fast);
   opacity: 0;
}

.btn-primary:hover::before {
   opacity: 1;
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 30px var(--color-secondary-glow);
}

.btn-outline {
   background: transparent;
   color: var(--color-text-main);
   border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
   background: var(--color-secondary);
   color: var(--color-bg-dark);
   box-shadow: 0 10px 20px var(--color-secondary-glow);
   transform: translateY(-3px);
}

/* ==========================================================================
   HEADER & NAVIGATION (STRICT CONSISTENCY)
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   padding: 1.5rem 0;
   z-index: var(--z-header);
   transition: var(--transition-fast);
   background: transparent;
   border-bottom: 1px solid transparent;
}

.site-header.scrolled {
   background: rgba(5, 5, 8, 0.85);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   padding: 1rem 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 5%;
}

.logo-link {
   display: flex;
   align-items: center;
   text-decoration: none;
}

.site-logo {
   height: 90px;
   filter: invert(1);
}

.main-nav {
   display: flex;
   align-items: center;
}

.nav-list {
   display: flex;
   list-style: none;
   gap: 2.5rem;
}

.nav-list a {
   color: var(--color-text-main);
   text-decoration: none;
   font-weight: 500;
   font-size: 1rem;
   transition: var(--transition-fast);
   position: relative;
}

.nav-list a::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--color-secondary);
   transition: var(--transition-fast);
}

.nav-list a:hover::after {
   width: 100%;
}

.nav-list a:hover {
   color: var(--color-secondary);
}

.mobile-menu-toggle {
   display: none;
   flex-direction: column;
   justify-content: space-between;
   width: 30px;
   height: 20px;
   cursor: pointer;
   z-index: 1001;
}

.mobile-menu-toggle span {
   width: 100%;
   height: 2px;
   background-color: var(--color-text-main);
   transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (3D & Interactive)
   ========================================================================== */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   position: relative;
   padding-top: 8rem;
   overflow: hidden;
}

.hero-bg-elements {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 0;
   pointer-events: none;
}

.glow-orb {
   position: absolute;
   border-radius: 50%;
   filter: blur(100px);
   opacity: 0.4;
   animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
   width: 400px;
   height: 400px;
   background: var(--color-primary);
   top: -10%;
   left: -10%;
}

.orb-2 {
   width: 500px;
   height: 500px;
   background: var(--color-secondary);
   bottom: -20%;
   right: -10%;
   animation-delay: -5s;
}

.hero-container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   position: relative;
   z-index: 1;
}

.hero-content h1 {
   margin-bottom: 1.5rem;
}

.hero-content p {
   font-size: 1.25rem;
   color: var(--color-text-muted);
   margin-bottom: 2.5rem;
   max-width: 90%;
}

.hero-btns {
   display: flex;
   gap: 1.5rem;
}

.hero-visual {
   perspective: 1000px;
   display: flex;
   justify-content: center;
}

.hero-3d-card {
   width: 100%;
   max-width: 500px;
   height: 500px;
   background: var(--color-bg-glass);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: var(--radius-lg);
   padding: 2rem;
   transform-style: preserve-3d;
   transition: transform 0.1s;
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.hero-3d-card svg {
   width: 100%;
   height: auto;
   transform: translateZ(50px);
   filter: drop-shadow(0 20px 30px rgba(0, 245, 212, 0.3));
}

/* ==========================================================================
   TICKER SECTION (Infinite Scroll)
   ========================================================================== */
.ticker-section {
   padding: 3rem 0;
   background: #08080c;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   overflow: hidden;
   position: relative;
}

.ticker-wrap {
   display: flex;
   width: 200%;
   animation: ticker 30s linear infinite;
}

.ticker-item {
   flex: 1 0 auto;
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--color-text-muted);
   text-transform: uppercase;
   letter-spacing: 2px;
   padding: 0 4rem;
   display: flex;
   align-items: center;
   gap: 1rem;
}

.ticker-item span {
   color: var(--color-secondary);
}

/* ==========================================================================
   SERVICES SECTION (3D Hover Cards)
   ========================================================================== */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
}

.service-card {
   background: var(--color-bg-card);
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: var(--radius-md);
   padding: 3rem 2rem;
   position: relative;
   overflow: hidden;
   transition: var(--transition-slow);
   transform-style: preserve-3d;
}

.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 50% 0%, var(--color-primary-glow), transparent 70%);
   opacity: 0;
   transition: var(--transition-slow);
   z-index: 0;
}

.service-card:hover {
   transform: translateY(-10px) scale(1.02);
   border-color: var(--color-primary);
   box-shadow: 0 20px 40px rgba(123, 44, 191, 0.2);
}

.service-card:hover::before {
   opacity: 0.15;
}

.service-icon {
   width: 60px;
   height: 60px;
   background: rgba(123, 44, 191, 0.1);
   border-radius: var(--radius-sm);
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1.5rem;
   color: var(--color-secondary);
   font-size: 2rem;
   position: relative;
   z-index: 1;
}

.service-card h3 {
   position: relative;
   z-index: 1;
   font-size: 1.5rem;
   margin-bottom: 1rem;
}

.service-card p {
   position: relative;
   z-index: 1;
   color: var(--color-text-muted);
}

/* ==========================================================================
   INTERACTIVE ROI CALCULATOR
   ========================================================================== */
.calculator-section {
   background: #08080c;
}

.calc-container {
   background: var(--color-bg-glass);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: var(--radius-lg);
   padding: 4rem;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
}

.calc-controls label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--color-text-muted);
}

.slider-container {
   margin-bottom: 2.5rem;
}

input[type=range] {
   -webkit-appearance: none;
   width: 100%;
   background: transparent;
}

input[type=range]::-webkit-slider-thumb {
   -webkit-appearance: none;
   height: 24px;
   width: 24px;
   border-radius: 50%;
   background: var(--color-secondary);
   cursor: pointer;
   margin-top: -10px;
   box-shadow: 0 0 15px var(--color-secondary-glow);
}

input[type=range]::-webkit-slider-runnable-track {
   width: 100%;
   height: 4px;
   cursor: pointer;
   background: #2a2a35;
   border-radius: 2px;
}

.calc-results {
   background: var(--color-bg-dark);
   padding: 3rem;
   border-radius: var(--radius-md);
   border: 1px solid var(--color-primary);
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   box-shadow: inset 0 0 50px rgba(123, 44, 191, 0.1);
}

.result-val {
   font-size: 4rem;
   font-weight: 700;
   margin: 1rem 0;
}

/* ==========================================================================
   CAMPAIGN REPORTS (Interactive Charts via SVG)
   ========================================================================== */
.reports-visual {
   display: flex;
   gap: 2rem;
   justify-content: center;
   flex-wrap: wrap;
}

.chart-card {
   background: var(--color-bg-card);
   padding: 2rem;
   border-radius: var(--radius-md);
   border: 1px solid rgba(255, 255, 255, 0.05);
   width: calc(50% - 1rem);
   min-width: 300px;
}

.chart-card h4 {
   margin-bottom: 1.5rem;
   color: var(--color-text-muted);
}

/* Simulated SVG Bar Chart Animations */
.bar {
   transform-origin: bottom;
   animation: growBar 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ==========================================================================
   INDUSTRY SPECIFIC SERVICES
   ========================================================================== */
.industry-tabs {
   display: flex;
   justify-content: center;
   gap: 1rem;
   margin-bottom: 3rem;
   flex-wrap: wrap;
}

.tab-btn {
   padding: 0.75rem 2rem;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   color: var(--color-text-main);
   border-radius: 50px;
   cursor: pointer;
   transition: var(--transition-fast);
   font-weight: 600;
}

.tab-btn.active,
.tab-btn:hover {
   background: var(--color-primary);
   border-color: var(--color-primary);
   box-shadow: 0 5px 15px var(--color-primary-glow);
}

.tab-content {
   display: none;
   animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 3rem;
   align-items: center;
   background: var(--color-bg-card);
   padding: 3rem;
   border-radius: var(--radius-lg);
   border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
}

.testimonial-card {
   background: var(--color-bg-glass);
   padding: 2.5rem;
   border-radius: var(--radius-md);
   border: 1px solid rgba(255, 255, 255, 0.05);
   position: relative;
}

.quote-icon {
   position: absolute;
   top: 1.5rem;
   right: 1.5rem;
   font-size: 3rem;
   color: rgba(0, 245, 212, 0.1);
   font-family: serif;
}

.client-info {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-top: 1.5rem;
}

.client-avatar {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--color-primary);
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
}

/* ==========================================================================
   CONTACT CTA / FORM
   ========================================================================== */
.contact-section {
   background: #08080c;
}

.contact-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
}

.contact-info-block {
   background: var(--color-bg-card);
   padding: 3rem;
   border-radius: var(--radius-lg);
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   margin-bottom: 2rem;
}

.info-icon {
   width: 50px;
   height: 50px;
   background: rgba(0, 245, 212, 0.1);
   color: var(--color-secondary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.25rem;
}

.form-group {
   margin-bottom: 1.5rem;
}

.form-control {
   width: 100%;
   padding: 1rem 1.5rem;
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: var(--radius-sm);
   color: var(--color-text-main);
   font-family: var(--font-main);
   transition: var(--transition-fast);
}

.form-control:focus {
   outline: none;
   border-color: var(--color-secondary);
   background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
   resize: vertical;
   min-height: 150px;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC STYLES
   ========================================================================== */
.page-header {
   padding: 12rem 0 6rem;
   background: linear-gradient(180deg, rgba(123, 44, 191, 0.1) 0%, var(--color-bg-dark) 100%);
   text-align: center;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content {
   max-width: 900px;
   margin: 0 auto;
   padding: 4rem 0 8rem;
}

.legal-content h2 {
   margin: 3rem 0 1rem;
   font-size: 1.75rem;
   color: var(--color-secondary);
}

.legal-content p {
   margin-bottom: 1.5rem;
   color: var(--color-text-muted);
   font-size: 1.1rem;
}

.legal-content ul {
   margin: 0 0 1.5rem 2rem;
   color: var(--color-text-muted);
}

.legal-content li {
   margin-bottom: 0.5rem;
}

/* ==========================================================================
   FOOTER (STRICT CONSISTENCY)
   ========================================================================== */
.site-footer {
   background: #020203;
   padding: 5rem 0 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 4rem;
   margin-bottom: 4rem;
}

.footer-logo {
   height: 90px;
   filter: invert(1);
   margin-bottom: 1.5rem;
}

.footer-about {
   color: var(--color-text-muted);
   max-width: 300px;
}

.footer-heading {
   font-size: 1.25rem;
   margin-bottom: 1.5rem;
   color: var(--color-text-main);
}

.footer-links {
   list-style: none;
}

.footer-links li {
   margin-bottom: 0.75rem;
}

.footer-links a {
   color: var(--color-text-muted);
   text-decoration: none;
   transition: var(--transition-fast);
}

.footer-links a:hover {
   color: var(--color-secondary);
   padding-left: 5px;
}

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   padding-top: 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: var(--color-text-muted);
   font-size: 0.875rem;
}

.footer-legal-links {
   display: flex;
   gap: 1.5rem;
}

.footer-legal-links a {
   color: var(--color-text-muted);
   text-decoration: none;
}

.footer-legal-links a:hover {
   color: var(--color-secondary);
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget {
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   z-index: var(--z-chat);
}

.chat-toggle {
   width: 60px;
   height: 60px;
   background: var(--color-primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   box-shadow: 0 10px 20px var(--color-primary-glow);
   transition: var(--transition-fast);
}

.chat-toggle:hover {
   transform: scale(1.1);
}

.chat-toggle svg {
   width: 30px;
   height: 30px;
   fill: white;
}

.chat-box {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 320px;
   background: var(--color-bg-card);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: var(--radius-md);
   overflow: hidden;
   transform: scale(0);
   transform-origin: bottom right;
   transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.chat-box.active {
   transform: scale(1);
}

.chat-header {
   background: var(--color-primary);
   padding: 1rem;
   color: white;
   font-weight: 600;
   display: flex;
   justify-content: space-between;
}

.chat-close {
   cursor: pointer;
}

.chat-body {
   height: 250px;
   padding: 1rem;
   background: var(--color-bg-dark);
   overflow-y: auto;
}

.chat-msg {
   background: rgba(255, 255, 255, 0.05);
   padding: 0.75rem;
   border-radius: var(--radius-sm);
   margin-bottom: 0.5rem;
   font-size: 0.875rem;
}

.chat-input {
   display: flex;
   padding: 1rem;
   background: var(--color-bg-card);
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input input {
   flex: 1;
   background: transparent;
   border: none;
   color: white;
   outline: none;
}

.chat-input button {
   background: transparent;
   border: none;
   color: var(--color-secondary);
   cursor: pointer;
   font-weight: 600;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes floatOrb {
   0% {
      transform: translate(0, 0) scale(1);
   }

   100% {
      transform: translate(50px, 50px) scale(1.1);
   }
}

@keyframes ticker {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes growBar {
   from {
      transform: scaleY(0);
   }

   to {
      transform: scaleY(1);
   }
}

.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {

   .hero-container,
   .calc-container,
   .contact-wrapper,
   .tab-content.active {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }

   .hero-visual {
      order: -1;
   }
}

@media (max-width: 768px) {
   .nav-list {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background: var(--color-bg-card);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: var(--transition-slow);
      border-left: 1px solid rgba(255, 255, 255, 0.1);
   }

   .nav-list.active {
      right: 0;
   }

   .mobile-menu-toggle {
      display: flex;
   }

   .footer-grid {
      grid-template-columns: 1fr;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
   }

   .chart-card {
      width: 100%;
   }
}