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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
  background:
    linear-gradient(to top, #868790, rgba(134,135,144,0) 120px),
    url('assets/metallic-texture.png') center/cover fixed;
}


/*url('assets/background-texture_8_5.jpg') center/cover fixed;*/
.hero {
  position: relative;
  background-color: #0b0d1a;
  height: 300px; /* Adjust this based on exact pixel mockup, can try 320, 280 etc */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-nav {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between; /* space between quote and home */
  align-items: center;
  z-index: 10;
}

.hero-quote {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  min-width: 60px; /* reserve space */
  text-align: left;
}

.home-btn {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}
.home-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-transition {
  position: relative;
  height: 90px;           /* total transition height */
  margin-top: -20px;      /* start before hero bottom */
  pointer-events: none;
}
.hero-transition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: linear-gradient(
    to bottom,
    rgba(11, 13, 26, 00.4) 0%,        /* start transparent above hero */
    rgba(11, 13, 26, 0.5) 2px,   /* start building */
    rgba(11, 13, 26, 0.7) 15px,    /* peak blur at hero bottom */
    rgba(11, 13, 26, 0.7) 25px,    /* hold peak for ~1rem */
    rgba(11, 13, 26, 0.6) 35px,
    rgba(11, 13, 26, 0.5) 50px,
    rgba(11, 13, 26, 0.3) 60px,   /* fade */
    rgba(11, 13, 26, 0) 90px      /* back to transparent */
  );
}





.fade-divider {
  height: 160px;
  background: linear-gradient(
    to bottom,
    #0b0d1a 0%,
    rgba(134, 135, 144, 0.65) 35%,
    rgba(134, 135, 144, 0.85) 70%,
    rgba(134, 135, 144, 0.95) 100%
  );
}

.background-video {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  filter: brightness(0.9);

  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 65%, rgba(0,0,0,0.4) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 65%, rgba(0,0,0,0.4) 85%, rgba(0,0,0,0) 100%);
}

/* Text centered over video */
.hero-text {
  position: absolute;
  text-align: center;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #e6e6ff;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11,13,26,0) 60%, rgba(11,13,26,0.8) 90%);
  z-index: 0;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin: 0;
}

/* Fade into body background */
.hero-fade {
  height: 130px;
  background: linear-gradient(to bottom, #0b0d1a, #868790);
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background-color: none; /*rgba(134,135,144,0.95);*/
  background-image: url('assets/background-texture.png');
  background-blend-mode: overlay;
  background-size: cover;
  border-radius: 6px;
  backdrop-filter: blur(3px);
}

/* PROJECTS */
.project {
  margin-bottom: 3.5rem;
  padding: 1rem 0;
  animation: fadeInSlide 1s ease forwards;
}

.project-title {
  font-size: 1.7rem;
  font-weight: 600;
  color:  #1c0935;
  margin-bottom: 0.8rem;
}

.project-abstract {
  color: #d0d0d0;
  margin-bottom: 1rem;
}

/* BUTTON */
.access-button {
  display: inline-block;
  background: #1c0935;
  color: #f0f4ff;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.access-button:hover {
  background: #868790;
}

.slideshow {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
  position: relative;
  width: 100%;

  background: url('assets/background-texture1.png') center/cover no-repeat;
  background-attachment: fixed; /* optional parallax feel */
}

.slideshow::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(35, 37, 51, 0.4) 0%,   /* slight fade at top */
    rgba(35, 37, 51, 0.2) 50%,  /* lighter mid */
    rgba(35, 37, 51, 0.4) 100%  /* slight fade at bottom */
  );
  z-index: 0;
}
/* SLIDESHOW 
.slideshow {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
  background: url('assets/background-texture1.png');
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: brightness(0.9);*/
  /*#232533;*/


.slide {
  display: none;
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  object-fit: cover;
}

.slide.active {
  display: block;
}

/* ANIMATION */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* BACK TO TOP */
#topBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: none;
  background-color: #1c0935;
  color:  #868790;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}
#topBtn:hover {
  background-color: #303f9f;
}

/* FOOTER */
.footer {
  background-color: #1a1b26;
  color: #888ea8;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid #333546;
}

.footer .disclaimer {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  color: #7c8196;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* fallback on mobile for smoother performance */
  }
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .slide {
    width: 120px;
  }
}
::selection {
  background: #3949ab;  /* match hero or button color */
  color: #fff;
}
