/* --- 1. IMPORTS & VARIABLES --- */
/* Replaces ~60 lines of @font-face with a single optimized request */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;700&display=swap');

:root {
  /* Theme Colors */
  --bg-deep-void: #020408;
  --text-starlight: #E1E8FF;
  --accent-cyan: #00B2FF;
  --accent-indigo: #6A00FF;
  
  /* Glass & Glow */
  --glass-smoked: rgba(5, 10, 20, 0.85);
  --glass-border: rgba(225, 232, 255, 0.08);
  --glow-soft: rgba(0, 178, 255, 0.3);
  
  /* Typography */
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
}

/* --- 2. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep-void);
  color: var(--text-starlight);
  overflow-x: hidden;
  font-weight: 400;
}

.truncate { white-space: nowrap; overflow: hidden; }

/* --- 3. BACKGROUNDS & PARTICLES --- */
/* Shared positioning for full-screen fixed elements */
.grid-bg, .shapes-container, .gradient-overlay, .scanlines {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
}

.grid-bg {
  background-image: 
    radial-gradient(circle at 25% 25%, transparent 2%, rgba(0, 178, 255, 0.03) 2%, rgba(0, 178, 255, 0.03) 3%, transparent 3%),
    radial-gradient(circle at 75% 75%, transparent 2%, rgba(54, 216, 255, 0.03) 2%, rgba(54, 216, 255, 0.03) 3%, transparent 3%);
  background-size: 80px 80px;
  animation: grid-move 40s linear infinite;
  z-index: -2;
}

.gradient-overlay {
  background: radial-gradient(circle at 20% 50%, rgba(0, 178, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(106, 0, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(2, 4, 8, 0.9) 0%, transparent 100%);
  z-index: -1;
  animation: gradient-shift 15s ease-in-out infinite;
}

.scanlines {
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2) 50%);
  background-size: 100% 4px;
  z-index: 2;
}

/* Floating Shapes */
.shape { position: absolute; opacity: 0.1; }

.shape-circle {
  width: 300px; height: 300px; border: 2px solid var(--accent-cyan); border-radius: 50%;
  top: 10%; left: 10%; animation: float-rotate 30s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(0, 178, 255, 0.2));
}

.shape-triangle {
  width: 0; height: 0; 
  border-left: 100px solid transparent; border-right: 100px solid transparent;
  border-bottom: 173px solid rgba(106, 0, 255, 0.15);
  top: 60%; right: 15%; animation: float-rotate 35s ease-in-out infinite reverse;
}

.shape-square {
  width: 150px; height: 150px; border: 2px solid var(--accent-indigo);
  bottom: 20%; left: 20%; transform: rotate(45deg); 
  animation: float-rotate 32s ease-in-out infinite;
}

/* Particles */
.particle { position: fixed; pointer-events: none; opacity: 0; z-index: 1; }
.particle::before {
  content: ''; position: absolute; width: 2px; height: 2px;
  background: var(--text-starlight); box-shadow: 0 0 8px var(--accent-cyan);
  animation: float-up 20s linear infinite;
}

/* --- 4. NAVIGATION --- */
nav {
  position: fixed; top: 0; width: 100%; padding: 20px 50px;
  background: rgba(2, 4, 8, 0.8); backdrop-filter: blur(15px);
  z-index: 1000; transition: all 0.3s ease;
  border-bottom: 1px solid var(--glass-border);
}
nav.scrolled { padding: 15px 50px; background: rgba(2, 4, 8, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.logo-link { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-svg { width: 40px; height: 40px; }
.logo-text {
  font-family: var(--font-display); font-size: 24px; font-weight: 900;
  background: linear-gradient(45deg, var(--text-starlight), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 178, 255, 0.3);
}

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-starlight); position: relative;
  transition: all 0.3s ease; padding: 8px 16px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px; opacity: 0.7;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent-cyan); }

