/* --- COSMIC NEON THEME --- */

:root {
  --neon-cyan: #00ffff;
  --neon-pink: #ff00ff;
  --text-main: #f0f0f0;
  --glass-bg: rgba(10, 15, 30, 0.65);
  --glass-border: rgba(0, 255, 255, 0.3);
}

/* --- RESET & BASIC SETUP --- */
* { margin:0; padding:0; box-sizing:border-box; cursor: none; /* Custom cursor */ }

body {
  font-family: 'Exo 2', sans-serif;
  color: var(--text-main);
  background-color: #000;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Revert cursor for mobile/touch */
@media (pointer: coarse) {
  * { cursor: auto; }
}

h1, h2, h3, .btn, nav a {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.5px;
}

/* --- CUSTOM CURSOR --- */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9999;
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--neon-cyan);
}
#cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9998;
  mix-blend-mode: screen;
}

/* --- COSMIC BACKGROUND --- */
#stars {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: radial-gradient(ellipse at bottom, #0b1021 0%, #000000 100%);
  z-index: -2;
}

/* Shooting Star Animation */
.shooting-star {
  position: absolute; top: 50%; left: 50%;
  height: 2px;
  background: linear-gradient(-45deg, #fff, rgba(0, 0, 255, 0));
  filter: drop-shadow(0 0 6px #699bff);
  animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
  opacity: 0; z-index: -1;
}

@keyframes tail {
  0% { width: 0; } 30% { width: 100px; } 100% { width: 0; }
}
@keyframes shooting {
  0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(300px); opacity: 0; }
}

/* Twinkle Stars */
.star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}
.star.bright {
  width: 3px; height: 3px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: twinkleBright 2s infinite alternate;
}
@keyframes twinkle { 0% { opacity:0.3; transform:scale(0.8);} 100% { opacity:1; transform:scale(1.2);} }
@keyframes twinkleBright { 0% { opacity:0.5; transform:scale(0.9);} 100% { opacity:1; transform:scale(1.5);} }

/* --- HEADER --- */
header {
  position: fixed; top:0; width:100%;
  background: rgba(0,0,0,0.8);
  display:flex; justify-content:space-between; align-items:center;
  padding:15px 40px; z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

header h1 {
  font-size: 1.8rem; color: var(--neon-cyan);
  text-transform: uppercase;
  animation: glitch 5s infinite; position: relative;
}

@keyframes glitch {
  0% { text-shadow: 0 0 10px var(--neon-cyan); }
  95% { text-shadow: 0 0 10px var(--neon-cyan); transform: skew(0deg); }
  96% { text-shadow: -2px 0 var(--neon-pink); transform: skew(10deg); }
  97% { text-shadow: 2px 0 var(--neon-cyan); transform: skew(-10deg); }
  98% { text-shadow: 0 0 10px var(--neon-cyan); transform: skew(0deg); }
  100% { text-shadow: 0 0 10px var(--neon-cyan); }
}

nav { display:flex; gap:30px; }
nav a { 
  color: #ccc; text-decoration:none; font-weight:600; font-size: 0.9rem;
  transition: 0.3s; text-transform: uppercase; position: relative;
}
nav a::after {
  content:''; position:absolute; bottom:-5px; left:0; width:0%; height:2px; background:var(--neon-cyan); transition:0.3s;
}
nav a:hover { color: #fff; text-shadow: 0 0 10px var(--neon-cyan); }
nav a:hover::after { width:100%; }

/* --- HERO --- */
.hero { 
  padding:180px 20px 100px; text-align:center; min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative;
}

.hero h2 { 
  font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0,255,255,0.4));
}

.typewriter {
  font-family: 'Exo 2', monospace; font-size: 1.2rem; color: #a0a0a0;
  min-height: 1.6em; margin-bottom: 50px;
}
.cursor-blink { animation: blink 1s step-end infinite; border-right: 2px solid var(--neon-cyan); }
@keyframes blink { 50% { border-color: transparent; } }

/* CTA Buttons */
.cta-group { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.btn {
  padding: 14px 40px; border-radius: 4px; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: all 0.3s ease;
  position: relative; overflow: hidden; z-index: 1; text-transform: uppercase;
}

.btn-primary {
  color: #000; background: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}
.btn-primary:hover { background: #fff; box-shadow: 0 0 40px #fff; }

.btn-secondary {
  color: var(--neon-cyan); border: 1px solid var(--neon-cyan); background: transparent;
}
.btn-secondary:hover {
  background: rgba(0,255,255,0.1); box-shadow: 0 0 15px var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* --- MODULES --- */
section { padding:80px 20px; max-width:1300px; margin:auto; }

.section-title {
  text-align: center; color: #fff; font-size: 2.2rem;
  margin-bottom: 60px; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.modules { 
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; 
}

.card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; text-align: center; padding: 40px 30px;
  text-decoration: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px); position: relative; overflow: hidden;
}

.card::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.5s;
}
.card:hover::before { left: 100%; }

.card i {
  font-size: 3rem; margin-bottom: 20px; color: var(--neon-cyan);
  transition: 0.4s; filter: drop-shadow(0 0 10px rgba(0,255,255,0.5));
}

.card h3 { margin-bottom: 15px; color: #fff; font-size: 1.4rem; }
.card p { color: #bbb; font-size: 0.95rem; font-weight: 300; }

.card:hover {
  transform: translateY(-15px) scale(1.02); border-color: var(--neon-cyan);
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2); background: rgba(0, 255, 255, 0.05);
}
.card:hover i { transform: rotateY(180deg); color: #fff; filter: drop-shadow(0 0 15px var(--neon-cyan)); }

/* --- FOOTER & ABOUT --- */
#about { text-align: center; color: #bbb; max-width: 800px; }
footer { 
  text-align:center; padding: 40px 20px; color: #666; 
  border-top: 1px solid rgba(255,255,255,0.1); 
  background: #000; margin-top: 80px; 
}

/* Scroll Top */
#scrollTop {
  display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99;
  border: 1px solid var(--neon-cyan); background: rgba(0,0,0,0.5); color: var(--neon-cyan);
  padding: 15px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 0 15px rgba(0,255,255,0.3); transition: 0.3s;
}
#scrollTop:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 25px var(--neon-cyan); }

/* --- MOBILE --- */
.menu-toggle { display:none; flex-direction:column; gap:6px; z-index: 1001; }
.menu-toggle span { width:30px; height:3px; background:var(--neon-cyan); border-radius:2px; transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

@media(max-width: 768px){
  header { padding: 15px 20px; }
  .menu-toggle { display: flex; }
  nav {
    flex-direction: column; position: fixed; top: 0; right: 0; width: 80%; height: 100vh;
    background: rgba(0,0,0,0.95); padding: 100px 30px; align-items: center;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--neon-cyan); box-shadow: -10px 0 30px rgba(0,255,255,0.2);
  }
  nav.open { transform: translateX(0); }
  nav a { font-size: 1.4rem; margin: 15px 0; }
  .hero { padding-top: 150px; }
  #cursor, #cursor-glow { display: none; }
}