/* Base Styles */
:root {
    --neon-green: #00ff00;
    --neon-pink: #ff00ff;
    --neon-blue: hsl(180, 100%, 50%);
    --dark-bg: #000;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Matrix Rain Background */
canvas#matrixRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

/* Header */
header {
    margin: 2rem 0;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
}

.glitch {
    position: relative;
    font-size: 3rem;
    text-transform: uppercase;
    animation: glitch 3s infinite;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--neon-pink);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: var(--neon-blue);
    z-index: -2;
    animation: glitch-effect 3s infinite reverse;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, 5px); }
    80% { transform: translate(5px, -5px); }
    100% { transform: translate(0); }
}

/* Navigation Buttons */
nav {
    margin: 2rem 0;
}

.glow-btn {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 12px 24px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.glow-btn:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    margin: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.explore-btn {
    background: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.explore-btn:hover {
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
    transform: scale(1.05);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* About Section */
#about {
    padding: 3rem 0;
    margin: 2rem 0;
    text-align: left;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-content h3 {
    color: var(--neon-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content ul {
    list-style-type: none;
    padding: 0;
}

.about-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-content li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--neon-green);
}

/* Projects Section */
.featured-projects {
    padding: 3rem 0;
    margin: 2rem 0;
}

.project-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.project {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 1.5rem;
    width: 300px;
    transition: all 0.3s;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--neon-green);
}

.github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    width: 140px;
    text-align: center;
    background: #333;
    color: #fff;
}

.github-btn:hover {
    background: #555;
    box-shadow: 0 0 15px #333;
}

/*Service*/
.services-section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #0f0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: #111;
  border: 1px solid #0f0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card i {
  margin-bottom: 15px;
  color: #0f0;
}

/* Contact Section */
#contact {
    padding: 3rem 0;
    margin: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.youtube-btn, .github-btn, .twitter-btn, .linkedin-btn, .snapchat-btn, .instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  gap: 8px;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  width: 140px;
  text-align: center;
  transition: transform 0.3s ease;

}

.youtube-btn {
  background: #ff0000;
  color: #fff;
}

.youtube-btn:hover {
  background: #cc0000;
  box-shadow: 0 0 15px #ff0000;
}

.github-btn {
  background: #333;
  color: #fff;
}

.github-btn:hover {
  background: #555;
  box-shadow: 0 0 15px #333;
}

.twitter-btn {
  background: #1DA1F2;
  color: #fff;
}

.twitter-btn:hover {
  background: #0d8ecf;
  box-shadow: 0 0 15px #1DA1F2;
}
.linkedin-btn {
  background: #0077B5;
  color: #fff;
}

.linkedin-btn:hover {
  background: #005582;
  box-shadow: 0 0 15px #0077B5;
}

.snapchat-btn{
  background: #fffc00;
  box-shadow: 0 0 15px #0077B5;
}

.instagram-btn {
  background: #e1306c;
  box-shadow: 0 0 15px #0077B5;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1rem 0;
    border-top: 1px solid var(--neon-green);
}

/* loading animation */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spinner {
    border: 2px solid #00ff00; /* Hacker green */
    border-top: 2px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  
  .loading-text {
    margin-top: 20px;
    color: #00ff00; /* Hacker green */
    font-size: 18px;
    font-family: monospace;
    animation: blink 1s step-end infinite;
  }
  
  #matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
  }

  /*-------*/

  /* General body and container styling */
