/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
   --primary-color: #ff6b35;
   /* Electric Orange */
   --secondary-color: #00b4d8;
   /* Digital Teal */
   --dark-bg: #0b132b;
   --darker-bg: #050914;
   --light-bg: #f8f9fa;
   --text-dark: #333333;
   --text-light: #ffffff;
   --text-muted: #888888;
   --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
   --transition-fast: 0.3s ease;
   --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
   --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
   --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   overflow-x: hidden;
}

body {
   font-family: var(--font-main);
   color: var(--text-dark);
   background-color: var(--light-bg);
   line-height: 1.6;
   overflow-x: hidden;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   display: block;
}

.container {
   width: 100%;
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-weight: 700;
   line-height: 1.2;
   margin-bottom: 1rem;
}

.section-title {
   text-align: center;
   font-size: 2.5rem;
   margin-bottom: 3rem;
   color: var(--dark-bg);
   position: relative;
}

.section-title::after {
   content: '';
   position: absolute;
   bottom: -10px;
   left: 50%;
   transform: translateX(-50%);
   width: 60px;
   height: 4px;
   background: var(--primary-color);
   border-radius: 2px;
}

.btn {
   display: inline-block;
   padding: 1rem 2.5rem;
   background: var(--primary-color);
   color: var(--text-light);
   border-radius: 50px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   transition: var(--transition-fast);
   cursor: pointer;
   border: none;
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 0%;
   height: 100%;
   background: var(--secondary-color);
   transition: var(--transition-fast);
   z-index: -1;
}

.btn:hover::before {
   width: 100%;
}

.btn:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
}

/* ==========================================================================
   STRICT HEADER & FOOTER (Used across all pages)
   ========================================================================== */
.site-header {
   background-color: var(--dark-bg);
   padding: 1rem 0;
   position: fixed;
   width: 100%;
   top: 0;
   z-index: 1000;
   transition: var(--transition-fast);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled {
   padding: 0.5rem 0;
   background-color: rgba(11, 19, 43, 0.95);
   backdrop-filter: blur(10px);
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo img {
   height: 50px;
   filter: brightness(0) invert(1);
   transition: var(--transition-fast);
}

.main-nav ul {
   display: flex;
   gap: 2rem;
}

.main-nav a {
   color: var(--text-light);
   font-weight: 500;
   position: relative;
   padding: 0.5rem 0;
}

.main-nav a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--primary-color);
   transition: var(--transition-fast);
}

.main-nav a:hover::after {
   width: 100%;
}

.mobile-menu-btn {
   display: none;
   background: none;
   border: none;
   color: var(--text-light);
   font-size: 2rem;
   cursor: pointer;
}

.site-footer {
   background-color: var(--dark-bg);
   color: var(--text-light);
   padding: 5rem 0 2rem;
   margin-top: 4rem;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 3rem;
   margin-bottom: 3rem;
}

.footer-about .logo img {
   height: 60px;
   filter: brightness(0) invert(1);
   margin-bottom: 1.5rem;
}

.footer-about p {
   color: var(--text-muted);
   margin-bottom: 1.5rem;
}

.footer-title {
   font-size: 1.2rem;
   margin-bottom: 1.5rem;
   color: var(--text-light);
   position: relative;
   padding-bottom: 0.5rem;
}

.footer-title::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 30px;
   height: 2px;
   background: var(--primary-color);
}

.footer-links li {
   margin-bottom: 0.8rem;
}

.footer-links a {
   color: var(--text-muted);
   transition: var(--transition-fast);
}

.footer-links a:hover {
   color: var(--primary-color);
   padding-left: 5px;
}

.footer-contact li {
   color: var(--text-muted);
   margin-bottom: 1rem;
   display: flex;
   align-items: flex-start;
   gap: 10px;
}

.footer-bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   color: var(--text-muted);
   font-size: 0.9rem;
}

