/* ==========================================================================
   AWWARDS-LEVEL DIGITAL MARKETING THEME - STYLES.CSS
   ========================================================================== */

/* --- 1. CSS VARIABLES & THEME --- */
:root {
   /* Core Colors */
   --bg-dark: #050505;
   --bg-panel: #111111;
   --bg-glass: rgba(255, 255, 255, 0.03);
   --color-white: #ffffff;
   --color-light: #e0e0e0;
   --color-muted: #888888;

   /* Primary Brand Colors (Electric Digital Theme) */
   --brand-primary: #4f46e5;
   --brand-secondary: #06b6d4;
   --brand-accent: #8b5cf6;
   --gradient-glow: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
   --gradient-text: linear-gradient(to right, #fff, #a1a1aa);

   /* Typography */
   --font-primary: 'Syne', sans-serif;
   --font-secondary: 'Inter', sans-serif;

   /* Spacing & Sizes */
   --nav-height: 100px;
   --section-padding: clamp(4rem, 10vw, 8rem);
   --container-width: 1400px;
   --border-radius: 16px;
   --border-radius-lg: 32px;

   /* Animations */
   --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
   --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET & BASE --- */
*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   font-size: 16px;
   scroll-behavior: smooth;
}

body {
   background-color: var(--bg-dark);
   color: var(--color-light);
   font-family: var(--font-secondary);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
   width: 8px;
}

::-webkit-scrollbar-track {
   background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
   background: var(--brand-primary);
   border-radius: 4px;
}

/* Custom Selection */
::selection {
   background: var(--brand-primary);
   color: var(--color-white);
}

/* Custom Cursor */
.custom-cursor {
   position: fixed;
   top: 0;
   left: 0;
   width: 20px;
   height: 20px;
   background: var(--brand-secondary);
   border-radius: 50%;
   pointer-events: none;
   z-index: 9999;
   mix-blend-mode: difference;
   transform: translate(-50%, -50%);
   transition: width 0.3s, height 0.3s, background 0.3s;
}

.custom-cursor.hover {
   width: 60px;
   height: 60px;
   background: var(--color-white);
}

/* --- 3. TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-primary);
   font-weight: 700;
   color: var(--color-white);
   line-height: 1.1;
}

.heading-huge {
   font-size: clamp(3rem, 8vw, 7rem);
   letter-spacing: -0.03em;
   text-transform: uppercase;
}

.heading-lg {
   font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.heading-md {
   font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-gradient {
   background: var(--gradient-text);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.text-accent {
   background: var(--gradient-glow);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* --- 4. LAYOUT & CONTAINERS --- */
.container {
   max-width: var(--container-width);
   margin: 0 auto;
   padding: 0 2rem;
}

section {
   padding: var(--section-padding) 0;
   position: relative;
}

/* --- 5. UI COMPONENTS --- */
/* Premium Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1rem 2.5rem;
   font-family: var(--font-primary);
   font-size: 1rem;
   font-weight: 600;
   color: var(--color-white);
   background: transparent;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 50px;
   text-decoration: none;
   cursor: pointer;
   position: relative;
   overflow: hidden;
   transition: var(--transition-fast);
}

.btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: var(--gradient-glow);
   z-index: -1;
   transform: scaleX(0);
   transform-origin: right;
   transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
   transform: scaleX(1);
   transform-origin: left;
}

.btn:hover {
   border-color: transparent;
   box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.btn-primary {
   background: var(--brand-primary);
   border-color: var(--brand-primary);
}

/* Glass Cards */
.glass-card {
   background: var(--bg-glass);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: var(--border-radius);
   padding: 3rem;
   transition: var(--transition-fast);
   position: relative;
   overflow: hidden;
}

.glass-card:hover {
   transform: translateY(-10px);
   border-color: rgba(255, 255, 255, 0.1);
   background: rgba(255, 255, 255, 0.06);
}

/* --- 6. HEADER & NAVIGATION --- */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--nav-height);
   display: flex;
   align-items: center;
   z-index: 1000;
   transition: var(--transition-fast);
   background: transparent;
}

