/* ==========================================================================
   AWWWARDS LEVEL DIGITAL MARKETING CSS
   ========================================================================== */

/* --- CSS Variables & Theming --- */
:root {
   --bg-dark: #050505;
   --bg-light: #ffffff;
   --primary: #4F46E5;
   --primary-glow: rgba(79, 70, 229, 0.4);
   --secondary: #7C3AED;
   --accent: #06b6d4;
   --text-main: #f8fafc;
   --text-muted: #94a3b8;
   --border-color: rgba(255, 255, 255, 0.08);
   --glass-bg: rgba(10, 10, 10, 0.6);

   --font-heading: 'Syne', sans-serif;
   --font-body: 'Inter', sans-serif;

   --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
   --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);

   --section-pad: 8rem 5%;
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   font-size: 16px;
   scroll-behavior: smooth;
}

body {
   background-color: var(--bg-dark);
   color: var(--text-main);
   font-family: var(--font-body);
   overflow-x: hidden;
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   cursor: none;
   /* Custom cursor */
}

a {
   color: inherit;
   text-decoration: none;
   cursor: none;
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   font-weight: 700;
   line-height: 1.1;
   letter-spacing: -0.02em;
}

.text-gradient {
   background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.text-accent-gradient {
   background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* --- Custom Cursor --- */
.custom-cursor {
   position: fixed;
   top: 0;
   left: 0;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   background: var(--text-main);
   mix-blend-mode: difference;
   pointer-events: none;
   z-index: 9999;
   transform: translate(-50%, -50%);
   transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
}

.custom-cursor.hover {
   width: 60px;
   height: 60px;
   background: rgba(255, 255, 255, 1);
}

/* --- Universal Header --- */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   padding: 1.5rem 5%;
   z-index: 1000;
   transition: all 0.5s var(--ease-out-expo);
   background: transparent;
   border-bottom: 1px solid transparent;
}

.site-header.scrolled {
   background: var(--glass-bg);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border-bottom: 1px solid var(--border-color);
   padding: 1rem 5%;
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: 1800px;
   margin: 0 auto;
}

.logo-link {
   display: inline-block;
   position: relative;
   z-index: 1001;
}

.site-logo {
   height: 50px;
   width: auto;
   object-fit: contain;
   filter: brightness(0) invert(1);
}

.main-nav ul {
   display: flex;
   gap: 3rem;
}

.main-nav a {
   font-size: 0.95rem;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   position: relative;
   overflow: hidden;
   padding: 0.5rem 0;
}

.main-nav a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 1px;
   background: var(--text-main);
   transform: translateX(-101%);
   transition: transform 0.4s var(--ease-out-expo);
}

.main-nav a:hover::after {
   transform: translateX(0);
}

