/* ==========================================================================
   Base & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Poppins:wght@500;700;800&display=swap');

:root {
   --bg-dark: #0a0e17;
   --bg-darker: #05070a;
   --bg-card: #121826;
   --primary-color: #41EAD4;
   --secondary-color: #7209B7;
   --accent-color: #F72585;
   --text-main: #ffffff;
   --text-muted: #a0aec0;
   --font-heading: 'Poppins', sans-serif;
   --font-body: 'Inter', sans-serif;
   --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
   --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
   --glow: 0 0 20px rgba(65, 234, 212, 0.5);
}

*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: var(--font-body);
   background-color: var(--bg-dark);
   color: var(--text-main);
   line-height: 1.6;
   overflow-x: hidden;
}

ul {
   list-style: none;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition);
}

img {
   max-width: 100%;
   display: block;
}

/* ==========================================================================
   Typography & Utility Classes
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   font-weight: 700;
   line-height: 1.2;
}

.text-gradient {
   background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.section-title {
   text-align: center;
   font-size: 3rem;
   margin-bottom: 1rem;
}

.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;
}

.container {
   width: 100%;
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 20px;
}

section {
   padding: 100px 0;
}

/* Buttons */
.btn {
   display: inline-block;
   padding: 15px 35px;
   border-radius: 50px;
   font-family: var(--font-heading);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   cursor: pointer;
   position: relative;
   overflow: hidden;
   z-index: 1;
   border: none;
   transition: var(--transition);
}

.btn-primary {
   background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
   color: #fff;
   box-shadow: var(--glow);
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
   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 10px 25px rgba(247, 37, 133, 0.4);
}

/* ==========================================================================
   Header (Used across ALL pages)
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   background: rgba(10, 14, 23, 0.95);
   backdrop-filter: blur(10px);
   z-index: 1000;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   transition: var(--transition);
   padding: 20px 0;
}

.site-header.scrolled {
   padding: 10px 0;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo img {
   height: 50px;
}

.nav-menu {
   display: flex;
   gap: 30px;
   align-items: center;
}

.nav-menu li a {
   font-size: 1rem;
   font-weight: 500;
   position: relative;
}

.nav-menu li a::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--primary-color);
   transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
   width: 100%;
}

.nav-menu li a:hover {
   color: var(--primary-color);
}

.mobile-toggle {
   display: none;
   font-size: 2rem;
   cursor: pointer;
   color: var(--text-main);
}

/* ==========================================================================
   Hero Section & 3D Elements
   ========================================================================== */
.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
   padding-top: 80px;
   background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-darker) 100%);
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 800px;
}

.hero h1 {
   font-size: 4.5rem;
   margin-bottom: 20px;
}

.hero p {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 40px;
   max-width: 600px;
}

/* 3D Floating Elements */
.hero-3d-wrapper {
   position: absolute;
   right: 5%;
   top: 20%;
   width: 500px;
   height: 500px;
   perspective: 1000px;
   z-index: 1;
}

.shape {
   position: absolute;
   transform-style: preserve-3d;
   animation: float 6s infinite ease-in-out;
}

.shape-1 {
   width: 150px;
   height: 150px;
   background: linear-gradient(135deg, var(--primary-color), transparent);
   border-radius: 20px;
   top: 10%;
   left: 20%;
   animation-delay: 0s;
   backdrop-filter: blur(5px);
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape-2 {
   width: 200px;
   height: 200px;
   border-radius: 50%;
   background: linear-gradient(135deg, transparent, var(--secondary-color));
   bottom: 10%;
   right: 10%;
   animation-delay: -2s;
}

.shape-3 {
   width: 100px;
   height: 100px;
   background: linear-gradient(135deg, var(--accent-color), transparent);
   top: 50%;
   right: 40%;
   transform: rotate(45deg);
   animation-delay: -4s;
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0) rotateX(10deg) rotateY(10deg);
   }

   50% {
      transform: translateY(-20px) rotateX(-10deg) rotateY(-10deg);
   }
}

/* ==========================================================================
   Services Section (3D Tilt Cards)
   ========================================================================== */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 30px;
   perspective: 1000px;
}

.service-card {
   background: var(--bg-card);
   padding: 40px 30px;
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   transition: transform 0.1s ease;
   transform-style: preserve-3d;
   position: relative;
   overflow: hidden;
}

.service-card::before {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: radial-gradient(circle, rgba(65, 234, 212, 0.1) 0%, transparent 70%);
   opacity: 0;
   transition: opacity 0.4s ease;
}

.service-card:hover::before {
   opacity: 1;
}

.service-icon {
   font-size: 3rem;
   margin-bottom: 20px;
   color: var(--primary-color);
   transform: translateZ(30px);
}

.service-card h3 {
   font-size: 1.5rem;
   margin-bottom: 15px;
   transform: translateZ(20px);
}