.site-header.scrolled {
   background: rgba(5, 5, 5, 0.85);
   backdrop-filter: blur(15px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   height: 80px;
}

.header-inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
}

.logo img {
   height: 90px;
   width: auto;
   filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.nav-links {
   display: flex;
   gap: 3rem;
   list-style: none;
}

.nav-links a {
   color: var(--color-white);
   text-decoration: none;
   font-family: var(--font-primary);
   font-size: 1.1rem;
   font-weight: 500;
   position: relative;
   transition: var(--transition-fast);
}

.nav-links a::after {
   content: '';
   position: absolute;
   width: 0;
   height: 2px;
   bottom: -5px;
   left: 0;
   background: var(--gradient-glow);
   transition: var(--transition-fast);
}

.nav-links a:hover::after {
   width: 100%;
}

.mobile-menu-btn {
   display: none;
   background: none;
   border: none;
   color: #fff;
   font-size: 2rem;
   cursor: pointer;
}

/* --- 7. HERO SECTION --- */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   padding-top: var(--nav-height);
   position: relative;
   overflow: hidden;
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 800px;
}

.hero-subtitle {
   font-family: var(--font-primary);
   color: var(--brand-secondary);
   letter-spacing: 2px;
   text-transform: uppercase;
   margin-bottom: 1rem;
   display: block;
}

.hero p {
   font-size: 1.2rem;
   color: var(--color-muted);
   margin: 2rem 0 3rem;
   max-width: 600px;
}

/* 3D Abstract Element */
.hero-3d-element {
   position: absolute;
   right: 5%;
   top: 50%;
   transform: translateY(-50%);
   width: 500px;
   height: 500px;
   perspective: 1000px;
   z-index: 1;
}

.shape-inner {
   width: 100%;
   height: 100%;
   position: relative;
   transform-style: preserve-3d;
   animation: float 10s infinite ease-in-out;
}

.shape-inner svg {
   width: 100%;
   height: 100%;
   filter: drop-shadow(0 0 30px var(--brand-primary));
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0) rotateX(0) rotateY(0);
   }

   50% {
      transform: translateY(-30px) rotateX(10deg) rotateY(-10deg);
   }
}

/* Glowing Background Blobs */
.bg-blob {
   position: absolute;
   border-radius: 50%;
   filter: blur(150px);
   z-index: 0;
   opacity: 0.4;
   animation: blob-pulse 8s infinite alternate;
}

.blob-1 {
   top: -10%;
   left: -10%;
   width: 500px;
   height: 500px;
   background: var(--brand-primary);
}

.blob-2 {
   bottom: 10%;
   right: -10%;
   width: 600px;
   height: 600px;
   background: var(--brand-secondary);
}

@keyframes blob-pulse {
   0% {
      transform: scale(1);
      opacity: 0.3;
   }

   100% {
      transform: scale(1.2);
      opacity: 0.6;
   }
}

/* --- 8. SCROLLING MARQUEE --- */
.marquee-section {
   padding: 2rem 0;
   background: var(--brand-primary);
   overflow: hidden;
   transform: rotate(-2deg) scale(1.05);
   margin: 4rem 0;
}

.marquee-content {
   display: flex;
   white-space: nowrap;
   animation: scroll-marquee 20s linear infinite;
}

.marquee-content span {
   font-family: var(--font-primary);
   font-size: 3rem;
   font-weight: 700;
   color: var(--bg-dark);
   text-transform: uppercase;
   padding: 0 2rem;
}

.marquee-content span.outline {
   -webkit-text-stroke: 2px var(--bg-dark);
   color: transparent;
}

@keyframes scroll-marquee {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

/* --- 9. SERVICES SECTION --- */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin-top: 4rem;
}

.service-card {
   text-align: left;
}

.service-icon {
   width: 60px;
   height: 60px;
   background: rgba(79, 70, 229, 0.1);
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 2rem;
   color: var(--brand-secondary);
}

.service-icon svg {
   width: 30px;
   height: 30px;
   fill: currentColor;
}