.header-btn {
   padding: 0.8rem 2rem;
   background: var(--text-main);
   color: var(--bg-dark);
   border-radius: 30px;
   font-weight: 600;
   text-transform: uppercase;
   font-size: 0.85rem;
   transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.header-btn:hover {
   transform: scale(1.05);
   box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* --- Universal Footer --- */
.site-footer {
   background: #000;
   padding: var(--section-pad);
   border-top: 1px solid var(--border-color);
   position: relative;
   overflow: hidden;
}

.footer-top {
   text-align: center;
   margin-bottom: 6rem;
}

.footer-title {
   font-size: clamp(3rem, 8vw, 8rem);
   background: linear-gradient(180deg, #fff 0%, #333 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   opacity: 0.1;
   text-transform: uppercase;
   white-space: nowrap;
}

.footer-main {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr;
   gap: 4rem;
   max-width: 1400px;
   margin: 0 auto;
}

.footer-col h3 {
   font-size: 1.2rem;
   margin-bottom: 1.5rem;
   color: var(--text-main);
}

.footer-col p,
.footer-col a {
   color: var(--text-muted);
   font-size: 1rem;
   margin-bottom: 0.8rem;
   display: block;
   transition: color 0.3s;
}

.footer-col a:hover {
   color: var(--primary);
}

.footer-bottom {
   margin-top: 6rem;
   padding-top: 2rem;
   border-top: 1px solid var(--border-color);
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: 1400px;
   margin-left: auto;
   margin-right: auto;
   color: var(--text-muted);
   font-size: 0.9rem;
}

/* --- Animations & Utilities --- */
.reveal {
   opacity: 0;
   transform: translateY(40px);
   transition: all 1s var(--ease-out-expo);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

.reveal-delay-1 {
   transition-delay: 0.1s;
}

.reveal-delay-2 {
   transition-delay: 0.2s;
}

.reveal-delay-3 {
   transition-delay: 0.3s;
}

.magnetic-wrap {
   display: inline-block;
}

/* --- Section 1: Hero --- */
.hero {
   position: relative;
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
   padding: 0 5%;
}

#hero-canvas {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 1;
   opacity: 0.6;
}

.hero-content {
   position: relative;
   z-index: 2;
   text-align: center;
   max-width: 1000px;
}

.hero-badge {
   display: inline-block;
   padding: 0.5rem 1.2rem;
   border: 1px solid var(--border-color);
   border-radius: 30px;
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-bottom: 2rem;
   background: rgba(255, 255, 255, 0.03);
   backdrop-filter: blur(10px);
}

.hero-title {
   font-size: clamp(3rem, 8vw, 6.5rem);
   margin-bottom: 1.5rem;
}

.hero-desc {
   font-size: clamp(1.1rem, 2vw, 1.4rem);
   color: var(--text-muted);
   margin-bottom: 3rem;
   max-width: 700px;
   margin-left: auto;
   margin-right: auto;
}

.btn-primary {
   display: inline-flex;
   align-items: center;
   gap: 1rem;
   background: var(--primary);
   color: #fff;
   padding: 1.2rem 2.5rem;
   border-radius: 50px;
   font-weight: 600;
   font-size: 1.1rem;
   position: relative;
   overflow: hidden;
   transition: all 0.4s var(--ease-out-expo);
   border: none;
   outline: none;
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
   transition: left 0.6s ease;
}

.btn-primary:hover::before {
   left: 100%;
}

.btn-primary:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px var(--primary-glow);
}

/* --- Section 2: Marquee --- */
.marquee-section {
   padding: 3rem 0;
   background: var(--primary);
   transform: rotate(-2deg) scale(1.05);
   z-index: 10;
   position: relative;
   overflow: hidden;
}

.marquee-content {
   display: flex;
   white-space: nowrap;
   animation: marquee 20s linear infinite;
}

.marquee-content span {
   font-family: var(--font-heading);
   font-size: 3rem;
   font-weight: 700;
   color: var(--bg-dark);
   padding: 0 2rem;
   text-transform: uppercase;
}

@keyframes marquee {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

/* --- Section 3: Services Bento Grid --- */
.services {
   padding: var(--section-pad);
   background: var(--bg-dark);
}

.section-header {
   margin-bottom: 5rem;
   text-align: center;
}

.section-subtitle {
   color: var(--primary);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   font-size: 0.9rem;
   font-weight: 600;
   margin-bottom: 1rem;
   display: block;
}

.section-title {
   font-size: clamp(2.5rem, 5vw, 4rem);
}

.bento-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   grid-auto-rows: 350px;
   gap: 1.5rem;
   max-width: 1400px;
   margin: 0 auto;
}

.bento-item {
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid var(--border-color);
   border-radius: 24px;
   padding: 3rem;
   position: relative;
   overflow: hidden;
   transition: all 0.5s var(--ease-out-expo);
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
}

.bento-item::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
   opacity: 0;
   transition: opacity 0.5s;
   pointer-events: none;
}

.bento-item:hover::before {
   opacity: 1;
}

.bento-item:hover {
   transform: translateY(-10px);
   border-color: rgba(255, 255, 255, 0.2);
}

.bento-item.large {
   grid-column: span 2;
}

.service-icon {
   position: absolute;
   top: 3rem;
   right: 3rem;
   width: 60px;
   height: 60px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: transform 0.5s var(--ease-out-expo);
}

.bento-item:hover .service-icon {
   transform: scale(1.1) rotate(10deg);
   background: var(--primary);
}

.service-icon svg {
   width: 28px;
   height: 28px;
   fill: var(--text-main);
}

.bento-item h3 {
   font-size: 2rem;
   margin-bottom: 1rem;
   z-index: 2;
}

.bento-item p {
   color: var(--text-muted);
   z-index: 2;
   max-width: 80%;
}

/* --- Section 4: Industries (Accordion) --- */
.industries {
   padding: var(--section-pad);
   border-top: 1px solid var(--border-color);
}

.accordion-container {
   max-width: 1000px;
   margin: 0 auto;
}

.accordion-item {
   border-bottom: 1px solid var(--border-color);
   padding: 2rem 0;
}

.accordion-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: none;
   font-size: 2rem;
   font-family: var(--font-heading);
   transition: color 0.3s;
}

