/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
   --bg-dark: #050508;
   --bg-panel: #0d0d14;
   --bg-panel-light: #161622;
   --primary: #00f0ff;
   --secondary: #7000ff;
   --accent: #ff003c;
   --text-main: #ffffff;
   --text-muted: #8a8a9d;
   --font-heading: 'Outfit', sans-serif;
   --font-body: 'Plus Jakarta Sans', sans-serif;
   --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
   --glow: 0 0 20px rgba(0, 240, 255, 0.3);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: var(--font-body);
   background-color: var(--bg-dark);
   color: var(--text-main);
   overflow-x: hidden;
   line-height: 1.6;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

/* ==========================================================================
      TYPOGRAPHY & UTILITIES
      ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   font-weight: 700;
   line-height: 1.2;
}

.section-title {
   font-size: 3rem;
   margin-bottom: 1rem;
   background: linear-gradient(90deg, var(--text-main), var(--text-muted));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   text-align: center;
}

.section-subtitle {
   text-align: center;
   color: var(--primary);
   text-transform: uppercase;
   letter-spacing: 2px;
   font-weight: 600;
   margin-bottom: 0.5rem;
   font-size: 0.9rem;
}

.container {
   width: 90%;
   max-width: 1300px;
   margin: 0 auto;
   padding: 5rem 0;
}

.btn {
   display: inline-block;
   padding: 1rem 2.5rem;
   border-radius: 50px;
   font-weight: 600;
   font-family: var(--font-heading);
   text-transform: uppercase;
   letter-spacing: 1px;
   cursor: pointer;
   transition: var(--transition);
   position: relative;
   overflow: hidden;
   z-index: 1;
   border: none;
}

.btn-primary {
   background: linear-gradient(45deg, var(--primary), var(--secondary));
   color: #fff;
   box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(45deg, var(--secondary), var(--primary));
   z-index: -1;
   transition: opacity 0.4s ease;
   opacity: 0;
}

.btn-primary:hover::before {
   opacity: 1;
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 25px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
      HEADER & NAVIGATION
      ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   padding: 1.5rem 5%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   z-index: 1000;
   transition: var(--transition);
}

.site-header.scrolled {
   background: rgba(5, 5, 8, 0.85);
   backdrop-filter: blur(15px);
   padding: 1rem 5%;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
   height: 55px;
   filter: invert(1);
}

.nav-links {
   display: flex;
   gap: 2.5rem;
}

.nav-links li a {
   font-size: 1rem;
   font-weight: 500;
   position: relative;
   padding-bottom: 5px;
   transition: color 0.3s ease;
}

.nav-links li a:hover {
   color: var(--primary);
}

.nav-links li a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0%;
   height: 2px;
   background: var(--primary);
   transition: width 0.3s ease;
}

.nav-links li a:hover::after {
   width: 100%;
}

.mobile-menu-btn {
   display: none;
   color: #fff;
   font-size: 1.5rem;
   cursor: pointer;
   border: none;
   background: none;
}

/* ==========================================================================
      HERO SECTION (3D & Particles)
      ========================================================================== */
.hero {
   height: 100vh;
   min-height: 800px;
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
   padding-top: 80px;
}

.hero-bg-blobs {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -1;
}

.blob {
   position: absolute;
   border-radius: 50%;
   filter: blur(100px);
   opacity: 0.5;
   animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
   top: -10%;
   left: -10%;
   width: 500px;
   height: 500px;
   background: var(--secondary);
}

.blob-2 {
   bottom: -10%;
   right: -10%;
   width: 600px;
   height: 600px;
   background: rgba(0, 240, 255, 0.2);
   animation-delay: -5s;
}

@keyframes floatBlob {
   0% {
      transform: translate(0, 0) scale(1);
   }

   100% {
      transform: translate(50px, 50px) scale(1.1);
   }
}

