/* --- RESET & BASICS --- */
:root {
  --primary: #651fff;
  --accent: #a381ff;
  --dark-bg: #05030c;
  --glass: rgba(0, 0, 0, 0.6);
  --glass-border: rgba(163, 129, 255, 0.2);
  --text-main: #f2f0ff;
  --text-muted: #b0b0d0;
  --nav-height-tall: 100px;
  --nav-height-small: 70px;
  --site-width: 1100px; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 110px; 
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- BACKGROUND ANIMATION (WEBP) --- */
.bg-container { position: fixed; inset: 0; z-index: -1; background: #000; }
.bg-overlay { 
  position: absolute; inset: 0; 
  background: radial-gradient(circle at center, transparent 0%, #000 90%);
  z-index: 2; 
}
.bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
}

.bg1 { background-image: url("assets/background1.webp"); animation: fade 24s infinite 0s; }
.bg2 { background-image: url("assets/background2.webp"); animation: fade 24s infinite 6s; }
.bg3 { background-image: url("assets/background3.webp"); animation: fade 24s infinite 12s; }
.bg4 { background-image: url("assets/background4.webp"); animation: fade 24s infinite 18s; }

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  35% { opacity: 1; }
  45% { opacity: 0; }
  100% { opacity: 0; }
}

/* --- LAYOUT UTILITY --- */
.layout-container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* --- NAVIGATION --- */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0; 
  height: var(--nav-height-tall);
  display: flex;
  align-items: center; 
}

.site-header.scrolled {
  background: rgba(10, 5, 20, 0.95);
  backdrop-filter: blur(15px);
  padding: 0; 
  height: var(--nav-height-small);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  height: 100%;
  width: 100%;
}

.nav-logo {
  height: 85px; 
  transition: height 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(101, 31, 255, 0.5));
  display: block; 
}

.site-header.scrolled .nav-logo { 
  height: 55px; 
}

.nav-links { display: flex; gap: 30px; align-items: center; height: 100%; }
.nav-links a {
  color: var(--text-main); text-decoration: none;
  font-weight: 600; text-transform: uppercase; font-size: 0.9rem;
  letter-spacing: 1px; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

.cta-button {
  background: var(--primary); padding: 10px 20px; border-radius: 50px;
  box-shadow: 0 0 15px rgba(101, 31, 255, 0.4);
}
.cta-button:hover { 
  background: var(--accent); 
  color: #fff !important; 
}

/* --- SECTIONS & GLASS PANELS --- */
.section { padding: 100px 0; }
.hero { 
  min-height: 100vh; display: flex; align-items: center; justify-content: center; 
  text-align: center; padding-top: 150px; 
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  width: 100%;
}

/* --- TYPOGRAPHY --- */
h1, h2 { text-transform: uppercase; }

.hero-panel { text-align: center; }
.eyebrow { 
  color: var(--accent); text-transform: uppercase; letter-spacing: 2px; 
  font-weight: 700; font-size: 0.9rem; margin-bottom: 15px; 
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1; margin-bottom: 25px;
}
.text-accent { color: var(--accent); }
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}

/* --- BUTTONS --- */
.btn-legendary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #450bbf);
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.2rem;
  padding: 18px 40px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 30px rgba(101, 31, 255, 0.6);
  transition: all 0.3s ease;
}
.btn-legendary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 50px rgba(101, 31, 255, 0.9);
  filter: brightness(1.2);
}

/* --- SECTION HEADERS --- */
.section-header { margin-bottom: 40px; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }

/* --- WHO WE ARE (TEXT BLOCK) --- */
.text-content-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.text-content-block p {
  margin-bottom: 20px;
  font-size: 1.1rem; 
  color: var(--text-muted);
}
.text-content-block strong { color: #fff; }

.tagline-accent {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- SERVICES GRID --- */
.grid-services {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px; 
}

.service-item {
  padding: 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(163, 129, 255, 0.1);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
}

.service-item h3 { color: var(--accent); font-size: 1.4rem; margin-bottom: 12px; }
.service-item p { color: var(--text-muted); font-size: 0.95rem; }

.service-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(101, 31, 255, 0.2);
}

.highlight-item {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(101, 31, 255, 0.15), rgba(0,0,0,0));
  border-color: var(--primary);
  text-align: center;
}

/* --- SPLIT LAYOUT (WHO / WHY) --- */
.split-layout { display: flex; gap: 50px; flex-wrap: wrap; }
.content-side { flex: 2; }
.stats-side { 
  flex: 1; display: flex; flex-direction: column; gap: 20px; justify-content: center; 
}

.feature-block { margin-top: 30px; }
.feature-block h3 { color: #fff; margin-bottom: 5px; font-size: 1.2rem; }

.stat-box {
  background: rgba(0,0,0,0.3); padding: 20px;
  border-radius: 12px; display: flex; align-items: center; gap: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-3px); border-color: var(--accent); }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }

/* --- CONTACT FORM GRID --- */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-col {
  flex: 1;
}

.contact-form label { display: block; margin-bottom: 15px; text-align: left; }
.contact-form span { display: block; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }

.glass-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(101, 31, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

.form-error-msg {
  color: #ff4d4d;
  background: rgba(255, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #ff4d4d;
  display: none; 
}

/* --- MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  max-width: 600px;
  text-align: center;
  border-color: var(--primary);
  box-shadow: 0 0 50px rgba(101, 31, 255, 0.3);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-title {
  color: #fff; 
  margin-bottom: 20px;
  font-size: 3rem; 
  line-height: 1.1;
  text-transform: uppercase;
}

.modal-subtitle {
  display: block;
  font-size: 1.5rem;
  margin-top: 10px;
  color: #fff; 
  text-transform: uppercase; 
}

.highlight-soon {
  color: var(--accent);
  font-weight: bold;
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; color: #666; font-size: 0.9rem; }
.fineprint { margin-top: 20px; font-size: 0.8rem; color: #666; }
.text-center { text-align: center; }

/* --- MOBILE RESPONSIVE --- */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.hamburger { width: 25px; height: 3px; background: #fff; display: block; position: relative; }
.hamburger::before, .hamburger::after {
  content: ''; width: 25px; height: 3px; background: #fff; position: absolute; left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; } 
  
  .nav-links.mobile-menu-active {
    display: flex !important; 
    flex-direction: column;
    position: fixed; 
    top: 90px;
    left: 20px;
    right: 20px;
    height: auto !important;
    max-height: 80vh; 
    overflow-y: auto; 
    padding: 30px;
    background: rgba(10, 5, 20, 0.98); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--accent);
    border-radius: 16px;
    box-shadow: 0 10px 100px rgba(0,0,0,1);
    z-index: 10000; 
  }
  
  .nav-links.mobile-menu-active a {
    font-size: 1.3rem;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
  }

  .nav-links.mobile-menu-active .cta-button {
    margin-top: 20px;
    border: none;
    width: 100%;
    text-align: center;
  }
  
  .hero-title { font-size: 2.2rem; }
  .glass-panel { padding: 30px 20px; }
  .grid-services { grid-template-columns: 1fr; }
  .split-layout { flex-direction: column; gap: 30px; }
  .form-grid { flex-direction: column; gap: 0; }
  .section { padding: 60px 0; }
  .btn-legendary { width: 100%; text-align: center; }
}