﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@300;400;600&display=swap');

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body{
  font-family:'Poppins',sans-serif;
  background:#2b1a3b; /* deep purple */
  color:#fff;
  overflow-x:hidden;
  line-height:1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* sticky footer */
}

/* HEADER FONTS */
h1,h2,h3{
  font-family:'Playfair Display',serif;
}

/* NAVIGATION */
nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 8%;
  position:fixed;
  width:100%;
  background:rgba(0,0,0,0.85);
  backdrop-filter:blur(10px);
  z-index:1000;
}

nav h2{
  color:gold;
  letter-spacing:2px;
  font-size:22px;
}

nav ul{
  display:flex;
  gap:25px;
  list-style:none;
}

nav ul li a{
  color:white;
  text-decoration:none;
  font-size:15px;
}

nav ul li a:hover{
  color:gold;
}

/* HERO */
.hero{
  height:100vh;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:0 10%;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: url('your-image.jpg') center/cover no-repeat;
  z-index:-2;
}

.hero::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
  z-index:0;
}

.hero video{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1;
  filter:brightness(50%);
}

.hero-content{
  position:relative;
  z-index:1;
}

.hero-content h1{
  font-size:70px;
  color:gold;
}

.hero-content p{
  margin:18px 0;
  font-size:20px;
  max-width:700px;
}

/* BUTTON */
.btn{
  padding:14px 32px;
  background:gold;
  color:black;
  border-radius:40px;
  font-weight:600;
  display:inline-block;
  font-size:15px;
  text-decoration:none;
}

.btn:hover{
  background:white;
}

/* SECTIONS */
.section{
  padding:80px 10%;
  text-align:center;
}

.section h2{
  font-size:38px;
  color:gold;
  margin-bottom:35px;
}

.hero + .section{
  padding-top:40px;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}

/* CARDS */
.card{
  background:#111;
  padding:35px;
  border-radius:18px;
  border:1px solid #222;
  cursor:pointer;
  transition:0.3s;
  max-width:100%;
  overflow:hidden; /* ensures iframe stays inside */
}

.card:hover{
  border:1px solid gold;
}

/* STORIES PAGE SPECIFIC */
.stories-page .video-player{
  text-align:center;
  margin-bottom:30px;
}

/* Responsive iframe inside card */
.card iframe,
.stories-page .video-player iframe{
  width:100%;
  aspect-ratio:16/9;
  border-radius:12px;
}

/* SEARCH BAR */
.stories-page .search-container{
  text-align:center;
  margin:20px 0;
}

.stories-page .search-container input{
  width:300px;
  padding:10px 20px;
  border-radius:20px;
  border:none;
  outline:none;
}

/* FORM */
form{
  max-width:600px;
  margin:auto;
}

input,textarea{
  width:100%;
  padding:14px;
  margin:12px 0;
  background:#111;
  border:1px solid #333;
  color:white;
  border-radius:8px;
  font-size:15px;
}

input:focus,textarea:focus{
  border:1px solid gold;
  outline:none;
}

/* SUCCESS MESSAGE */
.success-message{
  display:none;
  margin-top:15px;
  font-size:18px;
  font-weight:600;
  color:gold;
  text-align:center;
}

/* FOOTER */
footer{
  text-align:center;
  padding:12px 35px;
  background:#000;
  font-size:14px;
  border-top:1px solid #111;
  margin-top:auto;
}

/* MOBILE RESPONSIVE */
@media (max-width:768px){

  .hero-content h1{
    font-size:38px;
    line-height:1.2;
  }

  .hero-content p{
    font-size:15px;
    max-width:90%;
    margin:12px auto;
  }

  .btn{
    padding:12px 28px;
    font-size:14px;
  }

  nav{
    padding:14px 5%;
  }

  nav ul{
    gap:18px;
    flex-wrap: wrap;
    justify-content:center;
  }

  .section{
    padding:60px 6%;
  }

  .section h2{
    font-size:32px;
    margin-bottom:28px;
  }

  .grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .card{
    padding:24px;
  }

  form{
    width:100%;
    padding:0 5%;
  }

  input,textarea{
    padding:12px;
    font-size:14px;
  }

  footer{
    padding:10px 15px;
    font-size:13px;
  }

  .stories-page .search-container input{
    width:90%;
    max-width:300px;
  }
}

/* HAMBURGER MENU */
.menu-toggle{
  display:none;
  flex-direction: column;
  cursor: pointer;
  gap:5px;
}

.menu-toggle span{
  height:3px;
  width:25px;
  background:white;
  border-radius:2px;
  transition: all 0.3s;
}

@media (max-width:768px){
  .menu-toggle{
    display:flex;
  }

  nav ul{
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:rgba(0,0,0,0.95);
    flex-direction:column;
    align-items:center;
    gap:20px;
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease-in-out;
  }

  nav ul.active{
    max-height:500px;
  }
}

/* Hamburger to X animation */
.menu-toggle.open span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}

.menu-toggle.open span:nth-child(2){
  opacity:0;
}

.menu-toggle.open span:nth-child(3){
  transform: rotate(-45deg) translate(6px,-6px);
}