/* Enhanced Project Pages CSS with full-screen sections */

/* ====== COMMON STYLES ====== */
* {
  padding: 0;
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  box-sizing: border-box;
  transition: color 0.3s, background-color 0.3s, transform 0.3s, opacity 0.3s;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Josefin Sans", sans-serif;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====== PAGE-SPECIFIC BACKGROUND & COLORS ====== */
/* Chocolate Chess */
body.chocolate-chess {
  background-color: #30131a;
}

body.chocolate-chess span {
  color: #A5A6A9;
}

body.chocolate-chess button {
  background-color: #a8a9ac;
}

body.chocolate-chess button:hover {
  border-color: #a8a9ac;
  box-shadow: 0 10px 25px rgba(168, 169, 172, 0.4);
}

body.chocolate-chess .img1 .overlay {
  background: linear-gradient(to bottom, rgba(168, 169, 172, 0.9), rgba(110, 110, 115, 0.7));
}

/* Cyber Rave */
body.cyber-rave {
  background-image: url(../images/background3.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.cyber-rave span {
  color: #c252e1;
}

body.cyber-rave button {
  background-color: #c252e1;
}

body.cyber-rave button:hover {
  border-color: #c252e1;
  box-shadow: 0 10px 25px rgba(194, 82, 225, 0.4);
}

body.cyber-rave .img1 .overlay {
  background: linear-gradient(to bottom, rgba(215, 42, 237, 0.75), rgba(248, 197, 252, 0.5));
}

/* Second Chance */
body.second-chance {
  background-image: url(../images/background3.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.second-chance span {
  color: #c252e1;
}

body.second-chance button {
  background-color: #c252e1;
}

body.second-chance button:hover {
  border-color: #c252e1;
  box-shadow: 0 10px 25px rgba(194, 82, 225, 0.4);
}

body.second-chance .img1 .overlay {
  background: linear-gradient(to bottom, rgba(215, 42, 237, 0.75), rgba(239, 177, 243, 0.5));
}

/* ====== NAVIGATION ====== */
nav {
  display: flex;
  justify-content: space-between;
  padding-top: 45px;
  padding-left: 8%;
  padding-right: 8%;
  max-height: 30vh;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 0.6s forwards 0.2s;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  padding-top: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(232, 218, 231, 0.45);
}

.scrolled .logo {
  opacity: 0;
  transform: translateY(-20px);
}

.logo {
  color: white;
  font-size: 4.5rem;
  letter-spacing: 1.2px;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ====== CONTAINER LAYOUT ====== */
.container {
  display: flex;
  min-height: 100vh;
  padding-top: 120px;
  width: 100%;
  align-items: center;
}

.main {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 200px;
}

.main img {
  width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;

}
.main video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  object-fit: cover;
  margin: 0 auto;
  display: block;

}

.main video:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(156, 136, 246, 0.4);
}

.overview {
  width: 55%;
  display: flex;
  align-items: center;
  padding: 0 0px;
}

.about-text {
  width: 100%;
  padding-left: 100px;
  padding-right: 100px;
}

.about-text h2 {
  color: white;
  text-transform: capitalize;
  font-size: 3.2rem;
  margin-bottom: 25px;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-text h2:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  bottom: -10px;
  left: 0;
  background-color: currentColor;
  transition: width 0.5s ease;
}

.about-text h2:hover:after {
  width: 100%;
}

.about-text h3 {
  color: white;
  letter-spacing: 2px;
  text-transform: capitalize;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-text h5 {
  color: white;
  letter-spacing: 2px;
  text-transform: capitalize;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-left: 100px;
}

.about-text h5:after {
  content: '';
  position: absolute;
  width: 150px;
  height: 3px;
  background-color: #c252e1;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.5s ease;
}

.about-text h5 {
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.about-text h5:hover:after {
  width: 250px;
}

.about-text p {
  color: #DBDDDD;
  letter-spacing: 1px;
  line-height: 1.8;
  font-size: 1.25rem;
  margin-bottom: 25px;
}

.btn {
  display: flex;
  text-align: left;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

button {
  color: white;
  text-decoration: none;
  border: 2px solid transparent;
  font-weight: bold;
  padding: 15px 35px; /* Larger buttons */
  border-radius: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 15px;
  font-size: 1.1rem; /* Larger font */
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
  background-color: transparent;
  cursor: pointer;
  transform: translateY(-5px);
}

button:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

button:hover:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(50, 50);
    opacity: 0;
  }
}

/* ====== SECTION STYLES ====== */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}


section h2 {
  color: white;
  text-transform: capitalize;
  font-size: 2.7rem;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

section h2:after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: currentColor;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.5s ease;
}

section h2:hover:after {
  width: 120px;
}

section h5 {
  color: white;
  letter-spacing: 2px;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

section p {
  color: #DBDDDD;
  letter-spacing: 1px;
  line-height: 1.8;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ====== INSPIRATION SECTION (Chocolate Chess) ====== */
#inspiration {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

.inspiration {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  padding: 0 250px;
}

.inspiration a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.comparison {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  width: 90%;
}

.chess {
  flex-basis: 45%;
  margin-right: 5%;
  text-align: right;
}

.war {
  flex-basis: 45%;
  margin-left: 5%;
  text-align: left;
}

/* ====== DETAILS SECTION (Chocolate Chess) ====== */
#details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.title {
  margin-bottom: 40px;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 90%;
  max-width: 1400px;
  gap: 40px;
}

.content p {
  padding: 10px 0;
  max-width: 500px;
}

.content img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.content img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.left, .right {
  flex-basis: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left {
  align-items: flex-end;
  margin-right: 2%;
}

.right {
  align-items: flex-start;
  margin-left: 2%;
}

/* ====== GALLERY STYLES ====== */
.imgcontainer {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 25px;
  width: 100%;
  margin: 30px auto;
  padding: 0 5%;
}

.img1 {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img1:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.img1 img, .img1 video {
  display: block;
  width: 550px;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img1:hover img, .img1:hover video {
  transform: scale(1.05);
}

.img1 .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img1 .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 20px;
}

.img1 .caption h5 {
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.img1 .caption p {
  color: white;
  letter-spacing: 1px;
  line-height: 1.6;
  font-size: 1.2rem;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.img1:hover .overlay {
  opacity: 1;
}

@media (max-width: 1175px) {
  .container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 80px; /* Reduced top padding */
  }

  .inspiration {
    padding: 7px 50px;
  }

  .main {
    padding: 20px 15px;
    width: 85%;
  }

  .overview {
    margin-top: 20px; /* Reduced margin */
    width: 85%;
    text-align: center;
    padding-bottom: 40px;
  }

  .about-text {
    padding: 0 40px; /* Adjusted padding for tablets */
  }

  section h2 {
    font-size: 2.5rem;
  }

  section h5 {
    font-size: 1.8rem;
  }

  .logo {
    font-size: 3rem;
  }

  nav {
    padding-top: 25px; /* Reduced padding */
  }

  .content {
    flex-direction: column;
    gap: 30px;
  }

  .left, .right {
    width: 85%; /* More width for content */
    margin: 0 auto; /* Center alignment */
    align-items: center;
  }
  
  .btn {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  button {
    margin: 8px;
    padding: 12px 28px; /* Smaller buttons */
  }
  
  .imgcontainer {
    gap: 20px;
  }
  
  .img1 img, .img1 video {
    width: 100%;
    max-width: 500px;
  }
}

/* Phone styles - portrait orientation */
@media (max-width: 768px) {
  .container {
    padding-top: 60px; /* Further reduced top padding */
  }
  
  .about-text {
    padding: 0 20px; /* Reduced padding for phones */
  }
  
  .about-text h2 {
    font-size: 2.2rem; /* Smaller heading */
  }
  
  .about-text h3, .about-text h5 {
    font-size: 1.8rem;
  }
  
  .about-text p {
    font-size: 1.1rem; /* Smaller text */
    line-height: 1.6;
  }

  .overview {
    padding: 20px 15px;
    width: 92%;
  }

  .inspiration {
    padding: 7px 15px;
  }

  .btn {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  button {
    width: 90%; /* Full-width buttons */
    margin: 5px 0;
    padding: 12px 20px;
    font-size: 1rem;
  }

  section p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .logo {
    font-size: 2.2rem; /* Smaller logo */
  }

  nav {
    padding-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
  }

  .content {
    width: 92%;
    gap: 20px;
  }

  .left, .right {
    width: 92%;
  }

  .content img {
    max-width: 100%;
  }

  .content p {
    width: 100%;
    font-size: 1.1rem;
  }
  
  /* Gallery adjustments for phone */
  .imgcontainer {
    flex-direction: column; /* Stack images vertically */
    align-items: center;
    gap: 20px;
  }
  
  .img1 {
    width: 90%;
    max-width: none;
  }
  
  .img1 img, .img1 video {
    width: 100%;
    height: auto;
  }
  
  /* Adjust section spacing */
  section {
    padding: 50px 0;
  }
  
  section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  section h5 {
    font-size: 1.6rem;
  }
  
.about-text h5 {
  margin-left: 0px;
}
}

/* Smaller phones */
@media (max-width: 480px) {
  .logo {
    font-size: 1.8rem;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
  }
  
  .about-text h3, .about-text h5 {
    font-size: 1.5rem;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  button {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  section h5 {
    font-size: 1.4rem;
  }
  
  section p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .content {
    width: 95%;
  }
  
  .img1 {
    width: 95%;
  }
  
  .img1 .caption p {
    font-size: 1rem;
  }
  
  /* Ensure proper nav display */
  nav {
    padding-top: 15px;
  }
  .about-text h5 {
    margin-left: 0px;
  }
}

/* Handle landscape mode on phones */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    padding: 80px 0 40px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  /* Optimize the layout for landscape */
  .main, .overview {
    width: 90%;
    margin: 0 auto;
  }
  
  /* Two column layout in landscape for efficiency */
  .imgcontainer {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .img1 {
    width: 45%;
  }
}