/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
   --bg-dark: #070B14;
   --bg-surface: #111827;
   --bg-surface-light: #1F2937;
   --primary: #0ea5e9;
   --primary-glow: rgba(14, 165, 233, 0.5);
   --secondary: #8b5cf6;
   --text-main: #f3f4f6;
   --text-muted: #9ca3af;
   --white: #ffffff;
   --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
   --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
   --header-height: 90px;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   overflow-x: hidden;
}

body {
   font-family: var(--font-main);
   background-color: var(--bg-dark);
   color: var(--text-main);
   line-height: 1.6;
   overflow-x: hidden;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition);
}

ul {
   list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4 {
   font-weight: 700;
   line-height: 1.2;
   margin-bottom: 1rem;
}

h1 {
   font-size: 4rem;
   background: linear-gradient(135deg, var(--white), var(--primary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

h2 {
   font-size: 2.8rem;
   text-align: center;
}

p {
   margin-bottom: 1rem;
   color: var(--text-muted);
}

.container {
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 2rem;
}

.section-padding {
   padding: 6rem 0;
}

.text-center {
   text-align: center;
}

.gradient-text {
   background: linear-gradient(135deg, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.btn {
   display: inline-block;
   padding: 1rem 2rem;
   border-radius: 50px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   cursor: pointer;
   transition: var(--transition);
   border: none;
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.btn-primary {
   background: var(--primary);
   color: var(--white);
   box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
   background: var(--secondary);
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
   background: transparent;
   border: 2px solid var(--primary);
   color: var(--primary);
}

.btn-outline:hover {
   background: var(--primary);
   color: var(--white);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes float {
   0% {
      transform: translateY(0px) rotateX(0) rotateY(0);
   }

   50% {
      transform: translateY(-20px) rotateX(10deg) rotateY(10deg);
   }

   100% {
      transform: translateY(0px) rotateX(0) rotateY(0);
   }
}

@keyframes pulseGlow {
   0% {
      box-shadow: 0 0 0 0 var(--primary-glow);
   }

   70% {
      box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0);
   }

   100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
   }
}

@keyframes slideUp {
   from {
      opacity: 0;
      transform: translateY(50px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes fillBar {
   from {
      height: 0;
   }
}

.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s ease-out;
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--header-height);
   background: rgba(7, 11, 20, 0.95);
   backdrop-filter: blur(10px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   z-index: 1000;
   transition: var(--transition);
}

.site-header.scrolled {
   height: 70px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   height: 100%;
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 2rem;
}

.logo img {
   max-height: 55px;
   filter: invert(1);
   transition: var(--transition);
}

.nav-menu {
   display: flex;
   gap: 2.5rem;
   align-items: center;
}

.nav-link {
   font-weight: 500;
   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(--primary);
   transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
   width: 100%;
}

.mobile-toggle {
   display: none;
   background: none;
   border: none;
   color: var(--white);
   font-size: 1.5rem;
   cursor: pointer;
}

/* ==========================================================================
   Hero Section (3D Elements)
   ========================================================================== */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
   padding-top: var(--header-height);
}

.hero::before {
   content: '';
   position: absolute;
   top: -20%;
   left: -10%;
   width: 50%;
   height: 50%;
   background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
   filter: blur(80px);
   z-index: -1;
}

.hero-content {
   flex: 1;
   max-width: 600px;
   z-index: 2;
}

.hero-content h1 {
   margin-bottom: 1.5rem;
   animation: slideUp 1s ease forwards;
}

.hero-content p {
   font-size: 1.2rem;
   margin-bottom: 2.5rem;
   animation: slideUp 1.2s ease forwards;
}

.hero-visuals {
   flex: 1;
   position: relative;
   perspective: 1000px;
   height: 500px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.cube-wrapper {
   width: 250px;
   height: 250px;
   transform-style: preserve-3d;
   animation: float 6s infinite ease-in-out;
}

.cube-face {
   position: absolute;
   width: 100%;
   height: 100%;
   background: rgba(14, 165, 233, 0.1);
   border: 2px solid var(--primary);
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 1.5rem;
   font-weight: bold;
   box-shadow: inset 0 0 30px var(--primary-glow);
   backdrop-filter: blur(5px);
   color: var(--white);
}

.front {
   transform: translateZ(125px);
}

.back {
   transform: rotateY(180deg) translateZ(125px);
}

.right {
   transform: rotateY(90deg) translateZ(125px);
}

.left {
   transform: rotateY(-90deg) translateZ(125px);
}

.top {
   transform: rotateX(90deg) translateZ(125px);
}

.bottom {
   transform: rotateX(-90deg) translateZ(125px);
}

/* ==========================================================================
   Stats & About
   ========================================================================== */
.stats {
   background: var(--bg-surface);
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem;
   text-align: center;
}

.stat-item h3 {
   font-size: 3rem;
   color: var(--primary);
   margin-bottom: 0.5rem;
}

.stat-item p {
   text-transform: uppercase;
   letter-spacing: 2px;
   font-size: 0.85rem;
   font-weight: 600;
}

/* ==========================================================================
   Services Section (3D Flip Cards)
   ========================================================================== */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem;
   margin-top: 4rem;
   perspective: 1000px;
}

.service-card {
   position: relative;
   height: 350px;
   transform-style: preserve-3d;
   transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
   cursor: pointer;
}

.service-card:hover {
   transform: rotateY(180deg);
}

.card-front,
.card-back {
   position: absolute;
   width: 100%;
   height: 100%;
   backface-visibility: hidden;
   border-radius: 20px;
   padding: 2rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
}

.card-front {
   background: var(--bg-surface);
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-front svg {
   width: 60px;
   height: 60px;
   fill: var(--primary);
   margin-bottom: 1.5rem;
}

.card-back {
   background: linear-gradient(135deg, var(--primary), var(--secondary));
   transform: rotateY(180deg);
   color: var(--white);
}

.card-back p {
   color: var(--white);
   font-size: 0.95rem;
}

.card-back .btn-outline {
   border-color: var(--white);
   color: var(--white);
   margin-top: 1rem;
}

.card-back .btn-outline:hover {
   background: var(--white);
   color: var(--primary);
}

/* ==========================================================================
   Interactive Calculator Section
   ========================================================================== */
.calculator-wrap {
   background: var(--bg-surface);
   border-radius: 20px;
   padding: 3rem;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
   max-width: 800px;
   margin: 3rem auto 0;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-row {
   margin-bottom: 2rem;
}

.calc-row label {
   display: flex;
   justify-content: space-between;
   margin-bottom: 1rem;
   font-weight: 600;
}

.calc-row input[type=range] {
   width: 100%;
   appearance: none;
   height: 8px;
   border-radius: 5px;
   background: var(--bg-surface-light);
   outline: none;
}

.calc-row input[type=range]::-webkit-slider-thumb {
   appearance: none;
   width: 25px;
   height: 25px;
   border-radius: 50%;
   background: var(--primary);
   cursor: pointer;
   transition: 0.2s;
   box-shadow: 0 0 10px var(--primary-glow);
}

.calc-row input[type=range]::-webkit-slider-thumb:hover {
   transform: scale(1.2);
}

.calc-result {
   background: var(--bg-dark);
   padding: 2rem;
   border-radius: 15px;
   text-align: center;
   border: 1px solid var(--primary);
}

.calc-result h4 {
   color: var(--text-muted);
   font-size: 1rem;
   text-transform: uppercase;
   margin-bottom: 0.5rem;
}

.calc-result span {
   font-size: 3.5rem;
   font-weight: 700;
   color: #10b981;
   text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Campaign Reports (CSS Data Viz)
   ========================================================================== */
.reports {
   background: var(--bg-surface-light);
}

.chart-container {
   display: flex;
   align-items: flex-end;
   justify-content: space-around;
   height: 300px;
   background: var(--bg-dark);
   padding: 2rem;
   border-radius: 20px;
   margin-top: 3rem;
   position: relative;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-container::before {
   content: '';
   position: absolute;
   left: 2rem;
   bottom: 2rem;
   width: calc(100% - 4rem);
   height: 1px;
   background: rgba(255, 255, 255, 0.1);
}

.bar-wrap {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 15%;
   height: 100%;
   justify-content: flex-end;
   z-index: 1;
}

.bar {
   width: 100%;
   background: linear-gradient(to top, var(--secondary), var(--primary));
   border-radius: 5px 5px 0 0;
   transition: height 1.5s ease-out;
   position: relative;
}

.bar:hover {
   filter: brightness(1.2);
}

.bar-label {
   margin-top: 1rem;
   font-size: 0.9rem;
   font-weight: 600;
   color: var(--text-muted);
}

.bar-value {
   position: absolute;
   top: -30px;
   left: 50%;
   transform: translateX(-50%);
   font-weight: bold;
   color: var(--white);
   opacity: 0;
   transition: opacity 0.3s;
}

.bar:hover .bar-value {
   opacity: 1;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin-top: 4rem;
}

.testimonial-card {
   background: var(--bg-surface);
   padding: 2.5rem;
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   position: relative;
   transition: transform 0.3s;
}

.testimonial-card:hover {
   transform: translateY(-10px);
   border-color: var(--primary);
}

.quote-icon {
   position: absolute;
   top: 1.5rem;
   right: 1.5rem;
   font-size: 3rem;
   color: rgba(14, 165, 233, 0.1);
   line-height: 1;
}

.client-info {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-top: 2rem;
}

.client-avatar {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: var(--bg-surface-light);
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 1.5rem;
   font-weight: bold;
   color: var(--primary);
   border: 2px solid var(--primary);
}

.client-details h4 {
   margin-bottom: 0.2rem;
   font-size: 1.1rem;
}

.client-details p {
   margin-bottom: 0;
   font-size: 0.9rem;
   color: var(--primary);
}

/* ==========================================================================
   Live Chat / Forms
   ========================================================================== */
.contact-section {
   background: var(--bg-dark);
}

.form-wrap {
   background: var(--bg-surface);
   padding: 3rem;
   border-radius: 20px;
   max-width: 800px;
   margin: 0 auto;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
   margin-bottom: 1.5rem;
}

.form-control {
   width: 100%;
   padding: 1rem 1.5rem;
   background: var(--bg-dark);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 10px;
   color: var(--white);
   font-size: 1rem;
   font-family: inherit;
   transition: var(--transition);
}

.form-control:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

textarea.form-control {
   resize: vertical;
   min-height: 150px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
   background: #04070A;
   padding: 5rem 0 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 4rem;
   margin-bottom: 3rem;
}

.footer-logo img {
   max-height: 55px;
   margin-bottom: 1.5rem;
   filter: invert(1);
}

.footer-text {
   color: var(--text-muted);
   font-size: 0.95rem;
}

.footer-heading {
   font-size: 1.2rem;
   color: var(--white);
   margin-bottom: 1.5rem;
   position: relative;
   padding-bottom: 0.5rem;
}

.footer-heading::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 40px;
   height: 2px;
   background: var(--primary);
}

.footer-links li {
   margin-bottom: 0.8rem;
}

.footer-links a {
   color: var(--text-muted);
   font-size: 0.95rem;
}

.footer-links a:hover {
   color: var(--primary);
   padding-left: 5px;
}

.footer-contact li {
   display: flex;
   align-items: flex-start;
   gap: 1rem;
   margin-bottom: 1rem;
   color: var(--text-muted);
   font-size: 0.95rem;
}

.footer-contact svg {
   width: 20px;
   height: 20px;
   fill: var(--primary);
   flex-shrink: 0;
}

.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(--text-muted);
   font-size: 0.9rem;
}

.footer-legal-links {
   display: flex;
   gap: 1.5rem;
}

.footer-legal-links a:hover {
   color: var(--white);
}

/* ==========================================================================
   Legal Pages Specifics
   ========================================================================== */
.page-header {
   padding: 12rem 0 6rem;
   background: linear-gradient(to bottom, #070B14, #111827);
   text-align: center;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content {
   max-width: 900px;
   margin: 0 auto;
   padding: 4rem 2rem;
   background: var(--bg-surface);
   border-radius: 20px;
   margin-top: -3rem;
   position: relative;
   z-index: 10;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.legal-content h2 {
   font-size: 2rem;
   margin: 2rem 0 1rem;
   color: var(--white);
   text-align: left;
}

.legal-content p,
.legal-content ul {
   margin-bottom: 1.5rem;
   color: var(--text-muted);
}

.legal-content ul {
   padding-left: 2rem;
   list-style-type: disc;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
   h1 {
      font-size: 3rem;
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
   }

   .hero-visuals {
      display: none;
   }

   .hero-content {
      max-width: 100%;
      text-align: center;
   }

   .stats-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
   .nav-menu {
      position: fixed;
      top: var(--header-height);
      left: -100%;
      width: 100%;
      height: calc(100vh - var(--header-height));
      background: var(--bg-dark);
      flex-direction: column;
      justify-content: center;
      transition: var(--transition);
   }

   .nav-menu.active {
      left: 0;
   }

   .mobile-toggle {
      display: block;
   }

   .footer-grid {
      grid-template-columns: 1fr;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
   }

   h1 {
      font-size: 2.5rem;
   }

   h2 {
      font-size: 2rem;
   }

   .calc-row label {
      flex-direction: column;
      gap: 0.5rem;
   }
}