html {
  scroll-behavior: smooth;
}

body {
  background-color: #111;
}

.background-image {
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -2;
}

.background-overlay {
  background-color: rgba(0, 0, 0, 0.7); /* dark overlay for readability */
  backdrop-filter: blur(3px);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

section {
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent dark */
  border-radius: 10px;
  margin: 40px auto;
  width: 95%;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}


.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1rem;
  margin-left: 10px;
}
.navbar {
  background-color: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px);
}
.glass-section {
  background-color: rgba(0, 0, 0, 0.5);  /* dark but see-through */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 40px;
  border-radius: 10px;
}
.glass-section1{
  background-color: rgba(0, 0, 0, 0.5);  /* dark see-through */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  width: 95%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.glass-section2{
  background-color: rgba(0, 0, 0, 0.5);  /* translucent black */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  width: 95%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.glass-section3 {
  background-color: rgba(0, 0, 0, 0.5);  /* translucent black */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  width: 95%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Work Card Hover Animation */
.card.bg-dark:hover {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  animation: glowAnimation 2s ease infinite;
  background-size: 300% 300%;
  border: 2px solid #00f7ff;
  transform: scale(1.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 25px rgba(0, 247, 255, 0.4);
}

@keyframes glowAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navbar link hover animation */
.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: aqua;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #00ffff; /* brighter aqua */
  text-shadow: 0 0 10px aqua;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Social icon hover effect */
a.text-info i {
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

a.text-info:hover i {
  transform: scale(1.3) rotate(5deg);
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}


a.text-info i.fab:hover {
  color: #0dcaf0;
  transform: scale(1.3);
  transition: transform 0.3s ease, color 0.3s ease;
}


.btn-info:hover {
  background-color: #0bbbe6;
  box-shadow: 0 0 12px #0bbbe6;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.btn-info:active {
  background-color: #099ec4;
  transform: scale(0.97);
  box-shadow: inset 0 0 5px #066c8a;
}

/* Default: Mobile-first (small screens) */
body {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ⬆ Social icon hover effect */
a.text-info i:hover {
  transform: scale(1.2);
  color: #0dcaf0; /* Bootstrap info color */
  transition: all 0.3s ease;
}


@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .navbar-nav {
    text-align: center;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  #home img {
    max-width: 130px;
  }
}


@media (min-width: 577px) and (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn {
    font-size: 1rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  #home img {
    max-width: 160px;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h4 {
    font-size: 1.6rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .btn {
    font-size: 1.05rem;
  }

  #home img {
    max-width: 180px;
  }
}