/* Nav Underline & Border Effect */
.nav-links a::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 1px solid transparent; transition: all 0.3s ease;
}
.nav-links a:hover::before, .nav-links a.active::before {
  border-color: rgba(0, 178, 255, 0.4); box-shadow: inset 0 0 15px rgba(0, 178, 255, 0.1);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.menu-toggle span { width: 25px; height: 2px; background: var(--accent-cyan); transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- 5. HERO SECTION --- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative; padding: 80px 20px 20px;
}
.hero-content {
  text-align: center; max-width: 1200px; width: 100%; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  animation: fade-in-up 1s ease-out; z-index: 10;
}

.text-rotator { position: relative; min-height: 100px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; width: 100%; }
.text-set { position: absolute; width: 100%; opacity: 0; display: none; }
.text-set.active { opacity: 1; display: block; }

.glitch-text {
  font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 3.8rem); font-weight: 900;
  position: relative; text-transform: uppercase; letter-spacing: 0.1em;
  text-shadow: 0 0 25px rgba(0, 178, 255, 0.4);
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-text::before { animation: glitch-1 0.5s infinite; color: var(--accent-indigo); z-index: -1; text-shadow: -2px 0 rgba(106, 0, 255, 0.5); }
.glitch-text::after { animation: glitch-2 0.5s infinite; color: var(--accent-cyan); z-index: -1; text-shadow: 2px 0 rgba(0, 178, 255, 0.5); }

.char { display: inline-block; opacity: 0; transform: translateY(50px); animation: charFlyIn 0.8s ease-out forwards; }
.char.out { animation: charFlyOut 0.5s ease-in forwards; }
.subtitle { font-size: 1.5rem; margin: 20px 0; opacity: 0; text-shadow: 0 0 10px rgba(225, 232, 255, 0.1); font-weight: 300; }
.subtitle.visible { animation: subtitleFade 1s ease-out 0.5s forwards; }

.cta-container {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; z-index: 100;
}
.cta-button {
  padding: 12px 30px; border: none; font-size: 1rem; cursor: pointer;
  position: relative; overflow: hidden; transition: all 0.3s ease; text-decoration: none;
  display: inline-block; text-transform: uppercase; letter-spacing: 0.1em;
  font-family: var(--font-display); font-weight: 700;
}
.cta-button::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  background: rgba(255, 255, 255, 0.1); border-radius: 50%;
  transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}
.cta-button:hover::before { width: 300px; height: 300px; }

.cta-primary {
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-indigo)); color: #FFF;
  animation: pulse 3s infinite; box-shadow: 0 0 25px rgba(0, 178, 255, 0.4);
}
.cta-secondary {
  background: transparent; color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan); box-shadow: inset 0 0 15px rgba(0, 178, 255, 0.1);
}
.cta-secondary:hover {
  background: rgba(0, 178, 255, 0.05); color: #fff; transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 178, 255, 0.2), inset 0 0 20px rgba(0, 178, 255, 0.1); border-color: #fff;
}

/* --- 6. SHARED SECTION STYLES --- */
.features, .about, .contact { padding: 100px 20px; max-width: 1200px; margin: 0 auto; position: relative; }