.service-card p {
   color: var(--text-muted);
   transform: translateZ(10px);
}

/* ==========================================================================
   Interactive Campaign Reports Section
   ========================================================================== */
.interactive-reports {
   background: var(--bg-darker);
   position: relative;
}

.report-container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 50px;
   align-items: center;
}

.report-visuals {
   background: var(--bg-card);
   padding: 40px;
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   box-shadow: var(--box-shadow);
}

.chart-bar {
   margin-bottom: 25px;
}

.chart-info {
   display: flex;
   justify-content: space-between;
   margin-bottom: 10px;
   font-weight: 600;
}

.chart-track {
   width: 100%;
   height: 15px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 10px;
   overflow: hidden;
}

.chart-fill {
   height: 100%;
   width: 0;
   /* Animated via JS */
   border-radius: 10px;
   background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
   transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 20px;
}

.industry-box {
   text-align: center;
   padding: 30px;
   background: var(--bg-card);
   border-radius: 15px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   transition: var(--transition);
}

.industry-box:hover {
   background: var(--secondary-color);
   transform: translateY(-10px);
   box-shadow: 0 10px 20px rgba(114, 9, 183, 0.4);
}

.industry-box h4 {
   font-size: 1.2rem;
   margin-top: 15px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
   background: var(--bg-darker);
}

.testimonial-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
}

.testimonial-card {
   background: var(--bg-card);
   padding: 40px;
   border-radius: 20px;
   position: relative;
}

.testimonial-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;
}

.client-info {
   display: flex;
   align-items: center;
   margin-top: 20px;
}

.client-avatar {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--primary-color);
   margin-right: 15px;
}

/* ==========================================================================
   Contact / Quote Section
   ========================================================================== */
.contact-section {
   position: relative;
}

.contact-wrapper {
   display: grid;
   grid-template-columns: 1fr 1.5fr;
   gap: 50px;
   background: var(--bg-card);
   border-radius: 20px;
   overflow: hidden;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
   padding: 50px;
   background: linear-gradient(135deg, var(--secondary-color), var(--bg-card));
}

.contact-info h3 {
   font-size: 2rem;
   margin-bottom: 20px;
}

.info-item {
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   gap: 15px;
}

.contact-form {
   padding: 50px;
}

.form-group {
   margin-bottom: 20px;
}

.form-control {
   width: 100%;
   padding: 15px 20px;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   color: var(--text-main);
   border-radius: 10px;
   font-family: var(--font-body);
   transition: var(--transition);
}

.form-control:focus {
   outline: none;
   border-color: var(--primary-color);
   background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
   resize: vertical;
   height: 150px;
}

/* ==========================================================================
   Legal Pages Specific Styling
   ========================================================================== */
.legal-header {
   padding-top: 150px;
   padding-bottom: 50px;
   text-align: center;
   background: var(--bg-darker);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content {
   padding: 80px 0;
   max-width: 900px;
   margin: 0 auto;
}

.legal-content h2 {
   font-size: 2rem;
   margin-top: 40px;
   margin-bottom: 20px;
   color: var(--primary-color);
}

.legal-content p {
   margin-bottom: 20px;
   font-size: 1.1rem;
   color: var(--text-muted);
}

.legal-content ul {
   margin-left: 20px;
   margin-bottom: 20px;
   color: var(--text-muted);
}

.legal-content li {
   margin-bottom: 10px;
   list-style-type: disc;
}

/* ==========================================================================
   Footer (Used across ALL pages)
   ========================================================================== */
.site-footer {
   background: var(--bg-darker);
   padding: 80px 0 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 40px;
   margin-bottom: 60px;
}

.footer-about p {
   color: var(--text-muted);
   margin-top: 20px;
}

.footer-title {
   font-size: 1.3rem;
   margin-bottom: 25px;
   color: var(--text-main);
}

.footer-links li {
   margin-bottom: 15px;
}

.footer-links a {
   color: var(--text-muted);
   transition: var(--transition);
}

.footer-links a:hover {
   color: var(--primary-color);
   padding-left: 5px;
}

.footer-bottom {
   text-align: center;
   padding-top: 20px;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   color: var(--text-muted);
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s ease;
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

@media (max-width: 1024px) {
   .hero h1 {
      font-size: 3.5rem;
   }

   .hero-3d-wrapper {
      display: none;
      /* Simplify on tablets */
   }

   .contact-wrapper {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background: var(--bg-card);
      flex-direction: column;
      justify-content: center;
      transition: var(--transition);
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
   }

   .nav-menu.active {
      right: 0;
   }

   .mobile-toggle {
      display: block;
      z-index: 1001;
   }

   .hero h1 {
      font-size: 2.8rem;
   }

   .report-container {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr;
   }
}