.hero-content {
   width: 90%;
   max-width: 1300px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.hero-text h1 {
   font-size: 4.5rem;
   margin-bottom: 1.5rem;
}

.hero-text h1 span {
   color: var(--primary);
   text-shadow: var(--glow);
}

.hero-text p {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 2.5rem;
   max-width: 500px;
}

/* 3D Hero Element */
.hero-3d-visual {
   position: relative;
   width: 100%;
   height: 500px;
   perspective: 1000px;
}

.card-3d {
   width: 100%;
   height: 100%;
   background: rgba(22, 22, 34, 0.4);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 20px;
   backdrop-filter: blur(10px);
   transform-style: preserve-3d;
   transform: rotateY(-15deg) rotateX(10deg);
   animation: float3D 6s ease-in-out infinite alternate;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
}

@keyframes float3D {
   0% {
      transform: rotateY(-15deg) rotateX(10deg) translateY(0);
   }

   100% {
      transform: rotateY(-5deg) rotateX(20deg) translateY(-20px);
   }
}

.card-3d-inner {
   transform: translateZ(50px);
   text-align: center;
}

.card-3d-inner .metric {
   font-size: 4rem;
   font-family: var(--font-heading);
   color: var(--primary);
   font-weight: 800;
}

.card-3d-inner p {
   color: var(--text-main);
   font-size: 1.2rem;
}

/* ==========================================================================
      SERVICES SECTION
      ========================================================================== */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin-top: 4rem;
}

.service-card {
   background: var(--bg-panel);
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 20px;
   padding: 3rem 2rem;
   transition: var(--transition);
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
   opacity: 0;
   z-index: -1;
   transition: var(--transition);
}

.service-card:hover {
   transform: translateY(-10px);
   border-color: rgba(0, 240, 255, 0.3);
}

.service-card:hover::before {
   opacity: 1;
}

.service-icon {
   width: 60px;
   height: 60px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1.5rem;
   font-size: 1.5rem;
   color: var(--primary);
}

.service-card h3 {
   font-size: 1.5rem;
   margin-bottom: 1rem;
}

.service-card p {
   color: var(--text-muted);
   font-size: 0.95rem;
}

/* ==========================================================================
      INTERACTIVE CALCULATOR
      ========================================================================== */
.calculator-section {
   background: var(--bg-panel-light);
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   background: var(--bg-panel);
   padding: 4rem;
   border-radius: 30px;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-input-group {
   margin-bottom: 2rem;
}

.calc-input-group label {
   display: flex;
   justify-content: space-between;
   font-weight: 600;
   margin-bottom: 1rem;
}

.calc-input-group input[type="range"] {
   width: 100%;
   appearance: none;
   height: 8px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 5px;
   outline: none;
}

.calc-input-group input[type="range"]::-webkit-slider-thumb {
   appearance: none;
   width: 24px;
   height: 24px;
   background: var(--primary);
   border-radius: 50%;
   cursor: pointer;
   box-shadow: var(--glow);
}

.calc-result {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 240, 255, 0.2));
   border: 1px solid rgba(0, 240, 255, 0.3);
   border-radius: 20px;
   padding: 3rem;
   text-align: center;
}

.calc-result h4 {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 1rem;
   text-transform: uppercase;
}

.calc-result .roi-value {
   font-size: 4rem;
   font-family: var(--font-heading);
   color: var(--primary);
   font-weight: 800;
   text-shadow: var(--glow);
}

/* ==========================================================================
      SAMPLE REPORTS (Interactive Tabs)
      ========================================================================== */
.reports-wrapper {
   margin-top: 3rem;
}

.reports-tabs {
   display: flex;
   justify-content: center;
   gap: 1rem;
   margin-bottom: 3rem;
   flex-wrap: wrap;
}

.tab-btn {
   background: transparent;
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: var(--text-main);
   padding: 0.8rem 2rem;
   border-radius: 30px;
   cursor: pointer;
   font-family: var(--font-body);
   transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
   background: var(--primary);
   color: #000;
   border-color: var(--primary);
   font-weight: 600;
}

.report-panel {
   display: none;
   animation: fadeIn 0.5s ease;
}

