/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
   --bg-dark: #07090F;
   --bg-darker: #030407;
   --bg-card: #121624;
   --bg-card-hover: #1A1F33;
   --primary: #00E5FF;
   --primary-glow: rgba(0, 229, 255, 0.4);
   --secondary: #7C4DFF;
   --secondary-glow: rgba(124, 77, 255, 0.4);
   --text-main: #F8F9FA;
   --text-muted: #A0AABF;
   --border-color: #23293D;
   --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
   --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
   --transition-fast: 0.3s ease;
   --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
   --header-height: 90px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   overflow-x: hidden;
}

body {
   font-family: var(--font-body);
   background-color: var(--bg-dark);
   color: var(--text-main);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition-fast);
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   font-weight: 700;
   line-height: 1.2;
}

.container {
   width: 100%;
   max-width: 1300px;
   margin: 0 auto;
   padding: 0 20px;
}

.section-title {
   font-size: 3rem;
   text-align: center;
   margin-bottom: 1rem;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.section-subtitle {
   text-align: center;
   color: var(--text-muted);
   font-size: 1.2rem;
   margin-bottom: 4rem;
   max-width: 700px;
   margin-left: auto;
   margin-right: auto;
}

section {
   padding: 100px 0;
   position: relative;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes float {
   0% {
      transform: translateY(0px) rotate(0deg);
   }

   50% {
      transform: translateY(-20px) rotate(2deg);
   }

   100% {
      transform: translateY(0px) rotate(0deg);
   }
}

@keyframes pulseGlow {
   0% {
      box-shadow: 0 0 10px var(--primary-glow);
   }

   50% {
      box-shadow: 0 0 30px var(--primary), 0 0 50px var(--secondary-glow);
   }

   100% {
      box-shadow: 0 0 10px var(--primary-glow);
   }
}

@keyframes slideUpFade {
   0% {
      opacity: 0;
      transform: translateY(50px);
   }

   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes spin3D {
   0% {
      transform: rotateX(0deg) rotateY(0deg);
   }

   100% {
      transform: rotateX(360deg) rotateY(360deg);
   }
}

@keyframes barGrow {
   0% {
      width: 0;
   }

   100% {
      width: var(--target-width);
   }
}

.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s ease-out;
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--header-height);
   background: rgba(3, 4, 7, 0.85);
   backdrop-filter: blur(15px);
   -webkit-backdrop-filter: blur(15px);
   z-index: 1000;
   border-bottom: 1px solid var(--border-color);
   display: flex;
   align-items: center;
   transition: var(--transition-fast);
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
   height: 100%;
}

.logo-container img {
   height: 60px;
}

.nav-links {
   display: flex;
   gap: 30px;
   align-items: center;
}

.nav-links li a {
   font-weight: 500;
   letter-spacing: 1px;
   text-transform: uppercase;
   font-size: 0.9rem;
   position: relative;
   padding: 5px 0;
}

.nav-links li a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--primary);
   transition: var(--transition-fast);
}

.nav-links li a:hover::after {
   width: 100%;
}

.btn-primary {
   background: linear-gradient(45deg, var(--primary), var(--secondary));
   color: #fff;
   padding: 12px 28px;
   border-radius: 30px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   border: none;
   cursor: pointer;
   transition: var(--transition-fast);
   box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 25px var(--secondary-glow);
}

.mobile-toggle {
   display: none;
   font-size: 2rem;
   cursor: pointer;
   color: var(--text-main);
}

/* ==========================================================================
   Hero Section (3D Parallax & Interactive)
   ========================================================================== */
#hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   padding-top: var(--header-height);
   background: radial-gradient(circle at 50% 50%, #15102c 0%, var(--bg-darker) 100%);
   overflow: hidden;
   position: relative;
}

.hero-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 50px;
   align-items: center;
   z-index: 2;
   position: relative;
}

.hero-content h1 {
   font-size: 4.5rem;
   margin-bottom: 20px;
   line-height: 1.1;
}

