@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
   --bg-color: #050505;
   --surface-color: #111111;
   --primary: #ff3366;
   --secondary: #00f0ff;
   --text-main: #ffffff;
   --text-muted: #888888;
   --nav-height: 90px;
   --glass-bg: rgba(17, 17, 17, 0.6);
   --glass-border: rgba(255, 255, 255, 0.05);
   --transition: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Inter', sans-serif;
   background-color: var(--bg-color);
   color: var(--text-main);
   overflow-x: hidden;
   cursor: none;
   /* Custom cursor */
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
   font-family: 'Syne', sans-serif;
   text-transform: uppercase;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
   position: fixed;
   top: 0;
   left: 0;
   transform: translate(-50%, -50%);
   border-radius: 50%;
   z-index: 9999;
   pointer-events: none;
}

.cursor-dot {
   width: 8px;
   height: 8px;
   background: var(--primary);
}

.cursor-outline {
   width: 40px;
   height: 40px;
   border: 1px solid var(--secondary);
   transition: width 0.2s, height 0.2s;
}

.cursor-hover .cursor-outline {
   width: 60px;
   height: 60px;
   background: rgba(0, 240, 255, 0.1);
   border-color: transparent;
}

/* Noise Overlay */
.noise {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   pointer-events: none;
   z-index: 9998;
   opacity: 0.03;
   background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* ================= HEADER ================= */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--nav-height);
   background: var(--glass-bg);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border-bottom: 1px solid var(--glass-border);
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 5%;
   z-index: 1000;
   transition: transform 0.4s var(--transition);
}

.header-hidden {
   transform: translateY(-100%);
}

.logo img {
   height: 60px;
   filter: invert(1);
}

.nav-links {
   display: flex;
   gap: 40px;
}

.nav-links li a {
   font-size: 14px;
   font-weight: 600;
   letter-spacing: 1px;
   position: relative;
   text-transform: uppercase;
}

.nav-links li a::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--primary);
   transition: width 0.3s var(--transition);
}

.nav-links li a:hover::after {
   width: 100%;
}

.btn-primary {
   padding: 14px 30px;
   background: transparent;
   border: 1px solid var(--primary);
   color: var(--primary);
   font-family: 'Syne', sans-serif;
   font-weight: 600;
   border-radius: 30px;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.btn-primary:hover {
   background: var(--primary);
   color: #000;
   box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

/* ================= SECTIONS ================= */
section {
   padding: 120px 5%;
   position: relative;
}

.section-title {
   font-size: 4rem;
   line-height: 1;
   margin-bottom: 20px;
   font-weight: 800;
}

.text-gradient {
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   overflow: hidden;
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 1200px;
}

.hero h1 {
   font-size: 4vw;
   line-height: 0.9;
   margin-bottom: 30px;
   transform: translateY(50px);
   opacity: 0;
   animation: fadeUp 1s forwards 0.5s;
}

.hero p {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 40px;
   max-width: 600px;
   margin-inline: auto;
}

.hero-3d-elements {
   position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   pointer-events: none;
   perspective: 1000px;
}

.shape {
   position: absolute;
   background: linear-gradient(45deg, var(--primary), var(--secondary));
   border-radius: 50%;
   filter: blur(80px);
   opacity: 0.3;
}

.shape-1 {
   top: 20%;
   left: 10%;
   width: 300px;
   height: 300px;
}

.shape-2 {
   bottom: 20%;
   right: 10%;
   width: 400px;
   height: 400px;
}

/* Marquee */
.marquee-container {
   width: 100%;
   overflow: hidden;
   background: var(--surface-color);
   padding: 30px 0;
   border-top: 1px solid var(--glass-border);
   border-bottom: 1px solid var(--glass-border);
   transform: rotate(-2deg) scale(1.05);
}

.marquee {
   display: flex;
   white-space: nowrap;
   animation: marqueeScroll 20s linear infinite;
}

.marquee span {
   font-size: 3rem;
   font-family: 'Syne', sans-serif;
   font-weight: 800;
   padding: 0 40px;
   -webkit-text-stroke: 1px var(--text-muted);
   color: transparent;
   transition: 0.3s;
}

.marquee span:hover {
   color: var(--primary);
   -webkit-text-stroke: 0px;
}

/* Services */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   margin-top: 60px;
   perspective: 1000px;
}

.service-card {
   background: var(--surface-color);
   padding: 50px 40px;
   border-radius: 20px;
   border: 1px solid var(--glass-border);
   transform-style: preserve-3d;
   transition: transform 0.1s;
   cursor: pointer;
   position: relative;
   overflow: hidden;
}

.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
   transition: 0.5s;
}

.service-card:hover::before {
   left: 100%;
}

.service-card h3 {
   font-size: 1.8rem;
   margin: 20px 0;
   transform: translateZ(30px);
}

.service-card p {
   color: var(--text-muted);
   transform: translateZ(20px);
}

/* ROI Calculator */
.calc-container {
   background: var(--surface-color);
   padding: 60px;
   border-radius: 30px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
   align-items: center;
}

.calc-inputs label {
   display: block;
   margin-top: 20px;
   font-weight: 600;
   color: var(--text-muted);
}

.calc-inputs input[type="range"] {
   width: 100%;
   margin-top: 15px;
   accent-color: var(--secondary);
}

