@import url('https://fonts.googleapis.com/css?family=Raleway');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

body {
  background-color: #f0250514;
  text-align: center;
}

/* Wrapper */
.wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  /* background: #fefefe; */
  padding: 20px;
  color: rgb(20, 2, 2);
}

header h1 {
  font-size: 2em;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav ul li a:hover {
  color: #00bcd4;
}

/* Image Gallery Container */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 15px;
  justify-content: center;
  padding: 20px;
}

/* Image Styling */
.container a {
  display: block;
  overflow: hidden;
}

.container img {
  width: 100%;
  height: 250px; /* Fixed height */
  object-fit: cover; /* Ensures uniform image cropping */
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover Effect */
.container img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.7em;
  }

  .container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .container img {
    height: 200px; /* Reduce height for smaller screens */
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  nav ul li {
    display: block;
    margin: 10px 0;
  }

  .container img {
    height: 180px;
  }
}

/* ====================================== */

/* Close Button Styling */
.close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 115, 255, 0.868);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease-in-out, transform 0.2s;
    z-index: 1000; /* Ensure it's above all elements */
  }
  
  .close-button:hover {
    background: rgba(22, 90, 225, 0.854);
    color: black;
    transform: scale(1.1);
  }
  

  /* ================================= */

  /* Popup Container Styling */
.popup {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.918); /* Dark overlay */
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

/* Enlarged Image Styling */
.popup img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Close Button Styling for Popup */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 115, 255, 0.868);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
}

.popup-close:hover {
    background: rgba(22, 90, 225, 0.854);
    color: black;
    transform: scale(1.1);
}

/* ================================== */
header h1 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #007bff; /* Attractive blue */
    font-family: "Raleway", sans-serif;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #007bff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Unique Underline Effect */
header h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #007bff, #00d4ff);
    transform: translateX(-50%);
    border-radius: 2px;
    animation: underlineAnimation 1s ease-in-out infinite alternate;
}

/* Animation for the underline */
@keyframes underlineAnimation {
    from {
        width: 50%;
    }
    to {
        width: 100%;
    }
}

/* ====================================================== */

/* progress  bsr */

/* #progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #0050fe, #c8ff02, #ff0000); 
  z-index: 9999;
  transition: width 0.1s ease-out;
} */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px; /* Slightly thicker for visibility */
  background: linear-gradient(90deg, #8b06ffb3, #4000ff, #004cff); /* JRL theme colors */
  border-radius: 5px; /* Rounded edges */
  box-shadow: 0 0 8px rgba(0, 136, 255, 0.8); /* Soft glow effect */
  z-index: 9999;
  transition: width 0.2s ease-out;
}


/* ======================================================== */

/* back to top button design */

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #0088ffbd;
  color: white;
  font-size: 22px;
  border: none;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.6);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

#scrollTopBtn:hover {
  background: #0f86e7; /* Change color on hover */
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
  transform: rotate(360deg) scale(1.1);
}

/* ====================================================== */