:root{
  --bg1:#0f2027;
  --bg2:#203a43;
  --bg3:#2c5364;
  --glass:rgba(255,255,255,0.08);
  --border:rgba(255,255,255,0.15);
  --text:#ffffff;
}

body.light{
  --bg1:#f5f7fa;
  --bg2:#e4ecf5;
  --bg3:#ffffff;
  --glass:rgba(255,255,255,0.6);
  --border:rgba(0,0,0,0.1);
  --text:#111;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Segoe UI', sans-serif;
}

body{
  color:var(--text);
  background:linear-gradient(-45deg,var(--bg1),var(--bg2),var(--bg3));
  background-size:400% 400%;
  animation:gradient 12s ease infinite;
  min-height:100vh;
}

@keyframes gradient{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.header{
  position:sticky;
  top:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 40px;
  backdrop-filter:blur(10px);
  background:var(--glass);
  border-bottom:1px solid var(--border);
  z-index:100;
}

.back-btn{
  text-decoration:none;
  color:var(--text);
}

#themeToggle{
  background:none;
  border:none;
  cursor:pointer;
  font-size:18px;
  color:var(--text);
}

.glass{
  backdrop-filter:blur(15px);
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:20px;
  padding:40px;
  margin:40px auto;
  width:90%;
  max-width:1400px;
}

.section-title{
  margin-bottom:25px;
  font-size:22px;
  font-weight:600;
}

/* ================= PLAYER FIXED LIKE YOUTUBE ================= */

.video-container{
  display:flex;
  justify-content:center;
}

.video-wrapper{
  position:relative;
  width:100%;
  max-width:900px;
  background:#000;
  border-radius:16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}


#mainVideo{
  width:100%;
  height:auto;
  max-height:80vh;
  object-fit:contain;   /* ✅ No Crop */
  background:#000;
}


.branding{
  position:absolute;
  bottom:15px;
  right:20px;
  font-size:14px;
  opacity:0.7;
}

/* ================= VIDEO GRID ================= */

.video-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
}

.video-card{
  cursor:pointer;
  transition:0.3s;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
}

.video-card video{
  width:100%;
  height:180px;
  object-fit:cover;
}

.video-card p{
  padding:10px;
  font-size:14px;
}

.video-card:hover{
  transform:translateY(-6px);
}

.video-card.active{
  border:2px solid #00e0ff;
  box-shadow:0 0 18px rgba(0,224,255,0.7);
}

/* ================= PHOTO GRID ================= */
/* ===== PHOTO GRID 3:4 RATIO ===== */

.photo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.photo-card{
  position:relative;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
  background:#000;
}

.photo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.4s ease;
  display:block;
}

/* Hover Title */
.photo-card::after{
  content:attr(data-title);
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:15px;
  font-size:14px;
  color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  transform:translateY(100%);
  transition:0.4s ease;
}

.photo-card:hover img{
  transform:scale(1.07);
}

.photo-card:hover::after{
  transform:translateY(0);
}

/* ===== MODAL ===== */

.photo-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  visibility:hidden;
  opacity:0;
  transition:0.3s ease;
  z-index:999;
}

.photo-modal.active{
  visibility:visible;
  opacity:1;
}

.photo-modal img{
  max-width:90%;
  max-height:75vh;
  border-radius:16px;
}

.photo-modal p{
  margin-top:15px;
  color:#fff;
  font-size:16px;
  text-align:center;
  max-width:80%;
}

.close-btn{
  position:absolute;
  top:30px;
  right:40px;
  font-size:30px;
  color:#fff;
  cursor:pointer;
}

/* Responsive */

@media(max-width:992px){
  .photo-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:600px){
  .photo-grid{grid-template-columns:1fr;}
}


/* ================= ABOUT SECTION ================= */

.about-content{
  max-width:900px;
  line-height:1.7;
}

.about-content ul{
  margin-top:20px;
  list-style:none;
}

.about-content li{
  margin-bottom:10px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){
  .video-grid{grid-template-columns:repeat(2,1fr);}
  .photo-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:600px){
  .video-grid{grid-template-columns:1fr;}
  .photo-grid{grid-template-columns:1fr;}
}
