* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    scroll-behavior: smooth;
}

/* NAVBAR */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.navbar {
    background:rgba(4, 0, 0, 0.979);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
}

.nav-links li a {
    color: #fff;
    font-weight: 500;
}


.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: crimson;
    border-radius: 4px;
    
}

.search-box input {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.search-box input::placeholder {
    color: #ddd;
}

.menu-toggle {
    display: none;
    font-size: 15px;
    color: white;
    cursor: pointer;
}

/* SLIDER */
.slider {
    margin-top: 70px;
}

.slides {
    position: relative;
}

.slide {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: none;
}

.slide.active {
    display: block;
}

/* SECTIONS */
.section {
    min-height: 40vh;
    padding: 40px 15px;
    font-size: 15px;
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        background: #000;
        width: 100%;
        flex-direction: column;
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }
}

.section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal img {
    max-width: 90%;
    max-height: 80%;
}

.modal span {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.book-card {
    padding: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    border-left: 3px solid crimson;
}

.timeline-item {
    margin: 30px 0;
    padding-left: 30px;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.timeline-item span {
    color: crimson;
    font-size: 22px;
    font-weight: bold;
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.quotes {
    background: rgba(0,0,0,0.7);
    color: white;
}

.quote-box {
    max-width: 700px;
    margin: auto;
    font-size: 20px;
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.quote-controls button {
    margin: 13px;
    padding: 8px 18px;
    font-size: 15px;
    cursor: pointer;
}

:root {
    --bg: #0e0e0e;
    --text: #ffffff;
    --nav: rgba(0,0,0,0.85);
}

body {
    background: var(--bg);
    color: var(--text);
}

.navbar {
    background: var(--nav);
}

.light {
    --bg: #f5f5f5;
    --text: #111;
    --nav: rgba(255,255,255,0.9);
}

.theme-btn {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
}

/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #333;
    border-top: 6px solid crimson;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SCROLL PROGRESS BAR */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: crimson;
    z-index: 2000;
}

/* ===== VIDEO SECTION ===== */

.video-section{
  padding: 40px 0;
}

.video-wrapper.video-flex{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* Left & Right image box */
.side-box{
  flex: 0 0 auto;
}

.side-img{
  width: 200px;
  height: auto;
  border-radius: 8px;
}

/* Video box */
.video-box{
  flex: 0 0 auto;
}

.video-box video{
  width: 560px;
  height: 315px;
  border-radius: 10px;
}

/* ===== RESPONSIVE (Mobile ke liye) ===== */
@media (max-width: 768px){
  .video-wrapper.video-flex{
    flex-direction: column;
  }

  .side-img{
    width: 90%;
    max-width: 300px;
  }

  .video-box video{
    width: 100%;
    height: auto;
  }
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: crimson;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

#scrollTopBtn:hover {
    transform: scale(1.1);
}

.contact-box {
    max-width: 600px;
    margin: auto;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
    border: none;
}

.contact-box button {
    background: crimson;
    color: white;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.video-wrapper.video-flex{
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
}

@media (min-width: 1024px){
  .video-wrapper.video-flex{
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
  }
}

.side-img{
  width: 220px;
  height: 300px;      /* same height force */
  object-fit: cover; /* image crop hogi, stretch nahi */
  border-radius: 8px;
}