/* ==========================================================================
   INDEX SECTIONS & COMPONENTS (Animations & 3D Elements)
   ========================================================================== */
/* Section 1: Hero */
.hero {
   padding: 12rem 0 8rem;
   background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
   color: var(--text-light);
   position: relative;
   overflow: hidden;
}

.hero-container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   position: relative;
   z-index: 2;
}

.hero-content h1 {
   font-size: 3.5rem;
   margin-bottom: 1.5rem;
   animation: slideInLeft 1s ease forwards;
}

.hero-content h1 span {
   color: var(--primary-color);
}

.hero-content p {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 2rem;
   animation: slideInLeft 1s ease 0.2s forwards;
   opacity: 0;
}

.hero-btns {
   animation: slideInLeft 1s ease 0.4s forwards;
   opacity: 0;
}

/* 3D Floating Element */
.hero-visual {
   perspective: 1000px;
}

.card-3d {
   width: 100%;
   height: 400px;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 20px;
   backdrop-filter: blur(10px);
   transform-style: preserve-3d;
   transition: transform 0.1s ease;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
   animation: float 6s ease-in-out infinite;
}

.card-3d-inner {
   transform: translateZ(50px);
   text-align: center;
}

.card-3d-inner .metric {
   font-size: 3rem;
   font-weight: bold;
   color: var(--secondary-color);
   margin-bottom: 1rem;
}

/* Section 2: Partners Banner */
.partners {
   padding: 2rem 0;
   background: var(--light-bg);
   border-bottom: 1px solid #e0e0e0;
}

.partners-track {
   display: flex;
   justify-content: space-around;
   align-items: center;
   flex-wrap: wrap;
   gap: 2rem;
   opacity: 0.6;
}

/* Section 3: About Us (Philosophy) */
.about {
   padding: 6rem 0;
   background: #ffffff;
}

.about-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.about-img {
   position: relative;
}

.about-img::before {
   content: '';
   position: absolute;
   top: -20px;
   left: -20px;
   width: 100%;
   height: 100%;
   border: 4px solid var(--primary-color);
   z-index: 1;
   border-radius: 10px;
}

.about-img img {
   border-radius: 10px;
   position: relative;
   z-index: 2;
   box-shadow: var(--box-shadow);
}

/* Section 4: Services */
.services {
   padding: 6rem 0;
   background: var(--light-bg);
}

.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem;
}

.service-card {
   background: #ffffff;
   padding: 3rem 2rem;
   border-radius: 15px;
   box-shadow: var(--box-shadow);
   transition: var(--transition-slow);
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 0;
   background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
   transition: var(--transition-slow);
   z-index: -1;
}

.service-card:hover::before {
   height: 100%;
}

.service-card:hover {
   transform: translateY(-10px);
   color: var(--text-light);
}

.service-icon {
   width: 60px;
   height: 60px;
   background: var(--light-bg);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1.5rem;
   font-size: 1.5rem;
   color: var(--primary-color);
   transition: var(--transition-fast);
}

.service-card:hover .service-icon {
   background: rgba(255, 255, 255, 0.2);
   color: var(--text-light);
}

/* Section 5: Industries */
.industries {
   padding: 6rem 0;
   background: #ffffff;
}

.industry-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1.5rem;
}

.industry-item {
   position: relative;
   height: 250px;
   border-radius: 10px;
   overflow: hidden;
   cursor: pointer;
}

.industry-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease;
}

.industry-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(11, 19, 43, 0.7);
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   color: var(--text-light);
   transition: var(--transition-fast);
}

.industry-item:hover img {
   transform: scale(1.1);
}

.industry-item:hover .industry-overlay {
   background: rgba(255, 107, 53, 0.8);
}

/* Section 6: Interactive Calculator */
.calculator-section {
   padding: 6rem 0;
   background: var(--dark-bg);
   color: var(--text-light);
}

.calculator-section .section-title {
   color: var(--text-light);
}

