/* ==========================================================================
   CSS VARIABLES & THEME SETUP
   ========================================================================== */
:root {
  /* Core Colors */
  --bg-dark: #070913;
  --bg-card: #0d1224;
  --bg-card-hover: #131a35;
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.4);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.4);
  --accent: #ff0055;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-sans: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions & Animation */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Layout */
  --container-width: 1280px;
  --header-height: 90px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; margin-bottom: 1.5rem; }
h3 { font-size: 2rem; margin-bottom: 1rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(7, 9, 19, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-normal);
  box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: #fff;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px var(--secondary-glow);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger, .hamburger::before, .hamburger::after {
  width: 30px;
  height: 2px;
  background: var(--text-main);
  display: block;
  position: relative;
  transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ==========================================================================
   SECTIONS & LAYOUTS
   ========================================================================== */
section {
  padding: 8rem 0;
  position: relative;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(112,0,255,0.15) 0%, rgba(0,240,255,0.05) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition-normal);
  box-shadow: 0 10px 30px var(--secondary-glow);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: var(--transition-normal);
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow) inset;
}

/* 3D Hero Graphic */
.hero-visual {
  position: relative;
  perspective: 1000px;
  animation: fadeIn 1.5s ease 0.6s forwards;
  opacity: 0;
}

.hero-3d-element {
  width: 100%;
  height: 500px;
  background: rgba(13, 18, 36, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  position: relative;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-3d-element::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 32px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(15px);
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transform: translateZ(50px);
}

.card-1 { top: 10%; left: -10%; transform: translateZ(80px); animation: float 5s infinite 1s; }
.card-2 { bottom: 10%; right: -10%; transform: translateZ(100px); animation: float 7s infinite 0.5s; }

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(112,0,255,0.1));
  opacity: 0;
  z-index: -1;
  transition: var(--transition-normal);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.1) translateZ(30px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.service-card:hover h3 { transform: translateZ(20px); }

.service-card p {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.service-card:hover p { transform: translateZ(10px); }

/* --- Interactive Reports Section --- */
.reports-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0d1c 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.reports-container {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.tabs-header {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  transition: var(--transition-normal);
  box-shadow: 0 -2px 10px var(--primary-glow);
}

.tab-btn.active::after { width: 100%; }

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active { display: block; }

.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 300px;
  padding-top: 2rem;
  border-left: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.chart-bar {
  width: 60px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 20px var(--secondary-glow);
  cursor: pointer;
}

.chart-bar:hover {
  filter: brightness(1.2);
}

.chart-value {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
}

.chart-bar:hover .chart-value { opacity: 1; }

.chart-label {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* --- Industry Specific Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.industry-box {
  position: relative;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.industry-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  z-index: 0;
  transition: var(--transition-normal);
}

.industry-box:hover::before {
  background: var(--bg-card-hover);
}

.industry-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-dark) 10%, transparent 90%);
  z-index: 1;
}

.industry-content {
  position: relative;
  z-index: 2;
  width: 100%;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.industry-box:hover .industry-content {
  transform: translateY(0);
}

.industry-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.industry-content p {
  color: var(--primary);
  opacity: 0;
  transition: var(--transition-normal);
  font-weight: 600;
}

.industry-box:hover .industry-content p {
  opacity: 1;
}

/* --- Stats / Why Choose Us --- */
.stats-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.2);
}

.quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  color: rgba(255,255,255,0.05);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.client-details h4 { margin-bottom: 0.2rem; font-size: 1.125rem; }
.client-details p { color: var(--primary); font-size: 0.875rem; }

/* --- Contact Section --- */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-details { margin-top: 3rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,240,255,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  transition: var(--transition-fast);
  pointer-events: none;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  font-size: 0.75rem;
  color: var(--primary);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-submit:hover {
  box-shadow: 0 10px 20px var(--primary-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER (Strictly Consistent)
   ========================================================================== */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .site-logo {
  margin-bottom: 1.5rem;
  height: 45px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}
.legal-links a:hover { color: var(--primary); }

/* ==========================================================================
   LEGAL PAGES STYLES
   ========================================================================== */
.legal-page-header {
  padding: 12rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(112,0,255,0.1) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-color);
}

.legal-content {
  padding: 5rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.legal-content ul {
  padding-left: 2rem;
  list-style-type: disc;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition-normal);
  }
  .nav-menu.active { left: 0; }
  .mobile-toggle { display: block; }
  .hero-content h1 { font-size: 2.8rem; }
  .section-title h2 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .contact-grid { padding: 2rem; }
}