/* ==========================================================================
   Base, Variables & Resets
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Syne:wght@600;700;800&display=swap');

:root {
   --bg-dark: #050505;
   --bg-panel: #0d0d0d;
   --bg-glass: rgba(25, 25, 25, 0.6);
   --accent-1: #ff2a5f;
   /* Neon Magenta */
   --accent-2: #ff7e40;
   /* Sunset Orange */
   --gradient-brand: linear-gradient(135deg, var(--accent-1), var(--accent-2));
   --text-main: #ffffff;
   --text-dim: #9999a1;
   --font-heading: 'Syne', sans-serif;
   --font-body: 'Outfit', sans-serif;
   --ease-magnetic: cubic-bezier(0.25, 1, 0.5, 1);
   --ease-reveal: cubic-bezier(0.77, 0, 0.175, 1);
   --header-height: 100px;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   cursor: none !important;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   background-color: var(--bg-dark);
   color: var(--text-main);
   overflow-x: hidden;
}

body {
   font-family: var(--font-body);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

a {
   text-decoration: none;
   color: inherit;
   outline: none;
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
   width: 8px;
}

::-webkit-scrollbar-track {
   background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
   background: #333;
   border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
   background: var(--accent-1);
}

/* ==========================================================================
   Custom Magnetic Cursor
   ========================================================================== */
.cursor {
   position: fixed;
   top: 0;
   left: 0;
   width: 10px;
   height: 10px;
   background: white;
   border-radius: 50%;
   pointer-events: none;
   z-index: 10000;
   transform: translate(-50%, -50%);
   transition: width 0.3s, height 0.3s, background 0.3s;
   mix-blend-mode: difference;
}

.cursor-follower {
   position: fixed;
   top: 0;
   left: 0;
   width: 40px;
   height: 40px;
   border: 1px solid rgba(255, 42, 95, 0.5);
   border-radius: 50%;
   pointer-events: none;
   z-index: 9999;
   transform: translate(-50%, -50%);
   transition: transform 0.1s linear, width 0.3s, height 0.3s;
}

.cursor.active {
   width: 60px;
   height: 60px;
   background: rgba(255, 255, 255, 1);
}

.cursor-follower.active {
   opacity: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5 {
   font-family: var(--font-heading);
   text-transform: uppercase;
   line-height: 1;
}

.text-gradient {
   background: var(--gradient-brand);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.title-hero {
   font-size: clamp(3.5rem, 10vw, 9rem);
   letter-spacing: -0.03em;
   margin-bottom: 20px;
}

.title-section {
   font-size: clamp(2.5rem, 6vw, 5rem);
   margin-bottom: 40px;
   letter-spacing: -0.02em;
}

.text-body-large {
   font-size: clamp(1.2rem, 2vw, 1.5rem);
   color: var(--text-dim);
   max-width: 700px;
   font-weight: 300;
}

/* Text Clip Reveal Animation */
.clip-text {
   clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
   opacity: 0;
   transform: translateY(30px);
   transition: clip-path 1.2s var(--ease-reveal), transform 1.2s var(--ease-reveal), opacity 1.2s;
}

.clip-text.in-view {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   Strict Header & Mobile Navigation Menu
   ========================================================================== */
header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--header-height);
   z-index: 1000;
   transition: background 0.4s, backdrop-filter 0.4s;
   border-bottom: 1px solid transparent;
}

header.scrolled {
   background: rgba(5, 5, 5, 0.8);
   backdrop-filter: blur(15px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 90%;
   max-width: 1600px;
   margin: 0 auto;
   height: 100%;
   position: relative;
   z-index: 1001;
}

.logo img {
   height: 65px;
   filter: invert(1);
}

/* Desktop Menu */
.nav-links {
   display: flex;
   gap: 40px;
   align-items: center;
}

.nav-links li a {
   font-size: 0.9rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 2px;
   position: relative;
   overflow: hidden;
   padding: 5px 0;
   display: inline-block;
}

.nav-links li a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 2px;
   background: var(--gradient-brand);
   transform: scaleX(0);
   transform-origin: right;
   transition: transform 0.4s ease;
}

.nav-links li a:hover::after {
   transform: scaleX(1);
   transform-origin: left;
}

/* Magnetic Button Style */
.btn-magnetic {
   position: relative;
   display: inline-flex;
   justify-content: center;
   align-items: center;
   padding: 18px 40px;
   background: transparent;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 100px;
   color: white;
   font-family: var(--font-heading);
   font-size: 0.9rem;
   letter-spacing: 1px;
   text-transform: uppercase;
   overflow: hidden;
   transition: border-color 0.4s;
   z-index: 1;
}

.btn-magnetic::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: var(--gradient-brand);
   z-index: -1;
   border-radius: 100px;
   transform: scale(0);
   transition: transform 0.5s var(--ease-reveal);
}

.btn-magnetic:hover::before {
   transform: scale(1);
}

.btn-magnetic:hover {
   border-color: transparent;
}

/* Hamburger Menu (Mobile) */
.hamburger {
   display: none;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 50px;
   height: 50px;
   gap: 6px;
   z-index: 1002;
   background: transparent;
   border: none;
}

.hamburger .line {
   width: 30px;
   height: 2px;
   background: white;
   transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.is-active .line:nth-child(1) {
   transform: translateY(8px) rotate(45deg);
   background: var(--accent-1);
}

.hamburger.is-active .line:nth-child(2) {
   opacity: 0;
}

.hamburger.is-active .line:nth-child(3) {
   transform: translateY(-8px) rotate(-45deg);
   background: var(--accent-1);
}

/* Fullscreen Mobile Menu Overlay */
.mobile-menu {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: var(--bg-dark);
   z-index: 1000;
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding-left: 10%;
   clip-path: circle(0% at 100% 0%);
   transition: clip-path 0.8s var(--ease-reveal);
}

.mobile-menu.is-active {
   clip-path: circle(150% at 100% 0%);
}

.mobile-nav-list {
   display: flex;
   flex-direction: column;
   gap: 30px;
}

.mobile-nav-list li {
   overflow: hidden;
}

.mobile-nav-list a {
   font-family: var(--font-heading);
   font-size: 4rem;
   color: transparent;
   -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
   text-transform: uppercase;
   display: block;
   transform: translateY(100%);
   transition: transform 0.6s var(--ease-reveal), color 0.3s;
}

.mobile-menu.is-active .mobile-nav-list a {
   transform: translateY(0);
   color: white;
   -webkit-text-stroke: 0;
}

.mobile-nav-list a:hover {
   color: var(--accent-1);
}

/* Stagger Mobile Links */
.mobile-menu.is-active .mobile-nav-list li:nth-child(1) a {
   transition-delay: 0.2s;
}

.mobile-menu.is-active .mobile-nav-list li:nth-child(2) a {
   transition-delay: 0.3s;
}

.mobile-menu.is-active .mobile-nav-list li:nth-child(3) a {
   transition-delay: 0.4s;
}

.mobile-menu.is-active .mobile-nav-list li:nth-child(4) a {
   transition-delay: 0.5s;
}

/* Responsive Header */
@media (max-width: 1024px) {

   .nav-links,
   .btn-magnetic.header-btn {
      display: none;
   }

   .hamburger {
      display: flex;
   }
}

/* ==========================================================================
   Layout, Sections & Components
   ========================================================================== */
section {
   padding: 120px 5%;
   position: relative;
}

.container {
   max-width: 1400px;
   margin: 0 auto;
   position: relative;
   z-index: 2;
}

.grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
   align-items: center;
}

/* Hero Section */
.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
}