.calc-container {
   background: rgba(255, 255, 255, 0.05);
   padding: 3rem;
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.1);
   max-width: 800px;
   margin: 0 auto;
}

.range-slider {
   width: 100%;
   margin: 2rem 0;
   -webkit-appearance: none;
   background: rgba(255, 255, 255, 0.2);
   height: 10px;
   border-radius: 5px;
   outline: none;
}

.range-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 25px;
   height: 25px;
   background: var(--primary-color);
   border-radius: 50%;
   cursor: pointer;
   transition: 0.2s;
}

.calc-results {
   display: flex;
   justify-content: space-around;
   margin-top: 3rem;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-result-item {
   text-align: center;
}

.calc-result-item span {
   display: block;
   font-size: 2.5rem;
   font-weight: bold;
   color: var(--secondary-color);
}

/* Section 7: Campaign Reports / Analytics Dashboard */
.reports {
   padding: 6rem 0;
   background: var(--light-bg);
}

.dashboard-mockup {
   background: #ffffff;
   border-radius: 20px;
   padding: 2rem;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
   display: grid;
   grid-template-columns: 1fr 2fr;
   gap: 2rem;
}

.dash-sidebar {
   background: var(--dark-bg);
   border-radius: 15px;
   padding: 2rem;
   color: var(--text-light);
}

.dash-bars {
   display: flex;
   align-items: flex-end;
   gap: 1rem;
   height: 300px;
   padding-top: 2rem;
   border-bottom: 2px solid #eee;
   border-left: 2px solid #eee;
}

.bar {
   flex: 1;
   background: var(--secondary-color);
   border-radius: 5px 5px 0 0;
   animation: growUp 2s ease-out forwards;
   transform-origin: bottom;
   opacity: 0;
}

.bar:nth-child(1) {
   height: 40%;
   animation-delay: 0.1s;
}

.bar:nth-child(2) {
   height: 60%;
   animation-delay: 0.3s;
}

.bar:nth-child(3) {
   height: 30%;
   animation-delay: 0.5s;
}

.bar:nth-child(4) {
   height: 80%;
   animation-delay: 0.7s;
}

.bar:nth-child(5) {
   height: 100%;
   background: var(--primary-color);
   animation-delay: 0.9s;
}

/* Section 8: Testimonials */
.testimonials {
   padding: 6rem 0;
   background: #ffffff;
}

.testimonial-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
}

.testimonial-card {
   background: var(--light-bg);
   padding: 3rem 2rem;
   border-radius: 10px;
   position: relative;
}

.testimonial-card::after {
   content: '"';
   position: absolute;
   top: 10px;
   right: 20px;
   font-size: 5rem;
   color: rgba(255, 107, 53, 0.1);
   font-family: Georgia, serif;
}

