/* Fixed CSS for advertisements page */
/* ===== Reset and Base Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


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

:root {
  --main-bg: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Glossary', sans-serif;
  background-color: #0f0f0f;
  position: relative;
}

/* Background layer with blur */
.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--main-bg), url('website bg.png');
  background-repeat: repeat;
  background-position: center center;
  background-size: cover;
  filter: blur(10px);
  z-index: -1;
}

/* Content stays crisp above the background */
.content {
  position: relative;
  z-index: 1;
}

.mobile-brand {
  display: none;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

/* Show on mobile */
@media (max-width: 768px) {
  .mobile-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
  }

  .nav-links {
    display: none;
  }
}

/* ===== Glass Navbar ===== */
.glass-navbar {
  position: fixed; /* Stick to top */
  top: 20px;        /* Some space from top */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: start;
  padding: 8px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 10px rgb(255 167 77 / 30%),
    0 0 25px rgba(255, 122, 0, 0.2),
    0 0 45px rgba(255, 122, 0, 0.1);

  width: 90%;
  max-width: 550px;
  flex-wrap: nowrap;
  overflow: visible;
  font-family: 'Poppins', sans-serif;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}

/* ===== Nav Buttons ===== */
.nav-btn {
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

a.nav-btn {
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}



.nav-btn:hover {
  background-color: rgba(255, 122, 0, 0.15);
  box-shadow:
    0 0 6px rgba(255, 122, 0, 0.5),
    0 0 12px rgba(255, 122, 0, 0.3);
}
.work-bg {
  background-image: none !important;
}

.poster-bg {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.poster-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('work/posters/posters.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -2;
}

.poster-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1); /* black with 50% opacity */
  z-index: -1;
}

.adver-bg {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.adver-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('work/Advertisements/adver.jpg'); /* Fixed spelling */
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -2;
}

.adver-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1); /* black with 50% opacity */
  z-index: -1;
}

.thumbnail-bg {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.thumbnail-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -2;
}

.thumbnail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1); /* black with 50% opacity */
  z-index: -1;
}


.content-box {
  margin: 130px auto; /* Equal gap at the top and bottom */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-image: url('');
  background-size: FILL; /* Make it fit */
  background-repeat: repeat; /* Prevent looping */
  background-position: top; /* Center it nicely */

  border-radius: 30px;
  max-width: 1500px;
  width: 100%; /* Make sure it fills available space */
  padding: 40px 20px 20px 20px; /* Use px or % for padding */
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.1);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* softens background */
  z-index: -1;
}

/* ===== Logo Button ===== */
.icon-btn {
  margin-right: 12px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(255, 122, 0, 0.4));
}

/* ===== Hero Section ===== */
.hero {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ===== Button Styles ===== */
.hover-btn {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.15);
  color: #ff7a00;
  border-radius: 10em;
  font-size: 17px;
  font-weight: 600;
  padding: 1em 2em;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-shadow: 
    0 0 10px rgba(255, 122, 0, 0.3),
    0 0 20px rgba(255, 122, 0, 0.2);
  --glow-x: 50%;
  --glow-y: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.hover-btn:hover {
  box-shadow: 
    0 3px 0 0 #ff7a00,
    0 0 10px rgba(255, 122, 0, 0.5),
    0 0 20px rgba(255, 122, 0, 0.4),
    0 0 30px rgba(255, 122, 0, 0.3),
    0 0 40px rgba(255, 122, 0, 0.2);
  transform: translateY(-2px) translateX(-1px);
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255,122,0,0.4) 0%, rgba(255,122,0,0.0) 60%);
}
.hover-btn:focus {
  outline: none;
  box-shadow: 
    0 0 10px rgba(255, 122, 0, 0.5),
    0 0 20px rgba(255, 122, 0, 0.4),
    inset -2px -2px rgba(255, 122, 0, 0.1);
}



/* Smooth transition */
#main-content {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

#main-content.show {
  opacity: 1;
}

.hover-btn:active {
  transform: scale(0.97);
}

.hero h1 {
  font-size: 6rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.art {
  font-family: 'Glossary', serif;
  font-style: italic;
  font-size: 8rem;
  font-weight: 900;
  color: #ff7a00;
  text-shadow: 
    0 0 10px rgba(255, 122, 0, 0.5),
    0 0 20px rgba(255, 122, 0, 0.4),
    0 0 30px rgba(255, 122, 0, 0.3),
    0 0 40px rgba(255, 122, 0, 0.2);
}

.starts-here, .lol {
  margin: 0;
  padding: 0;
  line-height: 1;
  letter-spacing: -1px;
  display: inline;
  font-size: inherit;
}

.starts-here {
  font-family: 'Glossarye', sans-serif;
  color: #ffffff;
}

.lol {
  font-family: 'Glossarye', ui-rounded;
  font-style: italic;
  position: relative;
  left: -25px;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
}

.real, .art, .starts-here {
  margin: 0;
  padding: 0;
  line-height: 0.9;
  letter-spacing: -0.5px;
}

.hero h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: #ff7a00;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: #ff7a00;
  border-radius: 4px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #ff7a00;
  font-family: 'Poppins', sans-serif;
}

/* ===== work ===== */

@keyframes glow {
  0%, 100% {
    text-shadow:
      0 0 5px #ff7a00,
      0 0 10px #ff7a00,
      0 0 20px #ff7a00,
      0 0 40px #ff7a00,
      0 0 60px #ff7a00,
      2px 2px 8px #000000; /* Adds hard dark edge for "depth" */
  }
  50% {
    text-shadow:
      0 0 10px #ffaa00,
      0 0 20px #ff9900,
      0 0 40px #ff9900,
      0 0 80px #ffaa00,
      2px 2px 10px #000000;
  }
}

