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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111;
  overflow-x: hidden;
  line-height: 1.6;
}

.splash-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.splash-content h1 {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 600;
  color: #111;
}

.splash-content p {
  margin-top: 10px;
  font-size: 18px;
  color: #555;
}

#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.section {
  padding: 120px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar.scrolled {
  top: 20px;
  width: 90%;
  max-width: 1100px;
  padding: 12px 40px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-bottom: none;
  backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  .navbar { padding: 15px 25px; }
  .navbar.scrolled { width: 95%; top: 10px; padding: 12px 25px; }
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #000;
}

.hero {
  text-align: center;
  padding-top: 180px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 65px);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero p {
  margin-top: 15px;
  color: #555;
  font-size: 18px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #111;
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  border-color: #111;
  background: rgba(0,0,0,0.03);
}

.profile-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-container::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#000, #fff, #000, #fff, #000);
  animation: spin 4s linear infinite;
  z-index: 0;
}

.profile-container::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: white;
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

@keyframes spin { to { transform: rotate(360deg); } }


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

.about-card {
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.about-card h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-list span {
  background: #f4f4f5;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
}


#contact { text-align: center; }
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}
.contact-links a {
  border: 1px solid #ccc;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  transition: 0.3s;
}
.contact-links a:hover { background: #111; color: #fff; border-color: #111; }
.footer { text-align: center; padding: 30px; color: #777; font-size: 14px; }


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

.hamburger .bar {
  width: 26px;
  height: 2px;
  background-color: #111;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 25px;
  }

  .hamburger {
    display: flex;
  }

  .navbar ul {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: left 0.4s ease-in-out;
    justify-content: center;
    gap: 40px;
    z-index: 100;
  }

  .navbar ul.active {
    left: 0;
  }

  .navbar a {
    font-size: 22px;
    font-weight: 600;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

#github-stats-img {
  width: 100%;
  max-width: 400px;
  margin-top: 15px;
  display: block;
}

/* --- CUSTOM POPUP MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box h3 { margin-bottom: 12px; font-size: 22px; }
.modal-box p { color: #555; margin-bottom: 30px; font-size: 15px; line-height: 1.5; }
.modal-actions { display: flex; gap: 15px; justify-content: center; }

/* Match the button style in the card */
.card-actions-btn {
  padding: 8px 16px;
  background: #f4f4f5;
  color: #111;
  border: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.card-actions-btn:hover { background: #111; color: #fff; }