html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: none;
  margin: 0;
  padding: 0;
}

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

.content {
  position: relative;
  z-index: 1;
}

/* --- HEADER --- */
header {
  padding: 60px 20px 20px;
  text-align: center;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #0dcaf0;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.5);
  object-fit: cover;
}

h1, .typing-text {
  font-size: 55px;
  font-weight: 700;
  color: #0dcaf0;
}

.tagline {
  font-size: 20px;
  color: #cfe1e5;
}

/* --- NAVBAR --- */
nav {
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 0;
}

nav a {
  color: #fff;
  margin: 0 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #0dcaf0;
}

/* --- SECTIONS --- */
.section {
  padding: 40px 15px; /* reduced padding to remove big spaces */
}

.section h2 {
  text-align: center;
  color: #0dcaf0;
  margin-bottom: 25px;
}

/* --- GLASS CARD --- */
.card.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(13, 202, 240, 0.4);
}

/* --- EXPERIENCE TEXT --- */
.job-title {
  color: #0dcaf0;
  font-weight: 700;
  font-size: 1.4rem;
}

.company {
  color: #cfe1e5;
  font-weight: 600;
  margin-bottom: 5px;
}

.duration {
  font-size: 0.95rem;
  color: #b8cbd0;
  margin-bottom: 15px;
}

/* --- PROJECTS SECTION FIX --- */
#projects .row {
  row-gap: 25px; /* adds space between project cards */
}

.project-link {
  color: #0dcaf0;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.project-link:hover {
  text-decoration: underline;
  color: #00eaff;
}

/* --- BUTTONS --- */
.btn-primary {
  background-color: #0dcaf0;
  border: none;
  color: #000;
  font-weight: 600;
}

.btn-outline-light:hover {
  background-color: #0dcaf0;
  color: #000;
}

/* --- FOOTER --- */
footer {
  background: #0f2027;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #ccc;
}

/* --- CURSOR ANIMATION --- */
.cursor {
  font-size: 55px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  h1, .typing-text, .cursor {
    font-size: 36px;
  }

  .tagline {
    font-size: 16px;
  }

  .section {
    padding: 35px 12px; /* less section space */
  }

  .card.glass {
    padding: 15px;
  }

  .col-md-6 {
    width: 100%;
    margin-bottom: 20px; /* ensures space between stacked cards */
  }
}

@media (max-width: 480px) {
  h1, .typing-text, .cursor {
    font-size: 28px;
  }

  .card.glass {
    padding: 12px;
  }

  #projects .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 30px 8px;
  }
}
