* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --neon-blue: #00d4ff;
  --neon-green: #00ff88;
  --neon-purple: #a855f7;
  --neon-pink: #ff0080;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --glass-border: rgba(0, 212, 255, 0.15);
  --glass-bg: rgba(10, 14, 26, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: scanMove 4s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes scanMove {
  0% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.7rem 3rem;
}

.nav-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  gap: 2px;
}

.bracket {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

.brand-text {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.1);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link i {
  margin-right: 0.3rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--neon-blue);
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-blue);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem 3rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.typing-container {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--neon-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.terminal-text {
  color: var(--text-secondary);
}

.cursor {
  animation: blink 1s infinite;
  color: var(--neon-green);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
}

.hero-title .line1 {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.1;
  animation: glowText 3s ease-in-out infinite alternate;
}

.hero-title .line2 {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

@keyframes glowText {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.hero-subtitle i {
  color: var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-blue);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: var(--bg-primary);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.network-diagram {
  position: relative;
  width: 400px;
  height: 400px;
}

.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.conn-line {
  stroke: var(--neon-blue);
  stroke-width: 1;
  opacity: 0.4;
  stroke-dasharray: 5, 5;
  animation: dashFlow 2s linear infinite;
}

@keyframes dashFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 20; }
}

.node {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--neon-blue);
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.node:hover {
  transform: scale(1.2);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.node-1 { top: 10%; left: 43%; animation-delay: 0s; }
.node-2 { top: 38%; left: 10%; animation-delay: 0.5s; }
.node-3 { top: 38%; right: 10%; animation-delay: 1s; }
.node-4 { bottom: 12%; left: 28%; animation-delay: 1.5s; }
.node-5 { bottom: 12%; right: 28%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* SECTIONS */
section {
  padding: 5rem 3rem;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: 'Share Tech Mono', monospace;
  color: var(--neon-green);
  font-size: 0.9rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--text-primary), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* GLASS CARD */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
  transform: translateY(-5px);
}

/* ABOUT */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-card {
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--neon-blue);
  animation: ringPulse 2s ease-in-out infinite;
  position: relative;
  background: rgba(0, 212, 255, 0.05);
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

.signal-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.signal-waves span {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid var(--neon-blue);
  border-radius: 50%;
  animation: signalWave 2s ease-out infinite;
}

.signal-waves span:nth-child(2) { animation-delay: 0.6s; }
.signal-waves span:nth-child(3) { animation-delay: 1.2s; }

@keyframes signalWave {
  0% { width: 150px; height: 150px; opacity: 0.6; }
  100% { width: 250px; height: 250px; opacity: 0; }
}

.about-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--neon-blue);
}

.about-role {
  color: var(--neon-green);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.detail-item i {
  color: var(--neon-blue);
  width: 20px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  padding: 2rem;
  text-align: center;
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--neon-blue);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  color: var(--neon-green);
  transform: scale(1.1);
  text-shadow: 0 0 20px var(--neon-green);
}

.skill-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  border-radius: 3px;
  width: 0%;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.skill-percent {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-green);
  font-size: 0.9rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}

.skill-tags span {
  padding: 0.25rem 0.7rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  overflow: hidden;
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-icon-large {
  font-size: 4rem;
  color: var(--neon-blue);
  opacity: 0.5;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--neon-blue);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.project-card:hover .project-link {
  transform: scale(1);
}

.project-info {
  padding: 1.5rem;
}

.project-category {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  padding: 0.2rem 0.6rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--neon-purple);
}

/* CERTIFICATIONS */
.certs-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cert-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  transition: left 0.5s ease;
}

.cert-card:hover::before {
  left: 0;
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--neon-blue);
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.cert-year {
  font-family: 'Share Tech Mono', monospace;
  color: var(--neon-green);
  font-size: 0.9rem;
}

/* CONTACT */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  padding: 2.5rem;
}

.contact-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--neon-blue);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.channel:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
}

.channel i {
  font-size: 1.3rem;
  width: 30px;
  text-align: center;
}

.terminal-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-body {
  padding: 1rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--neon-green);
  line-height: 1.8;
}

.terminal-body .success {
  color: var(--neon-green);
  font-weight: bold;
  animation: blink 1.5s infinite;
}

.contact-form {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group label i {
  color: var(--neon-blue);
  margin-right: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: var(--bg-primary);
  border: none;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* FOOTER */
.footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

.footer-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--neon-blue);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-copy i {
  color: var(--neon-blue);
  margin-right: 0.5rem;
}

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-title .line1 { font-size: 3rem; }
  .hero-title .line2 { font-size: 2.5rem; }

  .hero-stats {
    justify-content: center;
  }

  .typing-container {
    justify-content: center;
  }

  .network-diagram {
    width: 300px;
    height: 300px;
    margin-top: 3rem;
  }

  .about-card {
    flex-direction: column;
    text-align: center;
  }

  .about-details {
    align-items: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  section {
    padding: 3rem 1.5rem;
  }

  .hero-title .line1 { font-size: 2.2rem; }
  .hero-title .line2 { font-size: 1.8rem; }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