.hero-content h1 span {
   background: linear-gradient(45deg, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.hero-content p {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 40px;
   max-width: 500px;
}

.hero-buttons {
   display: flex;
   gap: 20px;
}

.btn-outline {
   background: transparent;
   border: 2px solid var(--primary);
   color: var(--primary);
   padding: 12px 28px;
   border-radius: 30px;
   font-weight: 600;
   text-transform: uppercase;
   transition: var(--transition-fast);
}

.btn-outline:hover {
   background: var(--primary);
   color: var(--bg-dark);
   box-shadow: 0 4px 15px var(--primary-glow);
}

.hero-3d-wrapper {
   perspective: 1000px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.hero-3d-element {
   width: 400px;
   height: 400px;
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(0, 229, 255, 0.2);
   border-radius: 30px;
   transform-style: preserve-3d;
   animation: float 6s infinite ease-in-out;
   display: flex;
   justify-content: center;
   align-items: center;
   box-shadow: inset 0 0 50px rgba(124, 77, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-3d-inner {
   width: 250px;
   height: 250px;
   background: linear-gradient(135deg, var(--primary), var(--secondary));
   border-radius: 50%;
   transform: translateZ(50px);
   animation: pulseGlow 4s infinite;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 4rem;
   font-weight: 900;
   color: #fff;
   box-shadow: 0 0 50px var(--secondary-glow);
}

/* ==========================================================================
   Services Section (3D Hover Cards)
   ========================================================================== */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 30px;
   perspective: 1000px;
}

.service-card {
   background: var(--bg-card);
   border: 1px solid var(--border-color);
   border-radius: 20px;
   padding: 40px 30px;
   text-align: center;
   transition: var(--transition-slow);
   transform-style: preserve-3d;
}

.service-card:hover {
   transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
   background: var(--bg-card-hover);
   border-color: var(--primary);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.service-icon {
   width: 80px;
   height: 80px;
   margin: 0 auto 20px;
   background: rgba(0, 229, 255, 0.1);
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 2.5rem;
   color: var(--primary);
   transition: var(--transition-fast);
   transform: translateZ(30px);
}

.service-card:hover .service-icon {
   background: var(--primary);
   color: var(--bg-dark);
   box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
   font-size: 1.5rem;
   margin-bottom: 15px;
   transform: translateZ(20px);
}

.service-card p {
   color: var(--text-muted);
   font-size: 0.95rem;
   transform: translateZ(10px);
}

/* ==========================================================================
   ROI Calculator Section (Interactive)
   ========================================================================== */
#calculator {
   background: var(--bg-darker);
   border-top: 1px solid var(--border-color);
   border-bottom: 1px solid var(--border-color);
}

.calc-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 50px;
   background: var(--bg-card);
   border-radius: 20px;
   padding: 50px;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
   border: 1px solid var(--border-color);
}

.calc-inputs label {
   display: block;
   margin-bottom: 10px;
   font-weight: 600;
   color: var(--text-main);
}

.calc-inputs input[type="range"] {
   width: 100%;
   margin-bottom: 30px;
   -webkit-appearance: none;
   background: var(--border-color);
   height: 8px;
   border-radius: 4px;
   outline: none;
}

.calc-inputs input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--primary);
   cursor: pointer;
   box-shadow: 0 0 10px var(--primary-glow);
}

.calc-output {
   background: rgba(0, 0, 0, 0.3);
   border-radius: 15px;
   padding: 40px;
   text-align: center;
   display: flex;
   flex-direction: column;
   justify-content: center;
   border: 1px solid rgba(124, 77, 255, 0.3);
}

.calc-output h4 {
   font-size: 1.5rem;
   color: var(--text-muted);
   margin-bottom: 20px;
}

.calc-result {
   font-size: 4rem;
   font-weight: 900;
   background: linear-gradient(45deg, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Campaign Reports Section (Data Visualization CSS)
   ========================================================================== */
.reports-container {
   display: flex;
   flex-direction: column;
   gap: 40px;
}

.report-card {
   background: var(--bg-card);
   padding: 40px;
   border-radius: 20px;
   border: 1px solid var(--border-color);
   position: relative;
   overflow: hidden;
}

.report-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 4px;
   height: 100%;
   background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.report-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 30px;
}

.bar-chart {
   width: 100%;
}

.bar-item {
   margin-bottom: 20px;
}

.bar-label {
   display: flex;
   justify-content: space-between;
   margin-bottom: 8px;
   font-size: 0.9rem;
   color: var(--text-muted);
}

.bar-track {
   width: 100%;
   height: 12px;
   background: var(--bg-darker);
   border-radius: 6px;
   overflow: hidden;
}

.bar-fill {
   height: 100%;
   border-radius: 6px;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   width: 0;
   box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
#industries {
   background: var(--bg-darker);
}

.industry-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 20px;
}

.industry-box {
   background: var(--bg-card);
   border: 1px solid var(--border-color);
   padding: 40px 20px;
   text-align: center;
   border-radius: 15px;
   cursor: pointer;
   transition: var(--transition-fast);
}

.industry-box:hover {
   background: var(--primary);
   color: var(--bg-dark);
   transform: scale(1.05);
}

.industry-box h4 {
   font-size: 1.2rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 30px;
}

.test-card {
   background: var(--bg-card);
   padding: 40px;
   border-radius: 20px;
   position: relative;
   border: 1px solid var(--border-color);
}

.test-card::after {
   content: '"';
   position: absolute;
   top: 20px;
   right: 30px;
   font-size: 5rem;
   color: rgba(255, 255, 255, 0.05);
   font-family: serif;
   line-height: 1;
}

.test-text {
   font-style: italic;
   color: var(--text-muted);
   margin-bottom: 20px;
}

.test-author {
   display: flex;
   align-items: center;
   gap: 15px;
}

.test-avatar {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--primary);
   display: flex;
   justify-content: center;
   align-items: center;
   font-weight: bold;
   color: var(--bg-dark);
}

