:root {
  --jumbotron-padding-y: 3rem;
}


.navbar-transparent {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: transparent;
  border: none;
  box-shadow: none;
}

/* no nav on mobile */
@media (max-width: 768px) {
  .navbar-transparent {
    display: none;
  }
}

/* no nav on scroll */
.navbar-hidden-scroll {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Navbar links */


.navbar-transparent .nav-link {
  color: white;
  font-weight: 500;
  letter-spacing: 0.03em;

  margin: 0 1.2rem;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.navbar-transparent .nav-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* Custom hero nav links */
.hero-nav {
  display: flex;
  gap: 36px;
}

.hero-nav a {
  color: white;
  text-decoration: none;
  font-weight: 450;
  letter-spacing: 0.03em;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-nav a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}
#projects {
  padding-top: 4rem;
}

/* Hero section */
.jumbotron {
  position: relative;
  min-height: 95vh;

  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: center; 
  text-align: center;
  margin-bottom: 0;
  padding-top: 140px;
  padding-bottom: 140px;

  color: white;

  background: linear-gradient(
    -45deg,
    #0b1220,
    #34466e,
    #1a2438,
    #17325e
  );

  background-size: 400% 400%;
  animation: heroGradientShift 18s ease infinite;
}
/* Gradient animation */
@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typography */

.jumbotron-heading {
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0.04em;
}

.jumbotron p {
  color: rgba(230, 230, 230, 0.92);
  font-weight: 400;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

section {
  margin: 0;
  padding: 0;
}

/* Resume Button */
.jumbotron .btn-primary {
  background: white !important;
  color: #0f172a !important;

  border: none !important;
  font-weight: 600;

  padding: 0.85rem 2rem;

  transition: all 0.3s ease;
}

.jumbotron .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 20px rgba(255,255,255,0.4),
    0 0 40px rgba(255,255,255,0.15);
}

.carousel-item {
  transition: none !important;
}

/* Icons  */

.jumbotron .mt-3 a {
  color: white !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.jumbotron .mt-3 a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}
/* Footer */

footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer p {
  margin-bottom: .25rem;
}


.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
}
#about .album {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Featurrete  */
.featurette-divider {
  margin: 3.5rem 0;
  border-color: rgba(0,0,0,0.08);
}

.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.05rem;
}



#about p {
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

@media (min-width: 40em) {
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}



.featurette img {
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.featurette img:hover {
  transform: scale(1.02);
}

.featurette-heading {
  font-weight: 300;
  letter-spacing: 0.02em;
}

.project-img {
  width: 100%;
  height: 250px;      
  object-fit: cover;   
  object-position: center; 
  margin-bottom: 1rem;
}

.project-img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

html {
  scroll-behavior: smooth;
}

.custom-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

.custom-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.custom-arrow {
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

.project-img-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  height: 250px;        
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  object-position: center;
  transition: transform 0.3s ease;
}

.project-img-wrapper:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-img-wrapper:hover .project-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  text-align: center;
  font-size: 1rem;
}

.overlay-content i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 5px;
}

#dynamicCarousel {
  max-height: 75vh; 
}

#dynamicCarousel .carousel-item {
  text-align: center;
}

#dynamicCarousel img {
  max-height: 75vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#dynamicCarousel video {
  max-height: 75vh;
  max-width: 100%;
  width: auto;
  height: auto;
}

@media (max-width: 768px) {
  #dynamicCarousel img,
  #dynamicCarousel video {
    max-height: 65vh;
  }
}
.carousel-item {
  will-change: transform, opacity;
}

.section-soft-bg {
  background: linear-gradient(
    to bottom,
    #f7f9fc,
    #f2f5fb
  );
}


.card {
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);
}

.hero-to-section-fade {
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(11,18,32,1),
    rgba(242,245,251,1)
  );
}

.hero-to-section-fade {
  height: 90px;

  background: linear-gradient(
    to bottom,
    rgba(11, 18, 32, 0.95),
    rgba(18, 32, 60, 0.85),
    rgba(242, 245, 251, 1)
  );
}


footer a {
  color: #3f5383;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

footer a:hover {
  opacity: 0.7;
}
footer {
  background-color: transparent;
}