.hero-bg-glow {
   position: absolute;
   top: 20%;
   right: -10%;
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, rgba(255, 42, 95, 0.2) 0%, transparent 60%);
   filter: blur(60px);
   animation: pulseGlow 8s infinite alternate;
   z-index: 0;
   pointer-events: none;
}

@keyframes pulseGlow {
   0% {
      transform: scale(1) translate(0, 0);
   }

   100% {
      transform: scale(1.2) translate(-50px, 50px);
   }
}

/* Infinite Marquee */
.marquee-container {
   width: 100%;
   overflow: hidden;
   background: var(--bg-panel);
   padding: 40px 0;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
   display: flex;
   width: max-content;
   animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
   font-family: var(--font-heading);
   font-size: 3rem;
   text-transform: uppercase;
   color: var(--text-dim);
   margin: 0 40px;
   display: flex;
   align-items: center;
   gap: 40px;
}

.marquee-item::after {
   content: '✦';
   color: var(--accent-1);
}

@keyframes marqueeScroll {
   to {
      transform: translateX(-50%);
   }
}

/* Services Accordion / List */
.service-list {
   display: flex;
   flex-direction: column;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   margin-top: 60px;
}

.service-item {
   padding: 40px 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   display: grid;
   grid-template-columns: 1fr 2fr auto;
   align-items: center;
   transition: background 0.4s, padding 0.4s;
   position: relative;
   overflow: hidden;
}