/* ==========================================================================
   Contact / Quote Section
   ========================================================================== */
#contact-cta {
   background: linear-gradient(135deg, var(--bg-darker) 0%, #15102c 100%);
   border-top: 1px solid var(--border-color);
   border-bottom: 1px solid var(--border-color);
}

.contact-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 50px;
   background: var(--bg-card);
   padding: 0;
   border-radius: 20px;
   overflow: hidden;
   border: 1px solid var(--border-color);
}

.contact-info {
   padding: 60px;
   background: rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
   font-size: 2rem;
   margin-bottom: 20px;
}

.contact-info p {
   color: var(--text-muted);
   margin-bottom: 40px;
}

.info-item {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-bottom: 20px;
   color: var(--text-main);
}

.info-item span {
   color: var(--primary);
   font-weight: bold;
}

.contact-form {
   padding: 60px;
}

.form-group {
   margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
   width: 100%;
   padding: 15px;
   background: var(--bg-dark);
   border: 1px solid var(--border-color);
   border-radius: 10px;
   color: var(--text-main);
   font-family: inherit;
   outline: none;
   transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
   border-color: var(--primary);
   box-shadow: 0 0 10px var(--primary-glow);
}

.form-group textarea {
   height: 150px;
   resize: vertical;
}

/* ==========================================================================
   Legal Pages Specific Styling
   ========================================================================== */