.report-panel.active {
   display: block;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.css-chart {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   height: 300px;
   padding: 2rem;
   background: var(--bg-panel);
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-group {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 10%;
}

.bar {
   width: 100%;
   background: linear-gradient(to top, var(--secondary), var(--primary));
   border-radius: 5px 5px 0 0;
   transition: height 1s ease;
   position: relative;
}

.bar::after {
   content: attr(data-val);
   position: absolute;
   top: -25px;
   left: 50%;
   transform: translateX(-50%);
   font-size: 0.8rem;
   font-weight: bold;
   color: var(--text-main);
}

.bar-label {
   margin-top: 1rem;
   font-size: 0.8rem;
   color: var(--text-muted);
}

/* ==========================================================================
      INDUSTRIES
      ========================================================================== */
.industries-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1.5rem;
   margin-top: 3rem;
}

.industry-box {
   background: var(--bg-panel);
   border: 1px solid rgba(255, 255, 255, 0.05);
   padding: 2rem;
   border-radius: 15px;
   text-align: center;
   transition: var(--transition);
   cursor: pointer;
}

.industry-box:hover {
   background: var(--primary);
   color: #000;
   transform: scale(1.05);
}

.industry-box:hover h4 {
   color: #000;
}

/* ==========================================================================
      TESTIMONIALS
      ========================================================================== */
.testimonials-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   margin-top: 4rem;
}

.testimonial-card {
   background: var(--bg-panel);
   padding: 2.5rem;
   border-radius: 20px;
   border-left: 4px solid var(--primary);
}

.stars {
   color: #ffbc00;
   margin-bottom: 1rem;
   font-size: 1.2rem;
}

.client-info {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-top: 1.5rem;
}

.client-avatar {
   width: 50px;
   height: 50px;
   background: #333;
   border-radius: 50%;
}

.client-details h5 {
   font-size: 1rem;
}

.client-details p {
   font-size: 0.8rem;
   color: var(--text-muted);
}

/* ==========================================================================
      CONTACT / QUOTE SECTION
      ========================================================================== */
.contact-section {
   background: var(--bg-panel-light);
   position: relative;
}

.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.contact-info h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem;
}

.contact-info p {
   color: var(--text-muted);
   margin-bottom: 2rem;
}

.info-item {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1.5rem;
}

.info-icon {
   width: 40px;
   height: 40px;
   background: rgba(0, 240, 255, 0.1);
   color: var(--primary);
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 10px;
}

.contact-form {
   background: var(--bg-panel);
   padding: 3rem;
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
   margin-bottom: 1.5rem;
}

.form-control {
   width: 100%;
   padding: 1rem 1.5rem;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 10px;
   color: #fff;
   font-family: var(--font-body);
   transition: var(--transition);
}

.form-control:focus {
   outline: none;
   border-color: var(--primary);
   background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
   resize: vertical;
   min-height: 120px;
}

/* ==========================================================================
      LIVE CHAT WIDGET
      ========================================================================== */
.live-chat-widget {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 9999;
}

