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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #050816;
  color: white;
  overflow-x: hidden;

  /* FIX: prevents background bleed issues */
  position: relative;
  z-index: 1;
}

/* PARTICLES BACKGROUND FIXED */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  /* FIX: was causing layering glitches */
  z-index: 0;
  pointer-events: none;
}

/* NAVBAR */
.glass-nav {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: #00ffcc !important;
}

.nav-link {
  color: white !important;
  margin-left: 20px;
  transition: 0.3s;
}

.nav-link:hover {
  color: #00ffcc !important;
}

/* HERO */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-tag {
  color: #00ffcc;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-title span {
  color: #00ffcc;
}

.hero-subtitle {
  margin-top: 25px;
  color: #bdbdbd;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 650px;
}

.hero-buttons {
  margin-top: 40px;
}

/* BUTTONS */
.btn-main {
  background: #00ffcc;
  color: black;
  border-radius: 40px;
  padding: 14px 32px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-main:hover {
  transform: translateY(-3px);
  background: white;
}

.btn-outline-custom {
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 40px;
  padding: 14px 32px;
  margin-left: 15px;
  transition: 0.3s;
}

.btn-outline-custom:hover {
  border-color: #00ffcc;
  color: #00ffcc;
}

/* PROFILE */
.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-wrapper::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00ffcc, #0066ff);
  filter: blur(35px);
  opacity: 0.5;
}

.profile-image {
  position: relative;
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
}

/* SOCIAL */
.social-icons a {
  color: white;
  font-size: 1.4rem;
  margin-right: 20px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #00ffcc;
}

/* SECTIONS */
.section-space {
  padding: 100px 0;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 50px;
}

/* GLASS CARDS */
.glass-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 35px;
  transition: 0.4s;

  /* FIX: prevents particle overlap issues */
  position: relative;
  z-index: 2;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: #00ffcc;
}

/* SKILLS + PROJECT HEADINGS */
.skill-card h4,
.project-card h3 {
  margin-bottom: 20px;
  color: #00ffcc;
}

/* PROJECT LINKS */
.project-card a {
  color: #00ffcc;
  text-decoration: none;
}

.project-card a:hover {
  color: white;
}

/* CONTACT */
.contact-text {
  color: #cfcfcf;
  max-width: 700px;
  margin: auto;
}

/* FOOTER */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #9e9e9e;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .profile-image {
    width: 250px;
    height: 250px;
  }

  .btn-outline-custom {
    margin-left: 0;
    margin-top: 15px;
  }
}