.section-title {
  font-family: var(--font-display); font-size: 3rem; font-weight: 900; text-align: center;
  margin-bottom: 60px; text-transform: uppercase;
  background: linear-gradient(45deg, var(--accent-cyan), #9D4EDD);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* --- 7. UTILITY: SMOKED GLASS PANELS --- */
/* Groups duplicate properties for cleaner code */
.feature-tabs, .feature-content, .contact-form, .map-container {
  background: var(--glass-smoked);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* --- 8. FEATURES SECTION --- */
.features-container { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.feature-tabs { padding: 20px; }

.tab-item {
  padding: 15px 20px; margin-bottom: 10px; cursor: pointer; 
  border: 1px solid transparent; border-radius: 4px; 
  transition: all 0.3s ease; font-weight: 500;
  display: flex; align-items: center; gap: 15px; font-size: 1.1rem; 
  color: rgba(225, 232, 255, 0.7);
}
.tab-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.tab-item.active {
  background: linear-gradient(90deg, rgba(0, 178, 255, 0.15), rgba(106, 0, 255, 0.15));
  border-left: 3px solid var(--accent-cyan); color: #fff; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-content { padding: 40px; min-height: 400px; }
.content-panel { display: none; animation: fade-in-up 0.6s ease; }
.content-panel.active { display: block; }
.content-panel h3 {
  font-family: var(--font-display); font-size: 2rem; margin-bottom: 20px; color: #fff;
  text-shadow: 0 0 10px rgba(0, 178, 255, 0.3);
}
.content-panel p { line-height: 1.8; opacity: 0.9; margin-bottom: 20px; font-size: 1.1rem; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { padding: 10px 0 10px 30px; position: relative; opacity: 0.9; }
.feature-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-cyan); font-size: 1.2rem; }

/* --- 9. ABOUT SECTION --- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 {
  font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 30px;
  background: linear-gradient(45deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-text p { line-height: 1.8; opacity: 0.9; margin-bottom: 20px; font-size: 1.1rem; }
.about-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }

.about-graphic { width: 300px; height: 300px; position: relative; animation: float 6s ease-in-out infinite; }
.about-graphic::before, .about-graphic::after {
  content: ''; position: absolute; border: 1px solid var(--accent-cyan);
  border-radius: 4px; box-shadow: 0 0 20px rgba(0, 178, 255, 0.2);
}
.about-graphic::before { width: 100%; height: 100%; animation: rotate 25s linear infinite; }
.about-graphic::after {
  width: 80%; height: 80%; top: 10%; left: 10%; border-color: var(--accent-indigo);
  animation: rotate 20s linear infinite reverse; box-shadow: 0 0 20px rgba(106, 0, 255, 0.2);
}

.about-graphic-alt { width: 300px; height: 300px; position: relative; display: flex; align-items: center; justify-content: center; animation: float 7s ease-in-out infinite; }
.hexagon {
  position: absolute; width: 100px; height: 100px;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-indigo));
  opacity: 0.2; clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.hexagon:nth-child(1) { width: 150px; height: 150px; animation: hexagon-rotate 10s linear infinite; }
.hexagon:nth-child(2) { width: 100px; height: 100px; animation: hexagon-rotate 15s linear infinite reverse; opacity: 0.4; }
.hexagon:nth-child(3) { width: 200px; height: 200px; animation: hexagon-rotate 20s linear infinite; opacity: 0.1; }

/* --- 10. CONTACT SECTION --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form { padding: 40px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--accent-cyan); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

.form-group input, .form-group textarea {
  width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 1rem;
  border-radius: 4px; transition: all 0.3s ease; font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 178, 255, 0.2); background: rgba(0, 0, 0, 0.6);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.submit-btn {
  width: 100%; padding: 15px; background: linear-gradient(45deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff; border: none; border-radius: 4px; font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: all 0.3s ease; font-family: var(--font-display); text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 178, 255, 0.3); }

.contact-info { padding: 40px; }
.contact-info h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 30px; color: #fff; }
.info-item { margin-bottom: 30px; display: flex; align-items: center; gap: 20px; }
.info-icon {
  width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.info-details h4 { color: var(--accent-cyan); margin-bottom: 5px; font-size: 1.1rem; }
.info-details p { opacity: 0.8; }

.map-container {
  margin-top: 40px; padding: 20px; height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}
.map-placeholder { text-align: center; opacity: 0.6; }
.map-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(0, 178, 255, 0.05) 50%, transparent 60%);
  animation: scan 4s linear infinite;
}

/* --- 11. FOOTER --- */
footer { background: #010204; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 20px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-links a, .copyright a { color: var(--accent-cyan); text-decoration: none; transition: all 0.3s ease; }
.footer-links a { font-weight: 500; }
.footer-links a:hover { color: #fff; text-shadow: 0 0 10px var(--accent-cyan); }
.copyright { opacity: 0.5; font-size: 0.9rem; }
.copyright a:hover { color: #fff; }

/* --- 12. ANIMATION KEYFRAMES --- */
@keyframes float-rotate {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-30px) rotate(90deg) scale(1.05); }
  50% { transform: translateY(20px) rotate(180deg) scale(0.95); }
  75% { transform: translateY(-10px) rotate(270deg) scale(1.02); }
}
@keyframes gradient-shift { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.1) rotate(180deg); } }
@keyframes grid-move { 0% { transform: translate(0, 0); } 100% { transform: translate(80px, 80px); } }
@keyframes float-up { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10%, 90% { opacity: 0.8; } 100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; } }
@keyframes glitch-1 { 0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); } 20% { clip-path: inset(33% 0 33% 0); transform: translate(-2px); } 40% { clip-path: inset(66% 0 0 0); transform: translate(2px); } 60% { clip-path: inset(0 0 66% 0); transform: translate(1px); } 80% { clip-path: inset(25% 0 50% 0); transform: translate(-1px); } }
@keyframes glitch-2 { 0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); } 20% { clip-path: inset(50% 0 25% 0); transform: translate(2px); } 40% { clip-path: inset(0 0 75% 0); transform: translate(-2px); } 60% { clip-path: inset(75% 0 0 0); transform: translate(-1px); } 80% { clip-path: inset(40% 0 40% 0); transform: translate(1px); } }
@keyframes charFlyIn { to { opacity: 1; transform: translateY(0); } }
@keyframes charFlyOut { to { opacity: 0; transform: translateY(-30px) rotateX(90deg); } }
@keyframes subtitleFade { to { opacity: 0.8; } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 178, 255, 0.4); } 50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(106, 0, 255, 0.6); } }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes hexagon-rotate { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* --- 13. RESPONSIVE --- */
@media (max-width: 768px) {
  nav { padding: 15px 20px; }
  
  .nav-links {
    position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
    background: rgba(2, 4, 8, 0.98); flex-direction: column; align-items: center; justify-content: start;
    padding-top: 50px; transition: left 0.3s ease;
  }
  .nav-links.active { left: 0; }
  
  .menu-toggle { display: flex; }
  .hero-content { padding: 0 20px; }
  .glitch-text { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .text-rotator { min-height: 150px; }
  .subtitle { font-size: 1.1rem; }
  .cta-container { flex-direction: column; align-items: center; }
  .cta-button { width: 100%; max-width: 300px; }
  
  .features-container, .about-content, .contact-container { grid-template-columns: 1fr; }
  .feature-tabs { display: block; max-width: 100%; }
  .tab-item { width: 100%; }
  
  .about-graphic { width: 200px; height: 200px; }
  .shape-circle, .shape-triangle, .shape-square { transform: scale(0.6); }
}