/* ===== RESET & BASE ===== */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --primary: #00ffff;
  --secondary: #ff0080;
  --accent: #00ff41;
  --dark: #0a0a0f;
  --darker: #050508;
  --light: #ffffff;
  --gray: #333344;
  --glow: 0 0 20px;
}

body { 
  font-family: 'Rajdhani', sans-serif; 
  line-height:1.6; 
  color: var(--light); 
  background: var(--dark);
  overflow-x: hidden;
}

.container { 
  width:90%; 
  max-width:1200px; 
  margin:0 auto; 
  position: relative;
  z-index: 2;
}

/* ===== TECH BACKGROUND ===== */
.tech-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,0,128,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0,255,65,0.1) 0%, transparent 50%);
  animation: techPulse 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes techPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* ===== HEADER ===== */
.site-header { 
  background: rgba(10,10,15,0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.site-header .container { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding:1rem 0; 
}

.logo { 
  font-family: 'Orbitron', monospace;
  font-size:1.8rem; 
  font-weight: 900;
  color: var(--light);
  text-shadow: var(--glow) var(--primary);
}

.logo-bracket { color: var(--primary); }
.logo-highlight { color: var(--secondary); }

.nav { display:none; }
.nav ul { list-style:none; display:flex; gap:2rem; }
.nav-link { 
  color: var(--light); 
  text-decoration:none; 
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  text-shadow: var(--glow) var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

.nav-toggle { 
  background:none; 
  border:none; 
  cursor:pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: 0.3s;
  box-shadow: var(--glow) var(--primary);
}

/* ===== HERO SECTION ===== */
.hero { 
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: 
    linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, var(--primary), transparent),
    radial-gradient(2px 2px at 40% 70%, var(--secondary), transparent),
    radial-gradient(1px 1px at 90% 40%, var(--accent), transparent);
  background-size: 200px 200px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content { text-align: center; position: relative; z-index: 3; }

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.glitch {
  position: relative;
  color: var(--light);
  text-shadow: 
    0.05em 0 0 var(--primary),
    -0.05em -0.025em 0 var(--secondary),
    0.025em 0.05em 0 var(--accent);
  animation: glitch 2s infinite;
}

@keyframes glitch {
  15%, 85% { text-shadow: 0.05em 0 0 var(--primary), -0.05em -0.025em 0 var(--secondary), 0.025em 0.05em 0 var(--accent); }
  16%, 84% { text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--secondary), -0.05em -0.05em 0 var(--accent); }
}

.hero-subtitle {
  display: block;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--primary);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.2rem;
  margin: 2rem 0;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 10px;
  background: rgba(0,255,255,0.05);
  min-width: 120px;
}

.stat-number {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: var(--glow) var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  position: relative;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn:hover {
  color: var(--dark);
  background: var(--primary);
  box-shadow: var(--glow) var(--primary);
  transform: translateY(-2px);
}

.btn-particles {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover .btn-particles {
  left: 100%;
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 0;
  background: var(--darker);
}

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

.service-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--glow) var(--primary);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,255,0.1);
  border: 1px solid var(--primary);
  border-radius: 50%;
}

.card-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: var(--primary);
}

.tech-list {
  list-style: none;
  margin-top: 1rem;
}

.tech-list li {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,255,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-glow {
  opacity: 1;
}

/* ===== ABOUT ===== */
.about {
  padding: 5rem 0;
  background: var(--dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-item {
  padding: 0.5rem 1rem;
  background: rgba(0,255,255,0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
}

.code-terminal {
  background: var(--darker);
  border: 1px solid var(--gray);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-header {
  background: var(--gray);
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27ca3f; }

.terminal-content {
  padding: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.code-line {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt { color: var(--primary); }
.status { color: var(--accent); }

/* ===== CONTACT FORM ===== */
.contact {
  padding: 5rem 0;
  background: var(--darker);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0,255,255,0.3);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
  box-shadow: 0 1px 0 0 var(--primary);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.form-group input:focus + .form-line,
.form-group textarea:focus + .form-line {
  width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--darker);
  border-top: 1px solid var(--primary);
  padding: 2rem 0;
  text-align: center;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .site-footer .container {
    flex-direction: column;
  }
}

@media(min-width: 768px) {
  .nav { display: block !important; }
  .nav-toggle { display: none; }
}

/* ===== NAVIGATION MOBILE ===== */
.nav--visible {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--primary);
}

.nav--visible ul {
  flex-direction: column;
  padding: 2rem;
  gap: 1rem;
}