.service-card h3 {
   margin-bottom: 1rem;
   font-size: 1.5rem;
}

.service-card p {
   color: var(--color-muted);
   margin-bottom: 2rem;
}

.service-link {
   color: var(--color-white);
   text-decoration: none;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   gap: 10px;
   transition: var(--transition-fast);
}

.service-link:hover {
   color: var(--brand-secondary);
   gap: 15px;
}

/* --- 10. INDUSTRY TABS SECTION --- */
.industry-tabs {
   display: flex;
   flex-direction: column;
   gap: 2rem;
   margin-top: 4rem;
}

.tab-buttons {
   display: flex;
   gap: 1rem;
   overflow-x: auto;
   padding-bottom: 1rem;
}

.tab-btn {
   padding: 1rem 2rem;
   background: var(--bg-panel);
   border: 1px solid rgba(255, 255, 255, 0.05);
   color: var(--color-muted);
   border-radius: 50px;
   cursor: pointer;
   font-family: var(--font-primary);
   font-size: 1.1rem;
   transition: var(--transition-fast);
   white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
   background: var(--brand-primary);
   color: var(--color-white);
   border-color: var(--brand-primary);
}

.tab-content {
   display: none;
   animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.tab-img {
   width: 100%;
   height: 400px;
   background: var(--bg-panel);
   border-radius: var(--border-radius);
   position: relative;
   overflow: hidden;
}

.tab-img::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* --- 11. ROI CALCULATOR --- */
.calculator-wrapper {
   background: var(--bg-panel);
   border-radius: var(--border-radius-lg);
   padding: 4rem;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   position: relative;
   overflow: hidden;
}

.calc-input-group {
   margin-bottom: 2rem;
}

.calc-input-group label {
   display: flex;
   justify-content: space-between;
   margin-bottom: 1rem;
   font-family: var(--font-primary);
   color: var(--color-white);
}

input[type=range] {
   -webkit-appearance: none;
   width: 100%;
   background: rgba(255, 255, 255, 0.1);
   height: 6px;
   border-radius: 3px;
   outline: none;
}

input[type=range]::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 24px;
   height: 24px;
   background: var(--brand-secondary);
   border-radius: 50%;
   cursor: pointer;
   box-shadow: 0 0 15px var(--brand-secondary);
}