/* Section 9: CTA Banner */
.cta-banner {
   padding: 8rem 0;
   background: linear-gradient(rgba(11, 19, 43, 0.9), rgba(11, 19, 43, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23111" width="100" height="100"/></svg>') center/cover fixed;
   text-align: center;
   color: var(--text-light);
}

.cta-banner h2 {
   font-size: 3rem;
   margin-bottom: 2rem;
}

/* Section 10: Contact/Quote Inline */
.inline-contact {
   padding: 6rem 0;
   background: var(--light-bg);
}

.contact-form {
   max-width: 800px;
   margin: 0 auto;
   background: #ffffff;
   padding: 3rem;
   border-radius: 15px;
   box-shadow: var(--box-shadow);
}

.form-group {
   margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
   width: 100%;
   padding: 1rem;
   border: 1px solid #ddd;
   border-radius: 5px;
   font-family: var(--font-main);
   background: var(--light-bg);
   transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--primary-color);
   background: #ffffff;
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 9999;
}

.chat-btn {
   width: 60px;
   height: 60px;
   background: var(--primary-color);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   font-size: 1.5rem;
   cursor: pointer;
   box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
   transition: var(--transition-fast);
   animation: bounce 2s infinite;
}

.chat-btn:hover {
   transform: scale(1.1);
}

.chat-box {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 300px;
   background: #fff;
   border-radius: 10px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   display: none;
   flex-direction: column;
   overflow: hidden;
}

.chat-box.active {
   display: flex;
   animation: slideUp 0.3s ease;
}

.chat-header {
   background: var(--dark-bg);
   color: #fff;
   padding: 1rem;
   font-weight: bold;
   display: flex;
   justify-content: space-between;
}

.chat-close {
   cursor: pointer;
}

.chat-body {
   padding: 1rem;
   height: 250px;
   overflow-y: auto;
   background: var(--light-bg);
}

.chat-msg {
   background: #e0e0e0;
   padding: 0.5rem 1rem;
   border-radius: 15px;
   margin-bottom: 1rem;
   font-size: 0.9rem;
   max-width: 80%;
}

.chat-input-area {
   display: flex;
   border-top: 1px solid #ddd;
}

.chat-input-area input {
   flex: 1;
   padding: 1rem;
   border: none;
   outline: none;
}

.chat-input-area button {
   padding: 0 1rem;
   background: var(--primary-color);
   color: #fff;
   border: none;
   cursor: pointer;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC STYLES
   ========================================================================== */
.legal-page {
   padding: 12rem 0 6rem;
   background: #ffffff;
}

.legal-content {
   max-width: 900px;
   margin: 0 auto;
}

.legal-content h1 {
   font-size: 3rem;
   margin-bottom: 2rem;
   color: var(--dark-bg);
}

.legal-content h2 {
   font-size: 1.8rem;
   margin-top: 3rem;
   margin-bottom: 1rem;
   color: var(--primary-color);
}

.legal-content p {
   margin-bottom: 1.5rem;
   font-size: 1.1rem;
   color: #555;
   line-height: 1.8;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes slideInLeft {
   from {
      opacity: 0;
      transform: translateX(-50px);
   }

   to {
      opacity: 1;
      transform: translateX(0);
   }
}

@keyframes slideUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes float {
   0% {
      transform: translateY(0px) rotateX(0deg) rotateY(0deg);
   }

   50% {
      transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
   }

   100% {
      transform: translateY(0px) rotateX(0deg) rotateY(0deg);
   }
}

@keyframes growUp {
   from {
      opacity: 0;
      transform: scaleY(0);
   }

   to {
      opacity: 1;
      transform: scaleY(1);
   }
}

@keyframes bounce {

   0%,
   20%,
   50%,
   80%,
   100% {
      transform: translateY(0);
   }

   40% {
      transform: translateY(-10px);
   }

   60% {
      transform: translateY(-5px);
   }
}

.hidden-scroll {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show-scroll {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
   .hero-container {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .about-grid {
      grid-template-columns: 1fr;
   }

   .industry-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .dashboard-mockup {
      grid-template-columns: 1fr;
   }
}

@media (max-width: 768px) {
   .main-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 250px;
      height: 100vh;
      background: var(--dark-bg);
      flex-direction: column;
      padding-top: 80px;
      transition: var(--transition-fast);
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
   }

   .main-nav.nav-active {
      right: 0;
   }

   .main-nav ul {
      flex-direction: column;
      align-items: center;
   }

   .mobile-menu-btn {
      display: block;
      z-index: 1001;
   }

   .header-cta {
      display: none;
   }

   .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .footer-contact li {
      justify-content: center;
   }

   .hero-content h1 {
      font-size: 2.5rem;
   }

   .calc-results {
      flex-direction: column;
      gap: 2rem;
   }
}

@media (max-width: 480px) {
   .industry-grid {
      grid-template-columns: 1fr;
   }

   .hero-content h1 {
      font-size: 2rem;
   }

   .section-title {
      font-size: 2rem;
   }
}