.service-item::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 0%;
   height: 100%;
   background: var(--gradient-brand);
   z-index: -1;
   transition: width 0.6s var(--ease-reveal);
   opacity: 0.1;
}

.service-item:hover::before {
   width: 100%;
}

.service-item:hover {
   padding-left: 20px;
   padding-right: 20px;
}

.service-num {
   font-family: var(--font-heading);
   font-size: 1.5rem;
   color: var(--accent-2);
}

.service-title {
   font-family: var(--font-heading);
   font-size: 3rem;
   text-transform: uppercase;
}

.service-icon {
   font-size: 3rem;
   transform: rotate(-45deg);
   transition: transform 0.4s;
   color: var(--text-dim);
}

.service-item:hover .service-icon {
   transform: rotate(0deg);
   color: white;
}

/* Interactive ROI Calculator */
.calc-wrapper {
   background: var(--bg-panel);
   padding: 60px;
   border-radius: 20px;
   border: 1px solid rgba(255, 42, 95, 0.2);
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
   position: relative;
   overflow: hidden;
}

.calc-wrapper::after {
   content: '';
   position: absolute;
   top: -50%;
   right: -50%;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle, rgba(255, 126, 64, 0.1) 0%, transparent 70%);
   pointer-events: none;
}

.slider-container {
   margin: 40px 0;
}

.custom-slider {
   width: 100%;
   -webkit-appearance: none;
   height: 6px;
   background: #222;
   border-radius: 3px;
   outline: none;
}

.custom-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--text-main);
   border: 4px solid var(--accent-1);
   box-shadow: 0 0 15px var(--accent-1);
   transition: transform 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
   transform: scale(1.3);
}

.result-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 30px;
   margin-top: 40px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 40px;
}

.result-box h4 {
   font-size: 1rem;
   color: var(--text-dim);
   margin-bottom: 10px;
   font-family: var(--font-body);
   letter-spacing: 1px;
}

.result-box .val {
   font-family: var(--font-heading);
   font-size: 4rem;
   background: var(--gradient-brand);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   line-height: 1;
}

/* 3D Dashboard Mockup */
.dashboard-container {
   perspective: 1200px;
}

.dashboard-glass {
   background: var(--bg-glass);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 24px;
   padding: 40px;
   transform: rotateY(-15deg) rotateX(10deg);
   box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.8);
   transition: transform 0.6s ease;
}

.dashboard-container:hover .dashboard-glass {
   transform: rotateY(0deg) rotateX(0deg);
}

.chart-row {
   margin-bottom: 25px;
}

.chart-label {
   display: flex;
   justify-content: space-between;
   margin-bottom: 8px;
   font-size: 0.9rem;
   color: var(--text-dim);
}

.chart-bar-bg {
   width: 100%;
   height: 12px;
   background: rgba(0, 0, 0, 0.5);
   border-radius: 6px;
   overflow: hidden;
}