.accordion-header:hover {
   color: var(--primary);
}

.accordion-icon {
   width: 40px;
   height: 40px;
   position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
   content: '';
   position: absolute;
   background: var(--text-main);
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   transition: transform 0.4s var(--ease-out-expo);
}

.accordion-icon::before {
   width: 20px;
   height: 2px;
}

.accordion-icon::after {
   width: 2px;
   height: 20px;
}

.accordion-item.active .accordion-icon::after {
   transform: translate(-50%, -50%) rotate(90deg);
   opacity: 0;
}

.accordion-content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.6s var(--ease-out-expo);
   color: var(--text-muted);
}

.accordion-content p {
   padding-top: 1.5rem;
   max-width: 800px;
   font-size: 1.1rem;
}

/* --- Section 5: Campaign Reports (Interactive Charts) --- */
.reports {
   padding: var(--section-pad);
   background: #000;
}

.chart-wrapper {
   max-width: 1200px;
   margin: 0 auto;
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid var(--border-color);
   border-radius: 24px;
   padding: 4rem;
   display: flex;
   align-items: flex-end;
   gap: 2rem;
   height: 400px;
}

.chart-bar-container {
   flex: 1;
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   align-items: center;
   position: relative;
}

.chart-bar {
   width: 100%;
   background: linear-gradient(180deg, var(--primary) 0%, rgba(79, 70, 229, 0.1) 100%);
   border-radius: 8px 8px 0 0;
   height: 0;
   /* Animated by JS */
   transition: height 1.5s var(--ease-out-expo);
   position: relative;
   overflow: hidden;
}

.chart-bar::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 2px;
   background: #fff;
   box-shadow: 0 0 10px #fff;
}

.chart-label {
   margin-top: 1rem;
   font-weight: 600;
   color: var(--text-muted);
   font-size: 0.9rem;
   text-transform: uppercase;
}

.chart-value {
   position: absolute;
   top: -30px;
   font-family: var(--font-heading);
   font-size: 1.2rem;
   font-weight: 700;
   opacity: 0;
   transition: opacity 0.5s 1.5s;
}

.reports.in-view .chart-value {
   opacity: 1;
}

/* --- Section 6: Service Calculator --- */
.calculator-section {
   padding: var(--section-pad);
   position: relative;
}

.calc-container {
   max-width: 900px;
   margin: 0 auto;
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid var(--border-color);
   border-radius: 30px;
   padding: 5rem;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(20px);
}

.calc-group {
   margin-bottom: 3rem;
}

.calc-label {
   display: flex;
   justify-content: space-between;
   font-size: 1.2rem;
   font-weight: 600;
   margin-bottom: 1.5rem;
}

.range-slider {
   -webkit-appearance: none;
   width: 100%;
   height: 8px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 4px;
   outline: none;
}

.range-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--primary);
   cursor: none;
   transition: transform 0.2s;
   box-shadow: 0 0 15px var(--primary-glow);
}

.range-slider::-webkit-slider-thumb:hover {
   transform: scale(1.3);
}

.calc-result {
   text-align: center;
   margin-top: 4rem;
   padding-top: 4rem;
   border-top: 1px solid var(--border-color);
}

.calc-result h4 {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 1rem;
}

