:root {
  --primary: #ff4081;
  --secondary: #00e5ff;
  --dark: #111;
  --light: #f4f4f4;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: var(--light);
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Navbar Fix */
header nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  /* Reduced padding for smaller height */
  background-color: rgba(17, 17, 17, 0.8);
  /* To ensure visibility over the hero section */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .logo img {
  width: 120px;
  /* Logo size */
}

nav .logo-text {
  color: var(--light);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
  /* Align the links to the right */
}

nav ul li {
  list-style-type: none;
}

nav ul li a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 10px;
  transition: color 0.3s ease, padding 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary);
  bottom: -4px;
  left: 0;
  transition: width .3s;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary);
  padding-bottom: 10px;
}



.hero {
  width: 99vw;
  min-height: 400px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('slideshow/bappi-cover.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Hero Section */

.hero-content {
  position: absolute;
  text-align: center;
  color: var(--light);
  z-index: 1;
  /* Ensures that text is on top of the slideshow */
  animation: fadeIn 2s ease-out;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-content .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  color: var(--light);
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s;
}

.hero-content .btn:hover {
  transform: scale(1.05);
}

/* Slideshow Styling */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Slideshow goes behind the text */
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slideshow Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
  .hero {
    height: 38vh;
    min-height: 240px;
  }

  .slideshow-container {
    height: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 32vh;
    min-height: 170px;
  }

  .slide img {
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 26vh;
    min-height: 130px;
  }

  .slide img {
    min-height: 110px;
  }
}

/* Optional: Add hover effect to icons if needed */
.social-link:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}


/* Navigation buttons (optional) */
.prev,
.next {
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 2;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  color: var(--light);
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 8px auto;
  border-radius: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}


.category-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.1s;
}

.category-item:hover .overlay {
  opacity: 1;
}


.category-item:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.category-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 600px;
  border-radius: 8px;
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: var(--light);
  font-size: 1.5rem;
}

/* Description Styling */
.album-description {
  font-size: 1.1rem;
  color: var(--light);
  font-weight: 400;
  padding: 15px;
}

.album-description.right {
  text-align: right;
  order: 1;
  /* Make sure description goes on the right for odd albums */
}

.album-description.left {
  text-align: left;
  order: 2;
  /* Make sure description goes on the left for even albums */
}

/* Alternate Description Position */
.portfolio-item:nth-child(odd) .album-description {
  text-align: right;
}

.portfolio-item:nth-child(even) .album-description {
  text-align: left;
}

/* Hover effect on portfolio items */
.portfolio-item:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}


footer {
  background: var(--dark);
  padding: 3rem 0;
  text-align: center;
}

footer p {
  color: var(--light);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.shape.one {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: 10%;
  left: 5%;
}

.shape.two {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: 15%;
  right: 10%;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Contact Section Styling */
#contact {
  padding: 6rem 0;
  background-color: var(--dark);
  color: var(--light);
}

#contact .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  gap: 10px;
  padding: 10px;
  transition: color 0.3s ease;
}

.social-link i {
  font-size: 1.5rem;
}

.social-link:hover {
  color: var(--primary);
}

.hidden-content {
  display: none;
  color: var(--light);
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Optional: Add hover effect to icons if needed */
.social-link:hover i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}


/* Album Section */
#album-details {
  padding: 6rem 0;
  background-color: var(--dark);
  color: var(--light);
}

#album-details .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.album-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  justify-items: center;
  /* Centers the images */
}

.album-photos img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect on Images */
.album-photos img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Add responsiveness for smaller screens */
@media (max-width: 768px) {
  .album-photos {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}



/* Large desktops / smaller than your max-width container */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .category-grid,
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
  header nav {
    padding: 0.5rem;
  }

  nav .logo img {
    width: 100px;
  }

  nav .logo-text {
    font-size: 1.2rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .btn {
    padding: 0.6rem 1.8rem;
  }

  section {
    padding: 4rem 0;
  }

  .category-grid,
  .portfolio-grid,
  .album-photos {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .logo img {
    width: 80px;
  }

  nav .logo-text {
    font-size: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  nav ul li a {
    padding: 4px 8px;
    font-size: 0.9rem;
  }

  .hero {
    background-position: center top;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-content .btn {
    padding: 0.5rem 1.2rem;
  }

  section {
    padding: 3rem 0;
  }

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

  .category-grid,
  .portfolio-grid,
  .album-photos {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* hide large decorative shapes on small screens */
  .shape {
    display: none;
  }
}

img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  /* Keep for WebKit browsers */
  pointer-events: none;
  /* Optional, disables clicks - may hurt UX */
}