.calc-result {
   background: rgba(0, 0, 0, 0.5);
   padding: 3rem;
   border-radius: var(--border-radius);
   text-align: center;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-result h4 {
   color: var(--color-muted);
   margin-bottom: 1rem;
}

.calc-total {
   font-size: 4rem;
   font-family: var(--font-primary);
   font-weight: 700;
   color: var(--brand-secondary);
   text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* --- 12. SAMPLE REPORTS (INTERACTIVE CHARTS) --- */
.reports-container {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 2rem;
   margin-top: 4rem;
}

.chart-card {
   height: 350px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.chart-visual {
   flex-grow: 1;
   display: flex;
   align-items: flex-end;
   gap: 15px;
   padding-top: 2rem;
}

.chart-bar {
   flex: 1;
   background: var(--gradient-glow);
   border-radius: 6px 6px 0 0;
   animation: growUp 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
   transform-origin: bottom;
   opacity: 0;
}

@keyframes growUp {
   0% {
      transform: scaleY(0);
      opacity: 0;
   }

   100% {
      transform: scaleY(1);
      opacity: 1;
   }
}

/* --- 13. TESTIMONIALS (3D CAROUSEL) --- */
.testimonials-slider {
   display: flex;
   gap: 2rem;
   overflow-x: auto;
   padding: 2rem 0;
   scrollbar-width: none;
   /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
   display: none;
   /* Chrome */
}

.testimonial-card {
   min-width: 400px;
   flex-shrink: 0;
}

.client-info {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-top: 2rem;
}

.client-avatar {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--color-muted);
}

/* --- 14. CONTACT FORM --- */
.contact-section {
   background: var(--bg-panel);
}

.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
}

.form-group {
   margin-bottom: 1.5rem;
   position: relative;
}

.form-control {
   width: 100%;
   padding: 1.2rem;
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 8px;
   color: var(--color-white);
   font-family: var(--font-secondary);
   font-size: 1rem;
   transition: var(--transition-fast);
}

.form-control:focus {
   outline: none;
   border-color: var(--brand-primary);
   background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
   min-height: 150px;
   resize: vertical;
}

/* --- 15. FOOTER --- */
.site-footer {
   background: var(--bg-dark);
   padding: 6rem 0 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   position: relative;
   overflow: hidden;
}

.footer-top {
   text-align: center;
   margin-bottom: 6rem;
}

.footer-top h2 {
   font-size: clamp(4rem, 10vw, 10rem);
   line-height: 1;
   margin-bottom: 2rem;
   color: transparent;
   -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
   transition: var(--transition-fast);
}

.footer-top h2:hover {
   -webkit-text-stroke: 1px var(--brand-secondary);
   color: rgba(6, 182, 212, 0.1);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 4rem;
   margin-bottom: 4rem;
}

.footer-col h4 {
   margin-bottom: 1.5rem;
   font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
   color: var(--color-muted);
   text-decoration: none;
   margin-bottom: 0.8rem;
   display: block;
   transition: var(--transition-fast);
}

.footer-col a:hover {
   color: var(--brand-secondary);
   transform: translateX(5px);
}

.footer-bottom {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   color: var(--color-muted);
   font-size: 0.9rem;
}

.legal-links {
   display: flex;
   gap: 2rem;
}

/* --- 16. LIVE CHAT WIDGET --- */
.chat-widget {
   position: fixed;
   bottom: 30px;
   right: 30px;
   width: 60px;
   height: 60px;
   background: var(--brand-primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
   z-index: 999;
   transition: var(--transition-fast);
}

.chat-widget:hover {
   transform: scale(1.1);
}

.chat-widget svg {
   width: 30px;
   height: 30px;
   fill: #fff;
}

/* --- 17. ANIMATION UTILITIES (JS TRIGGERED) --- */
.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

.reveal-left {
   opacity: 0;
   transform: translateX(-50px);
   transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
   opacity: 1;
   transform: translateX(0);
}

.reveal-right {
   opacity: 0;
   transform: translateX(50px);
   transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
   opacity: 1;
   transform: translateX(0);
}

/* --- 18. LEGAL PAGES STYLING --- */
.legal-header {
   padding: calc(var(--nav-height) + 4rem) 0 4rem;
   background: var(--bg-panel);
   text-align: center;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content {
   max-width: 900px;
   margin: 0 auto;
   padding: 4rem 2rem;
}

.legal-content h2 {
   margin: 2rem 0 1rem;
   color: var(--color-white);
}

.legal-content h3 {
   margin: 1.5rem 0 1rem;
   color: var(--color-light);
}

.legal-content p {
   margin-bottom: 1.5rem;
   color: var(--color-muted);
}

.legal-content ul {
   margin: 0 0 1.5rem 2rem;
   color: var(--color-muted);
}

.legal-content li {
   margin-bottom: 0.5rem;
}

/* --- 19. RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
   .hero-3d-element {
      width: 400px;
      height: 400px;
   }

   .calculator-wrapper {
      grid-template-columns: 1fr;
      padding: 2rem;
   }

   .tab-content.active {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .nav-links {
      position: fixed;
      top: var(--nav-height);
      left: -100%;
      width: 100%;
      height: calc(100vh - var(--nav-height));
      background: var(--bg-dark);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: var(--transition-fast);
   }

   .nav-links.nav-active {
      left: 0;
   }

   .mobile-menu-btn {
      display: block;
   }

   .hero-3d-element {
      opacity: 0.2;
      right: 0;
      width: 100%;
      pointer-events: none;
   }

   .contact-grid {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
   }

   .heading-huge {
      font-size: 3rem;
   }

   .reports-container {
      grid-template-columns: 1fr;
   }

   .custom-cursor {
      display: none;
   }

   /* Disable cursor on mobile */
}