.result-value {
   font-size: 5rem;
   font-family: var(--font-heading);
   background: linear-gradient(135deg, #fff, var(--primary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* --- Section 7: Testimonials --- */
.testimonials {
   padding: var(--section-pad);
   background: #000;
}

.testi-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
   gap: 2rem;
   max-width: 1400px;
   margin: 0 auto;
}

.testi-card {
   background: var(--bg-dark);
   border: 1px solid var(--border-color);
   padding: 3rem;
   border-radius: 20px;
   position: relative;
}

.quote-icon {
   position: absolute;
   top: 2rem;
   right: 2rem;
   font-size: 4rem;
   color: rgba(255, 255, 255, 0.05);
   font-family: serif;
   line-height: 1;
}

.testi-text {
   font-size: 1.2rem;
   line-height: 1.8;
   margin-bottom: 2rem;
   position: relative;
   z-index: 2;
}

.testi-author {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.author-img {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--primary);
}

.author-info h5 {
   font-size: 1rem;
}

.author-info p {
   font-size: 0.85rem;
   color: var(--text-muted);
}

/* --- Section 8: CTA Section --- */
.cta-section {
   padding: 10rem 5%;
   text-align: center;
   position: relative;
   overflow: hidden;
}

.cta-bg {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 600px;
   height: 600px;
   background: var(--primary);
   filter: blur(150px);
   opacity: 0.3;
   border-radius: 50%;
   z-index: 0;
}

.cta-content {
   position: relative;
   z-index: 2;
}

/* --- Live Chat UI (Mock) --- */
.live-chat-btn {
   position: fixed;
   bottom: 30px;
   right: 30px;
   width: 60px;
   height: 60px;
   background: var(--primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
   z-index: 999;
   transition: transform 0.3s;
}

.live-chat-btn:hover {
   transform: scale(1.1);
}

.live-chat-btn svg {
   width: 30px;
   height: 30px;
   fill: #fff;
}

/* --- Internal Pages Specific Styles --- */
.page-hero {
   padding: 12rem 5% 6rem;
   background: var(--bg-dark);
   text-align: center;
   border-bottom: 1px solid var(--border-color);
}

.page-title {
   font-size: clamp(3rem, 6vw, 5rem);
   margin-bottom: 1.5rem;
}

.page-content {
   padding: var(--section-pad);
   max-width: 1000px;
   margin: 0 auto;
}

/* Form Styles */
.contact-form {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
}

.form-group {
   display: flex;
   flex-direction: column;
}

.form-group.full {
   grid-column: span 2;
}

.form-group label {
   font-size: 0.9rem;
   font-weight: 600;
   margin-bottom: 0.8rem;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
   background: transparent;
   border: none;
   border-bottom: 1px solid var(--border-color);
   padding: 1rem 0;
   color: var(--text-main);
   font-size: 1.1rem;
   font-family: var(--font-body);
   outline: none;
   transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
   border-bottom-color: var(--primary);
}

/* Legal Pages Styling */
.legal-content h2 {
   font-size: 2rem;
   margin: 3rem 0 1.5rem;
   color: var(--text-main);
}

.legal-content p,
.legal-content li {
   font-size: 1.1rem;
   color: var(--text-muted);
   margin-bottom: 1.2rem;
   line-height: 1.8;
}

.legal-content ul {
   list-style: disc;
   padding-left: 2rem;
   margin-bottom: 2rem;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
   .bento-grid {
      grid-template-columns: 1fr 1fr;
   }

   .bento-item.large {
      grid-column: span 1;
   }

   .chart-wrapper {
      padding: 2rem;
      height: 300px;
   }
}

@media (max-width: 768px) {
   .main-nav {
      display: none;
      /* Add hamburger logic in JS for mobile */
   }

   .footer-main {
      grid-template-columns: 1fr;
      gap: 2rem;
   }

   .bento-grid {
      grid-template-columns: 1fr;
   }

   .contact-form {
      grid-template-columns: 1fr;
   }

   .form-group.full {
      grid-column: span 1;
   }

   .calc-container {
      padding: 2rem;
   }
}