.legal-header {
   padding: 180px 0 80px;
   text-align: center;
   background: radial-gradient(circle at 50% 100%, #15102c 0%, var(--bg-darker) 100%);
   border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
   font-size: 3.5rem;
   margin-bottom: 20px;
   color: var(--primary);
}

.legal-content {
   max-width: 900px;
   margin: 0 auto;
   padding: 60px 20px;
   background: var(--bg-card);
   border-radius: 20px;
   margin-top: -40px;
   position: relative;
   z-index: 10;
   border: 1px solid var(--border-color);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.legal-content h2 {
   font-size: 1.8rem;
   margin: 30px 0 15px;
   color: #fff;
}

.legal-content p,
.legal-content ul {
   color: var(--text-muted);
   margin-bottom: 20px;
   font-size: 1.05rem;
}

.legal-content ul {
   padding-left: 20px;
   list-style-type: disc;
}

.legal-content li {
   margin-bottom: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
   background: var(--bg-darker);
   border-top: 1px solid var(--border-color);
   padding: 80px 0 20px;
   position: relative;
   overflow: hidden;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 40px;
   margin-bottom: 60px;
}

.footer-logo img {
   height: 60px;
   margin-bottom: 20px;
   filter: drop-shadow(0 0 10px var(--primary-glow));
}

.footer-about {
   color: var(--text-muted);
   padding-right: 20px;
}

.footer-col h4 {
   font-size: 1.2rem;
   margin-bottom: 25px;
   color: #fff;
   position: relative;
   display: inline-block;
}

.footer-col h4::after {
   content: '';
   position: absolute;
   left: 0;
   bottom: -8px;
   width: 30px;
   height: 2px;
   background: var(--primary);
}

.footer-links li {
   margin-bottom: 15px;
}

.footer-links a {
   color: var(--text-muted);
   transition: var(--transition-fast);
}

.footer-links a:hover {
   color: var(--primary);
   padding-left: 5px;
}

.newsletter-form {
   display: flex;
   margin-top: 20px;
}

.newsletter-form input {
   flex: 1;
   padding: 12px 15px;
   border: 1px solid var(--border-color);
   background: var(--bg-dark);
   color: #fff;
   border-radius: 30px 0 0 30px;
   outline: none;
}

.newsletter-form button {
   padding: 12px 25px;
   border: none;
   background: var(--primary);
   color: var(--bg-dark);
   font-weight: bold;
   border-radius: 0 30px 30px 0;
   cursor: pointer;
   transition: var(--transition-fast);
}

.newsletter-form button:hover {
   background: var(--secondary);
   color: #fff;
}

.footer-bottom {
   text-align: center;
   padding-top: 20px;
   border-top: 1px solid var(--border-color);
   color: var(--text-muted);
   font-size: 0.9rem;
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
#live-chat {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 9999;
}

.chat-btn {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--primary), var(--secondary));
   color: #fff;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 1.5rem;
   cursor: pointer;
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
   transition: var(--transition-fast);
   animation: float 4s infinite;
}

.chat-btn:hover {
   transform: scale(1.1);
}

.chat-window {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 350px;
   background: var(--bg-card);
   border-radius: 20px;
   border: 1px solid var(--border-color);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
   overflow: hidden;
   transform: scale(0);
   transform-origin: bottom right;
   transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   opacity: 0;
   pointer-events: none;
}

.chat-window.active {
   transform: scale(1);
   opacity: 1;
   pointer-events: auto;
}

.chat-header {
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   padding: 20px;
   color: var(--bg-dark);
   font-weight: bold;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.chat-close {
   cursor: pointer;
   font-size: 1.2rem;
}

.chat-body {
   padding: 20px;
   height: 250px;
   overflow-y: auto;
   background: var(--bg-dark);
}

.chat-msg {
   background: var(--bg-card);
   padding: 10px 15px;
   border-radius: 15px;
   margin-bottom: 10px;
   font-size: 0.9rem;
   max-width: 85%;
   border: 1px solid var(--border-color);
}

.chat-msg.agent {
   border-left: 3px solid var(--primary);
}

.chat-input {
   display: flex;
   padding: 15px;
   background: var(--bg-card);
   border-top: 1px solid var(--border-color);
}

.chat-input input {
   flex: 1;
   background: var(--bg-dark);
   border: 1px solid var(--border-color);
   padding: 10px;
   border-radius: 20px;
   color: #fff;
   outline: none;
}

.chat-input button {
   background: transparent;
   border: none;
   color: var(--primary);
   padding: 0 15px;
   font-weight: bold;
   cursor: pointer;
}

/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */
@media (max-width: 1024px) {
   .hero-content h1 {
      font-size: 3.5rem;
   }

   .hero-3d-element {
      width: 300px;
      height: 300px;
   }

   .hero-3d-inner {
      width: 180px;
      height: 180px;
      font-size: 3rem;
   }

   .industry-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .testimonial-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      background: var(--bg-darker);
      padding: 20px 0;
      border-bottom: 1px solid var(--border-color);
      text-align: center;
   }

   .nav-links.active {
      display: flex;
   }

   .mobile-toggle {
      display: block;
   }

   .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .hero-content p {
      margin: 0 auto 30px;
   }

   .hero-buttons {
      justify-content: center;
   }

   .hero-3d-wrapper {
      margin-top: 50px;
   }

   .calc-wrapper,
   .contact-wrapper {
      grid-template-columns: 1fr;
   }

   .testimonial-grid {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .footer-col h4::after {
      left: 50%;
      transform: translateX(-50%);
   }

   .section-title {
      font-size: 2.5rem;
   }
}