.chart-bar-fill {
   height: 100%;
   background: var(--gradient-brand);
   width: 0%;
   border-radius: 6px;
   transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Testimonials */
.testi-card {
   background: var(--bg-panel);
   padding: 50px;
   border-radius: 16px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   position: relative;
}

.testi-card::before {
   content: '“';
   position: absolute;
   top: 10px;
   right: 30px;
   font-family: serif;
   font-size: 8rem;
   color: rgba(255, 42, 95, 0.1);
   line-height: 1;
}

.testi-text {
   font-size: 1.2rem;
   font-style: italic;
   margin-bottom: 30px;
   position: relative;
   z-index: 2;
}

.testi-author {
   color: var(--accent-2);
   font-family: var(--font-heading);
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* Contact Forms */
.form-wrapper {
   background: var(--bg-panel);
   padding: 60px;
   border-radius: 24px;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-wrap {
   position: relative;
   margin-bottom: 40px;
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select {
   width: 100%;
   background: transparent;
   border: none;
   border-bottom: 1px solid rgba(255, 255, 255, 0.2);
   padding: 15px 0;
   color: white;
   font-family: var(--font-body);
   font-size: 1.1rem;
   outline: none;
   transition: border-color 0.3s;
}

.input-wrap label {
   position: absolute;
   top: 15px;
   left: 0;
   color: var(--text-dim);
   pointer-events: none;
   transition: 0.3s ease;
   font-size: 1.1rem;
}

.input-wrap input:focus,
.input-wrap input:valid,
.input-wrap textarea:focus,
.input-wrap textarea:valid {
   border-bottom-color: var(--accent-1);
}

.input-wrap input:focus~label,
.input-wrap input:valid~label,
.input-wrap textarea:focus~label,
.input-wrap textarea:valid~label {
   top: -20px;
   font-size: 0.85rem;
   color: var(--accent-1);
}

/* Live Chat */
.live-chat-btn {
   position: fixed;
   bottom: 30px;
   right: 30px;
   width: 60px;
   height: 60px;
   background: var(--gradient-brand);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 10px 30px rgba(255, 42, 95, 0.4);
   z-index: 999;
   transition: transform 0.3s;
}

.live-chat-btn:hover {
   transform: scale(1.1) translateY(-5px);
}

.live-chat-btn svg {
   width: 30px;
   height: 30px;
   fill: white;
}

/* ==========================================================================
   Strict Footer Block
   ========================================================================== */
footer {
   background: #020202;
   padding: 100px 5% 40px;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
   max-width: 1400px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 60px;
   margin-bottom: 80px;
}

.footer-brand p {
   color: var(--text-dim);
   margin-top: 30px;
   max-width: 400px;
   font-size: 1rem;
}

.footer-col h4 {
   color: white;
   margin-bottom: 30px;
   font-size: 1.3rem;
   letter-spacing: 1px;
}

.footer-col ul li {
   margin-bottom: 15px;
}

.footer-col ul a,
.footer-col ul span {
   color: var(--text-dim);
   transition: color 0.3s;
   font-size: 1rem;
}

.footer-col ul a:hover {
   color: var(--accent-1);
}

.footer-bottom {
   max-width: 1400px;
   margin: 0 auto;
   padding-top: 30px;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: var(--text-dim);
   font-size: 0.9rem;
}

.footer-legal a {
   margin-left: 30px;
   transition: color 0.3s;
}

.footer-legal a:hover {
   color: white;
}

/* Legal Pages Specific Formatting */
.legal-hero {
   padding-top: calc(var(--header-height) + 100px);
   padding-bottom: 60px;
   background: var(--bg-panel);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content-box {
   max-width: 900px;
   margin: 0 auto;
   padding: 80px 5%;
}

.legal-content-box h2 {
   font-size: 2rem;
   margin: 50px 0 20px;
   color: var(--text-main);
   font-family: var(--font-heading);
}

.legal-content-box p {
   color: var(--text-dim);
   font-size: 1.15rem;
   margin-bottom: 20px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {

   .grid-2,
   .footer-grid {
      grid-template-columns: 1fr;
      gap: 50px;
   }

   .service-item {
      grid-template-columns: auto 1fr;
      gap: 20px;
   }

   .service-num {
      grid-row: 1;
      grid-column: 1;
   }

   .service-title {
      grid-row: 1;
      grid-column: 2;
      font-size: 2rem;
   }

   .service-icon {
      display: none;
   }
}

@media (max-width: 768px) {
   .result-grid {
      grid-template-columns: 1fr;
   }

   .dashboard-glass {
      transform: none;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 20px;
      text-align: center;
   }
}