/* Add your own CSS under here */
body {
  
  font-family: 'Poppins', sans-serif;
  padding-top: 120px; /* prevents content from hiding under fixed navbar */
  min-height: 100vh; /* ensures scroll */
}
main.container {
  margin-top: 50px;
  margin-bottom: 50px;
}
#navbar {
  overflow: visible;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  /* Glass effect */
  background: rgba(255, 255, 255, 0.2); /* transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */

  /* Optional: subtle border + shadow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  padding: 40px 10px;
  transition: 0.4s;

  position: fixed;
  width: 100%;
  top: 0;
  z-index: 99;
}

#navbar a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Style the navbar links */
#navbar a {
  color: black;
  text-align: center;
  padding: 12px 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  border-radius: 4px;
}

/* Style the logo */
#navbar #logo {
  font-size: 28px;
  font-weight: 300;
  transition: 0.4s;
}

/* Links on mouse-over */
#navbar a:hover {
  background-color: #ecf5fa;
  color: black;
}

/* Style the active/current link */
#navbar a.active {
  background-color: #d0e3eb;
  color: black;
}


/* Parallax section */
.parallax {
  background-image: url('images/PortfolioBG70.jpg');

  height: 500px; /* adjust as needed */

  background-attachment: fixed;
  background-position: center 120px;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  height: 500px;
  margin-top: 10px;
  overflow: hidden;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Items */
.item {
  width: 200px;
  height: 300px;
  list-style: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transition: 0.75s;
}

/* Positioning */
.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
}

.item:nth-child(3) { left: 50%; }
.item:nth-child(4) { left: calc(50% + 220px); }
.item:nth-child(5) { left: calc(50% + 440px); }

/* Content */
.content {
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  color: white;
  display: none;
}

.item:nth-child(2) .content {
  display: block;
}

/* Nav buttons */
.nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.nav .btn {
  background: rgba(255,255,255,0.5);
  padding: 10px;
  margin: 5px;
  border-radius: 50%;
  cursor: pointer;
}

/* Center button inside parallax */
.hero-button-wrapper {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glass button */
.glass-btn {
  width: 70px;
  height: 70px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: rgb(33, 39, 49);
  text-decoration: none;

  border-radius: 50%; /* makes it circular */

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  transition: all 0.3s ease;
}

.glass-btn span {
  font-size: 32px;
  line-height: 1;
}

/* Hover effect */
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px) scale(1.05);
}

html {
  scroll-behavior: smooth;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* space between text and button */
  text-align: center;
}

.hero-text {
  color: rgb(33, 39, 49);
}


.cursor {
  position: fixed;
  top: 0;
  left: 0;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  pointer-events: none; /* so it doesn't block clicks */

  /* glass effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 4px 20px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.5);

  transform: translate(-50%, -50%);
  z-index: 9999;

  transition: transform 0.1s ease;
}

.cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.6),
    transparent 60%
  );
}

.cursor.active {
  transform: translate(-50%, -50%) scale(1.65);
}

/* cursor doesn't show on small screens*/
@media (max-width: 768px) {
  .cursor {
    display: none;
  }
  body {
    cursor: auto;
  }
}

.cursor::after {
  content: "";
  position: absolute;

  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: orange;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;

  height: 4px;
  width: 0%;

  z-index: 98;
  border-radius: 0 5px 5px 0;
  transition: width 0.1s ease-out;

  /* glassy orange style */
  background: linear-gradient(90deg, #ff7a00, #ffb347);

  box-shadow: 0 0 10px rgba(255, 122, 0, 0.7);
}

footer{

  background-image: url('images/footerbackg1.jpg');
  background-size: cover;        /* fills the whole footer */
  background-position: center;   /* keeps it centered */
  background-repeat: no-repeat;


 background-color:#ffb247a1;
 padding-top: 30px;
 padding-bottom: 90px;
 margin-top: 80px;
}

.custom-btn {
  background-color: #ffb247a1;
  color: black;
  border: none;
}

.custom-btn:hover {
  background-color: #e66d00;
}

.special-link {
    color: #e66d00;
  }
  .special-link:hover {
  color: #ffb247a1;
}

/*Testimonial section*/

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 700px; /* optional */
  margin: auto;
}
.mySlides {
  display: none;
  text-align: center;
  padding: 20px;
}

.mySlides p {
  font-size: 18px;
  font-style: italic;
}

.mySlides span {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

/* Arrows */
.testimonial-prev, .testimonial-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px;
  color: black;
  font-size: 20px;
  transform: translateY(-50%);
}

.testimonial-prev { left: 10px; }
.testimonial-next { right: 10px; }

.testimonial-section {
  margin-top: 80px;   /* space above */
  margin-bottom: 80px; /* space below */

  padding: 30px;        /* space inside the card */
  border: 2px solid #ffb347; /* orange outline */
  border-radius: 15px;  /* rounded corners */
  
  background-color: rgba(255, 255, 255, 0.05); /* subtle background if you want it to pop */
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* optional soft shadow for 3D effect */
}

/* Gallery images */
.gallery-img {
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s;
}
.gallery-img:hover {
  transform: scale(1.03);
}

/* Modal background */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 40px 10px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow-y: auto; /* ✅ THIS is the key line */
}