.calc-result {
   text-align: center;
   padding: 40px;
   background: #0a0a0c;
   border-radius: 20px;
   border: 1px solid var(--secondary);
   box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.calc-result h4 {
   font-size: 1.2rem;
   color: var(--text-muted);
}

.calc-result .revenue-output {
   font-size: 4rem;
   font-weight: 800;
   color: var(--secondary);
   margin-top: 10px;
   font-family: 'Syne', sans-serif;
}

/* Sample Reports */
.report-dashboard {
   background: var(--surface-color);
   padding: 40px;
   border-radius: 20px;
   border: 1px solid var(--glass-border);
}

.stats-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   margin-bottom: 40px;
}

.stat-box {
   padding: 30px;
   background: var(--bg-color);
   border-radius: 15px;
   text-align: center;
}

.stat-box h5 {
   font-size: 1rem;
   color: var(--text-muted);
}

.stat-box .counter {
   font-size: 3rem;
   font-weight: 800;
   color: var(--primary);
   font-family: 'Syne', sans-serif;
}

.pseudo-chart {
   height: 200px;
   background: repeating-linear-gradient(0deg, transparent, transparent 19px, var(--glass-border) 20px);
   position: relative;
   display: flex;
   align-items: flex-end;
   gap: 10px;
   padding-top: 20px;
}

.chart-bar {
   flex: 1;
   background: linear-gradient(0deg, var(--primary), var(--secondary));
   border-radius: 5px 5px 0 0;
   transform-origin: bottom;
   transform: scaleY(0);
   transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Testimonials */
.testi-slider {
   display: flex;
   gap: 30px;
   overflow-x: auto;
   padding: 40px 0;
   scroll-snap-type: x mandatory;
   scrollbar-width: none;
}

.testi-slider::-webkit-scrollbar {
   display: none;
}

.testi-card {
   min-width: 400px;
   background: var(--surface-color);
   padding: 40px;
   border-radius: 20px;
   scroll-snap-align: center;
   border: 1px solid var(--glass-border);
}

.testi-card p {
   font-size: 1.2rem;
   font-style: italic;
   margin-bottom: 20px;
}

.testi-author {
   display: flex;
   align-items: center;
   gap: 15px;
}

.testi-author div h4 {
   font-size: 1rem;
   color: var(--secondary);
}

/* Forms & Legal Pages Layout */
.page-header {
   padding: 200px 5% 100px;
   text-align: center;
   background: var(--surface-color);
   border-bottom: 1px solid var(--glass-border);
}

.content-wrapper {
   max-width: 900px;
   margin: 0 auto;
   padding: 80px 5%;
   font-size: 1.1rem;
   line-height: 1.8;
   color: var(--text-muted);
}

.content-wrapper h2 {
   color: var(--text-main);
   margin: 40px 0 20px;
   font-size: 2rem;
}

.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
   max-width: 1200px;
   margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
   width: 100%;
   padding: 20px;
   margin-bottom: 20px;
   background: var(--surface-color);
   border: 1px solid var(--glass-border);
   color: #fff;
   font-family: 'Inter', sans-serif;
   border-radius: 10px;
   outline: none;
   transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
   border-color: var(--primary);
   box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.contact-info-box {
   background: var(--surface-color);
   padding: 40px;
   border-radius: 20px;
   border: 1px solid var(--glass-border);
}

/* Live Chat */
.chat-widget {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 1000;
}

.chat-btn {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: var(--primary);
   color: #fff;
   border: none;
   font-size: 24px;
   cursor: pointer;
   box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
   transition: transform 0.3s;
}

.chat-btn:hover {
   transform: scale(1.1);
}

.chat-box {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 300px;
   background: var(--surface-color);
   border: 1px solid var(--glass-border);
   border-radius: 15px;
   padding: 20px;
   display: none;
   flex-direction: column;
   gap: 15px;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-box.active {
   display: flex;
   animation: fadeUp 0.3s forwards;
}

/* ================= FOOTER ================= */
.site-footer {
   background: #050505;
   border-top: 1px solid var(--glass-border);
   padding: 100px 5% 40px;
   margin-top: 100px;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 60px;
   margin-bottom: 80px;
}

.footer-brand p {
   color: var(--text-muted);
   margin-top: 20px;
   max-width: 300px;
}

.footer-brand img {
   height: 60px;
   filter: invert(1);
}

.footer-col h4 {
   font-family: 'Syne', sans-serif;
   font-size: 1.2rem;
   margin-bottom: 25px;
   color: var(--text-main);
}

.footer-col ul li {
   margin-bottom: 15px;
}

.footer-col ul li a {
   color: var(--text-muted);
   transition: 0.3s;
}

.footer-col ul li a:hover {
   color: var(--secondary);
   padding-left: 10px;
}

.footer-bottom {
   border-top: 1px solid var(--glass-border);
   padding-top: 30px;
   display: flex;
   justify-content: space-between;
   color: var(--text-muted);
   font-size: 0.9rem;
}

/* Utilities & Animations */
.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 1s var(--transition);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

@keyframes fadeUp {
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes marqueeScroll {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

@media (max-width: 991px) {
   .nav-links {
      display: none;
      /* Hamburger implementation in JS */
   }

   .hero h1 {
      font-size: 12vw;
   }

   .calc-container,
   .contact-grid {
      grid-template-columns: 1fr;
   }

   .stats-grid {
      grid-template-columns: 1fr;
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .footer-grid {
      grid-template-columns: 1fr;
   }

   .section-title {
      font-size: 2.5rem;
   }

   .testi-card {
      min-width: 300px;
   }
}