

body {
  font-family: 'Arial', sans-serif;
  scroll-behavior: smooth;
  color: #333;
}

/* ---------- Navbar ---------- */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: #007bff !important;
}

.nav-link {
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #007bff !important;
  font-weight: 500;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(assets/background.jpg) center center / cover no-repeat;
  /* Fallback gradient if no background image */
  background-color: #eaf4ff;
  color: #1a1a2e;
  padding-top: 80px;
}

.hero-sub {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Profile Image ---------- */
.profile-img {
  transition: transform 0.4s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

/* ---------- Cards (Projects) ---------- */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---------- Skills ---------- */
.skill-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 2.5rem;
}

/* ---------- Contact ---------- */
.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  color: #007bff;
}

/* ---------- Footer ---------- */
footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.85rem;
}

footer a {
  color: #6ea8fe;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* ---------- Back to Top Button ---------- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: #0056b3;
}

/* ---------- Fade-in on Scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #hero {
    padding-top: 100px;
    padding-bottom: 3rem;
    min-height: auto;
  }

  #hero h1 {
    font-size: 2rem;
  }

  .hero-btns .btn {
    width: 100%;
  }
}