.chat-btn {
   width: 60px;
   height: 60px;
   background: var(--primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   box-shadow: 0 10px 20px rgba(0, 240, 255, 0.4);
   transition: transform 0.3s;
}

.chat-btn:hover {
   transform: scale(1.1);
}

.chat-btn svg {
   width: 30px;
   height: 30px;
   fill: #000;
}

.chat-window {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 320px;
   background: var(--bg-panel);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 15px;
   overflow: hidden;
   opacity: 0;
   pointer-events: none;
   transform: translateY(20px);
   transition: var(--transition);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.chat-window.open {
   opacity: 1;
   pointer-events: all;
   transform: translateY(0);
}

.chat-header {
   background: linear-gradient(45deg, var(--secondary), var(--primary));
   padding: 1rem;
   color: #fff;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-weight: bold;
}

.chat-close {
   cursor: pointer;
   font-size: 1.2rem;
}

.chat-body {
   padding: 1rem;
   height: 200px;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.msg-agency {
   background: rgba(255, 255, 255, 0.1);
   padding: 0.8rem;
   border-radius: 10px 10px 10px 0;
   font-size: 0.9rem;
   align-self: flex-start;
   max-width: 80%;
}

.chat-input-area {
   display: flex;
   padding: 0.5rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area input {
   flex: 1;
   background: transparent;
   border: none;
   color: #fff;
   padding: 0.5rem;
   outline: none;
}

.chat-input-area button {
   background: var(--primary);
   border: none;
   padding: 0.5rem 1rem;
   border-radius: 5px;
   color: #000;
   font-weight: bold;
   cursor: pointer;
}

/* ==========================================================================
      FOOTER (STRICT CONSISTENCY ACROSS ALL PAGES)
      ========================================================================== */
.site-footer {
   background: #020203;
   padding: 5rem 5% 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 3rem;
   margin-bottom: 3rem;
}

.footer-about .logo {
   margin-bottom: 1.5rem;
}

.footer-about p {
   color: var(--text-muted);
   margin-bottom: 1.5rem;
   max-width: 300px;
}

.social-links {
   display: flex;
   gap: 1rem;
}

.social-links a {
   width: 40px;
   height: 40px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--transition);
}

.social-links a:hover {
   background: var(--primary);
   color: #000;
}

.footer-col h3 {
   font-size: 1.2rem;
   margin-bottom: 1.5rem;
   color: #fff;
}

.footer-col ul li {
   margin-bottom: 0.8rem;
}

.footer-col ul li a {
   color: var(--text-muted);
   transition: color 0.3s;
}

.footer-col ul li a:hover {
   color: var(--primary);
}

/* Updated per instructions: Contact Us replaced with DomainName */
.footer-contact li {
   display: flex;
   gap: 1rem;
   color: var(--text-muted);
   margin-bottom: 1rem;
   align-items: flex-start;
}

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: var(--text-muted);
   font-size: 0.9rem;
}

.footer-legal-links {
   display: flex;
   gap: 1.5rem;
}

/* ==========================================================================
      LEGAL PAGES TYPOGRAPHY & LAYOUT
      ========================================================================== */
.legal-header-spacer {
   height: 120px;
   background: var(--bg-dark);
}

.legal-container {
   max-width: 900px;
   margin: 0 auto;
   padding: 4rem 5%;
   background: var(--bg-panel);
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   margin-bottom: 5rem;
}

.legal-container h1 {
   font-size: 2.5rem;
   margin-bottom: 2rem;
   color: var(--primary);
}

.legal-container h2 {
   font-size: 1.5rem;
   margin: 2rem 0 1rem;
   color: #fff;
}

.legal-container p {
   margin-bottom: 1.2rem;
   color: var(--text-muted);
}

.legal-container ul {
   margin-left: 1.5rem;
   margin-bottom: 1.5rem;
   list-style-type: disc;
   color: var(--text-muted);
}

.legal-container ul li {
   margin-bottom: 0.5rem;
}

/* ==========================================================================
      SCROLL ANIMATIONS (Triggered by JS)
      ========================================================================== */
.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s ease-out;
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
      MEDIA QUERIES
      ========================================================================== */
@media (max-width: 1024px) {
   .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
   }

   .hero-text p {
      margin: 0 auto 2rem;
   }

   .calc-wrapper {
      grid-template-columns: 1fr;
   }

   .contact-grid {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--bg-panel);
      flex-direction: column;
      padding: 2rem;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   }

   .nav-links.active {
      display: flex;
   }

   .mobile-menu-btn {
      display: block;
   }

   .hero-text h1 {
      font-size: 3rem;
   }

   .industries-grid {
      grid-template-columns: 1fr 1fr;
   }

   .testimonials-grid {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
   }
}

@media (max-width: 480px) {
   .industries-grid {
      grid-template-columns: 1fr;
   }

   .hero-text h1 {
      font-size: 2.2rem;
   }

   .section-title {
      font-size: 2rem;
   }
}