body {
    margin: 0;
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
  }
  
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Header */
  header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .logo-container {
    margin-bottom: 10px;
  }
  
  .logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px #0f0);
  }
  
  /* Glitch and flicker effect for header text */
  .glitch {
    position: relative;
    color: #0f0;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    user-select: none;
  }
  
  .flicker {
    animation: flickerText 3s infinite alternate;
  }
  
  @keyframes flickerText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
  
  /* Navigation buttons */
  nav {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .glow-btn {
    background: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    user-select: none;
  }
  
  .glow-btn:hover,
  .glow-btn:focus {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    outline: none;
  }
  
  /* Hero section */
  .hero {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Explore button with pulse animation */
  .explore-btn {
    display: inline-block;
    background: #0f0;
    color: #000;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0 15px #0f0;
    animation: pulse 2.5s infinite ease-in-out;
    user-select: none;
  }
  
  @keyframes pulse {
    0%, 100% {
      box-shadow: 0 0 15px #0f0;
    }
    50% {
      box-shadow: 0 0 30px #0f0;
    }
  }
  
  /* About section */
  #about {
    margin-bottom: 60px;
  }
  
  .about-content p {
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
  }
  
  .about-content ul {
    max-width: 700px;
    margin: 0 auto;
    list-style-type: none;
    padding: 0;
  }
  
  .about-content ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  /* Featured projects */
  .featured-projects {
    margin-bottom: 60px;
    text-align: center;
  }
  
  .project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .project {
    background: #111;
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 0 10px #0f0 inset;
    transition: transform 0.3s ease;
  }
  
  .project:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #0f0;
  }
  
  .project h3 {
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .project p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .github-btn {
    display: inline-block;
    background: #0f0;
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 10px #0f0;
    user-select: none;
  }
  
  .github-btn i {
    margin-right: 8px;
  }
  
  /* Contact section */
  #contact {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .social-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 10px #0f0;
    user-select: none;
    transition: background-color 0.3s ease;
  }
  
  .social-links a i {
    margin-right: 9px;
  }
  
  /* Social button colors */
  .youtube-btn {
    background-color: #ff0000;
  }
  
  .youtube-btn:hover {
    background-color: #00ff73;
    transform: scale(1.05);
  }
  
  .github-btn {
    background-color: rgb(103, 79, 107);
    color: #000;
  }
  
  .github-btn:hover {
    background-color: #00ff73;
    transform: scale(1.05);
  }
  
  .twitter-btn {
    background-color: #1da1f2;
    color: #fff;
  }
  
  .twitter-btn:hover {
    background-color: #00ff73;
    transform: scale(1.05);
  }
  
  .linkedin-btn {
    background-color: #0077b5;
    color: #fff;
  }
  
  .linkedin-btn:hover {
    background-color: #00ff73;
    transform: scale(1.05);
  }
  
  
  .instagram-btn {
    background-color: #e1306c;
    color: #fff;
  }

  .instagram-btn:hover {
    background-color: #00ff73;
    transform: scale(1.05);
  }

  .snapchat-btn{
    background-color: #fffc00;
    color: #fff;
  }

  .snapchat-btn:hover {
    background-color: #00ff73;
    transform: scale(1.05);
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #0f0;
    font-size: 0.9rem;
    color: #0f0;
    user-select: none;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .project-grid {
      flex-direction: column;
      align-items: center;
    }
  
    nav .glow-btn {
      margin: 10px 5px;
    }
  }
  
  /* Preloader overlay */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #000, #001100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #0f0;
  font-family: 'Courier New', monospace;
  z-index: 9999;
  user-select: none;
  overflow: hidden;
}

/* Starfield canvas */
#starfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

/* Orb container */
#orbContainer {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
  z-index: 10;
}

/* Neon pulsing orb */
#neonOrb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0f0, #004400);
  box-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
  animation: pulse 2.5s infinite ease-in-out;
  position: relative;
  z-index: 10;
}

/* Circuit lines canvas */
#circuitLines {
  position: absolute;
  top: 0; left: 0;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 11;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px #0f0, 0 0 40px #0f0; }
  50% { transform: scale(1.1); box-shadow: 0 0 40px #0f0, 0 0 80px #0f0; }
}

/* Glitching text */
#glitchText {
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  user-select: none;
  color: #0f0;
  text-shadow: 0 0 5px #0f0;
  animation: flicker 3s infinite alternate;
  z-index: 10;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Matrix loading bar container */
#matrixLoadingBarContainer {
  width: 320px;
  height: 20px;
  background: #002200;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 10px #0f0;
  margin-bottom: 10px;
  position: relative;
  z-index: 10;
}

/* Loading percent text */
#loadingPercent {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  user-select: none;
  margin-bottom: 20px;
  z-index: 10;
}

/* Sound wave bars container */
#soundWaveBars {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: flex-end;
  width: 140px;
  height: 40px;
  z-index: 10;
}

#soundWaveBars .bar {
  width: 12px;
  background: #0f0;
  border-radius: 4px;
  animation: soundWave 1.2s infinite ease-in-out;
  transform-origin: bottom center;
}

#soundWaveBars .bar:nth-child(1) { animation-delay: 0s; }
#soundWaveBars .bar:nth-child(2) { animation-delay: 0.15s; }
#soundWaveBars .bar:nth-child(3) { animation-delay: 0.3s; }
#soundWaveBars .bar:nth-child(4) { animation-delay: 0.45s; }
#soundWaveBars .bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}