/* Modal content */
.lightbox-content {
  position: relative;
  margin: auto;
  max-width: 800px;
  padding: 40px 0; /* gives breathing room for scrolling */
}

/* Slides */
.lightbox-slide {
  display: none;
}

.lightbox-img {
  width: 100%;
  max-height: 90vh; /* keeps it inside screen height */
  object-fit: contain;
  border-radius: 10px;
}

/* Close button */
.close {
  position: fixed; /* 👈 change from absolute */
  top: 20px;
  right: 40px;
  color: white;
  font-size: 35px;
  cursor: pointer;
  z-index: 10001; /* make sure it's above everything */
}

/* Arrows */
.lightbox-prev, .lightbox-next {
  cursor: pointer;
  position: fixed; /* always fixed */
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  padding: 12px;
  color: white;

  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  z-index: 10000;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.project-card {
  border: 2px solid #ffb347; /* your orange */
  border-radius: 12px;
  padding: 20px;
  max-width: 650px;

  background-color: rgba(255, 255, 255, 0.05); /* subtle glass feel */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

  transition: 0.3s ease;
}

/* optional hover effect */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#project1, #project2, #project3 {
  scroll-margin-top: 110px;
}

/* paper texture */
.paper-header {
  background-color: #fdfaf5; /* prevents flash */
  background-image: url('images/papertexture3.jpg');
  background-repeat: repeat;
  background-size: 300px;


  padding: 40px 20px;
  border-radius: 12px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 50px;
  height: 50px;

  font-size: 22px;
  color: #212731;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  /* glass style */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);

  /* ✨ orange glow */
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.6);

  z-index: 9999;

  /* 👇 fade effect */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

/* visible state */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* hover */
#backToTop:hover {
  transform: translateY(-5px) scale(1.1);

  /* stronger glow on hover */
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.9);
}

body.modal-open {
  overflow: hidden;
}


/* Hamburger button */
#menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  float: right;
  padding: 12px 20px;
}

/* MOBILE NAVBAR */
@media screen and (max-width: 992px) {

  #navbar {
    padding: 20px 10px !important;
  }

  /* Show hamburger */
  #menu-toggle {
    display: block;
  }

  /* Hide menu initially */
  #navbar-right {
    display: none;
    width: 100%;
    margin-top: 15px;
    float: none;
  }

  /* Show menu when active */
  #navbar-right.active {
  display: flex;
  flex-direction: column;
  width: 100%;


  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);

  padding: 10px;
  border-radius: 12px;

  margin-top: 15px;
  }

  /* Stack links vertically */
  #navbar-right a {
    display: block;
    text-align: left;
    width: 100%;
    margin: 5px 0;
  }

  /* Smaller logo */
  #navbar #logo {
    display: inline-block;
    font-size: 22px;
  }
}

/* MOBILE CAROUSEL FIX */
@media screen and (max-width: 992px) {

  .carousel-wrapper {
    height: 400px;
  }

  /* Main slide fills screen */
  .item:nth-child(1),
  .item:nth-child(2) {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 0;
  }

  /* Hide preview cards */
  .item:nth-child(3),
  .item:nth-child(4),
  .item:nth-child(5) {
    display: none;
  }

  /* Better text layout */
  .content {
    left: 20px;
    right: 20px;
    max-width: 90%;
  }

  .content .title {
    font-size: 1.5rem;
  }

  .content .description {
    font-size: 0.95rem;
  }

  /* Smaller arrows */
  .nav .btn {
    padding: 8px;
    font-size: 18px;
  }
}

/* CONTACT PAGE */
.contact-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.contact-info,
.contact-form {

  background: rgba(255,255,255,0.12);

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

  border: 1px solid rgba(255,255,255,0.2);

  border-radius: 20px;

  padding: 40px;

  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.contact-details p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.contact-details i {
  color: #e66d00;
  margin-right: 10px;
}

.contact-form .form-control {

  background: rgba(255,255,255,0.2);

  border: 1px solid rgba(0, 0, 0, 0.15);

  padding: 12px;

  border-radius: 10px;

  color: black;
}

.contact-form .form-control:focus {

  border-color: #ffb347;

  box-shadow: 0 0 10px rgba(255,178,71,0.5);

  background: rgba(255,255,255,0.3);
}

textarea.form-control {
  resize: none;
}

/* MOBILE */
@media screen and (max-width: 992px) {

  .contact-info,
  .contact-form {
    padding: 25px;
  }

  .contact-section {
    margin-top: 40px;
  }
}

.form-control {
  border: 1px solid #ccc;
}

.form-control:not(:placeholder-shown):invalid {
  border-color: #ff4d4d;
}

.form-control:not(:placeholder-shown):valid {
  border-color: #28a745;
}

@media screen and (max-width: 768px) {
  .testimonial-prev,
  .testimonial-next {
    font-size: 18px;
    padding: 8px;
  }
}