.poster-exp {
  text-shadow: 2px 2px 4px #0f0f0f;
  font-size: 0.8rem;
  font-weight: 100;
  line-height: 1.6;
  margin: 0 auto 6rem auto; /* top, horizontal center, bottom */
  color: #fff;
  text-align: center;
  max-width: 800px; /* controls the line length for wrapping */
  padding: 1rem 1rem;  /* optional: adds breathing room on mobile */
  font-family: 'Poppins', sans-serif;
}

.adver-exp {
  text-shadow: 2px 2px 4px #0f0f0f;
  font-size: 0.8rem;
  font-weight: 100;
  line-height: 1.6;
  margin: 0 auto 6rem auto; /* top, horizontal center, bottom */
  color: #fff;
  text-align: center;
  max-width: 800px; /* controls the line length for wrapping */
  padding: 1rem 1rem;  /* optional: adds breathing room on mobile */
  font-family: 'Poppins', sans-serif;
}

.thumb-exp {
  text-shadow: 2px 2px 4px #0f0f0f;
  font-size: 0.8rem;
  font-weight: 100;
  line-height: 1.6;
  margin: 0 auto 6rem auto; /* top, horizontal center, bottom */
  color: #fff;
  text-align: center;
  max-width: 800px; /* controls the line length for wrapping */
  padding: 1rem 1rem;  /* optional: adds breathing room on mobile */
  font-family: 'Poppins', sans-serif;
}
.center-text {
  -webkit-text-stroke: #ffffff 0.2px;
  font-family: 'Glossarye', sans-serif;
  font-style: italic;
  font-size: 6.5rem;
  text-align: center;
  margin-top: 24px;
  color: #ff7a00;
  animation: glow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .center-text {
    font-size: 2.5rem;
  }
}

#scramble-title {
  -webkit-text-stroke: #ffffff 0.1px;
  font-style: italic;
  font-weight: 900; /* Remove px here */
  color: #ff7a00;
  font-family: 'Glossarye', sans-serif;
  cursor: pointer;
  animation: glow 2s ease-in-out infinite;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
  margin-top: 40px;
}
.poster-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  justify-items: center;
  margin-top: 40px;
}

/* Fixed advertisement gallery styling */
.adver-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.adver-gallery .work-item {
  aspect-ratio: 1 / 1;
  max-width: 240px;
  width: 100%;
}

.adver-gallery .work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.thumbnails-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  justify-items: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .work-gallery,
  .poster-gallery,
  .thumbnails-gallery,
  .adver-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .work-item img {
    max-height: none; /* Allow full height if needed */
    height: auto;
  }
}

@media (max-width: 500px) {
  .work-gallery,
  .poster-gallery,
  .thumbnails-gallery,
  .adver-gallery {
    grid-template-columns: 1fr;
  }
}


.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  /* aspect-ratio: unset; ← leave this out entirely */
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(15, 15, 15, 0.7);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
  z-index: 2;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
}

.adver-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  z-index: 2;
  transition: opacity 0.3s ease;
  text-align: center;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}

.thumbnails-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(15, 15, 15, 0.7);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
  z-index: 2;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
}

.work-item:hover .adver-overlay {
  opacity: 1;
}

.work-item,
.work-item-link {
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.work-item:hover .poster-overlay {
  opacity: 1;
}

.work-item:hover .adver-overlay {
  opacity: 1;
}


.work-item:hover .thumbnails-overlay {
  opacity: 1;
}

.work-item:hover img {
  transform: scale(1.05); /* Slight zoom is okay */
}

/* Fixed lightbox styles */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

#lightbox.show {
  display: flex !important;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 32px #ff7a00;
  border-radius: 16px;
}

/* Added close button styling for lightbox */
.close-btn {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  user-select: none;
  font-family: 'Poppins', sans-serif;
}

.work-item:hover {  
  z-index: 10;
}

.work-item img,
.blur-target,
.overlay-img {
  cursor: pointer;
  width: 100%;
  height: auto;
  max-width: 500px; /* Adjust to your liking */
  max-height: 500px;
  object-fit: cover;
}

.work-item:hover img {
  transform: scale(1.1);
}

/* Additional animations */

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

* {
  box-sizing: border-box;
}

/* Fixed adver-container styling */
#adver-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.work-item p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.work-item-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* ===== Mobile Navbar Fix ===== */
@media (max-width: 768px) {
  .glass-navbar {
    justify-content: center;
    padding: 4px 12px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .icon-btn img {
    width: 35px;
    height: 35px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .art {
    font-size: 5rem;
  }
}

/* Default mobile menu hidden */
.menu-toggle {
  display: none;
  font-size: 28px;
  width: 44px;  /* Make the button bigger for easy tapping */
  height: 44px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1100; /* Ensure it's above other elements */
  position: relative; /* Helps with stacking */
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 15px;
  position: absolute;
  top: 60px; /* adjust according to navbar height */
  right: 10px;
  background: rgba(40, 40, 40, 0.95);
  padding: 15px;
  border-radius: 8px;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-btn,
.mobile-menu a {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
  .glass-navbar {
    justify-content: space-between;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }
}

/* Responsive Rules */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hide desktop nav */
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }
}


footer {
      padding: 2rem;
      text-align: center;
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.9rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .social-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 15px;
    }

    .social-link {
      color: white;
      text-decoration: none;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    .social-link:hover {
      color: #ff7a00;
      text-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
    }