@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Orbitron:wght@400;500;700;900&display=swap");

/* =========================================
   VARIABLES & RESET
========================================= */
:root {
  --bg-dark: #050505;
  --bg-surface: #111111;
  --bg-glass: rgba(17, 17, 17, 0.6);
  --text-main: #f0f0f0;
  --text-muted: #888888;
  --accent-cyan: #00f0ff;
  --accent-purple: #7000ff;
  --gradient-primary: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-purple)
  );
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition-smooth: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.3s ease;
  --section-pad: clamp(4rem, 10vw, 8rem) 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   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-color: var(--accent-cyan);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-purple);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

body:has(a:hover) .cursor-outline,
body:has(button:hover) .cursor-outline,
body:has(input:hover) .cursor-outline,
body:has(textarea:hover) .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(112, 0, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* =========================================
   GLOBAL COMPONENTS & UTILS
========================================= */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Cyber Button */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HEADER (STRICTLY CONSISTENT)
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo {
  height: 40px;
  filter: brightness(0) invert(1); /* Ensure white logo if original is dark */
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  z-index: 1001;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-toggle span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  left: 0;
  transition: var(--transition-fast);
}

.mobile-toggle span:nth-child(1) {
  top: 0;
}
.mobile-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.mobile-toggle span:nth-child(3) {
  bottom: 0;
}

.mobile-toggle.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  clip-path: circle(0% at top right);
  transition: clip-path 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 999;
}

.mobile-menu.active {
  clip-path: circle(150% at top right);
}

.mobile-menu ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
}

/* =========================================
   INDEX PAGE SPECIFIC SECTIONS
========================================= */

/* 1. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(112, 0, 255, 0.15) 0%,
    transparent 50%
  );
}

.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  perspective: 1000px;
}

.shape {
  position: absolute;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -10%;
}
.shape-2 {
  width: 500px;
  height: 500px;
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  display: block;
}

.hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* 2. CLIENT MARQUEE */
.marquee-section {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.marquee {
  display: flex;
  width: 200%;
  animation: scrollMarquee 20s linear infinite;
}

.marquee-content {
  display: flex;
  justify-content: space-around;
  width: 50%;
  align-items: center;
}

.marquee h3 {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.2);
  font-size: 2rem;
  text-transform: uppercase;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 3. ABOUT / METRICS */
.about-section {
  padding: var(--section-pad);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.metric-card {
  background: var(--bg-surface);
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.metric-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 4. SERVICES */
.services-section {
  padding: var(--section-pad);
  background: var(--bg-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-dark);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.1);
}

/* 5. INTERACTIVE CALCULATOR */
.calculator-section {
  padding: var(--section-pad);
}

.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 2rem;
}

.calc-input-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.calc-result {
  text-align: center;
  padding: 3rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--accent-cyan);
  border-radius: 15px;
}

.result-val {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent-cyan);
  margin: 1rem 0;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* 6. CAMPAIGN UI DASHBOARD SIMULATION */
.dashboard-section {
  padding: var(--section-pad);
  background: var(--bg-surface);
  overflow: hidden;
}

.dashboard-ui {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.5s ease;
}

.dashboard-ui:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.ui-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.ui-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}
.dot-r {
  background: #ff5f56;
}
.dot-y {
  background: #ffbd2e;
}
.dot-g {
  background: #27c93f;
}

.ui-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.chart-bar-container {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 5px 5px 0 0;
  animation: growUp 2s ease-out forwards;
  transform-origin: bottom;
}

@keyframes growUp {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-list span:last-child {
  color: var(--accent-cyan);
  font-weight: bold;
}

/* 7. TESTIMONIALS */
.testimonials-section {
  padding: var(--section-pad);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testi-card {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
}

.testi-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testi-author h4 {
  font-family: var(--font-heading);
  color: var(--accent-purple);
}

/* 8. CTA BANNER */
.cta-section {
  padding: var(--section-pad);
  text-align: center;
  background:
    linear-gradient(rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.9)),
    url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10h80v80H10z" stroke="rgba(0,240,255,0.1)" fill="none"/></svg>');
}

/* =========================================
   LEGAL PAGES & CONTACT LAYOUTS
========================================= */
.page-header {
  padding: 200px 0 100px;
  background: var(--bg-surface);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4rem);
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.legal-content {
  padding: var(--section-pad);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-heading);
  margin: 3rem 0 1rem;
  color: var(--text-main);
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 2rem;
  list-style-type: square;
}

/* Contact Page Split */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  padding: var(--section-pad);
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-form {
  background: var(--bg-surface);
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group select option {
  background: var(--bg-dark);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  transition: var(--transition-fast);
  pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent-cyan);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -1rem;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* =========================================
   FOOTER (STRICTLY CONSISTENT)
========================================= */
.footer {
  background: var(--bg-surface);
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-huge-text {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 12vw);
  text-align: center;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  margin-bottom: 4rem;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.footer-col h4 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .dashboard-ui {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .contact-split {
    grid-template-columns: 1fr;
  }
  .ui-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  } /* Disable custom cursor on mobile */
  body {
    cursor: auto;
  }
}
