/* --- Root Variables for Theme Management --- */
[data-theme="dark"] {
    --bg: #050505;
    --bg-alt: #0a0a0a;
    --text: #ffffff;
    --text-muted: #ccc;
    --card: #111;
    --border: #333;
    --primary: #e60000;
    --overlay: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-alt: #f4f4f4;
    --text: #111111;
    --text-muted: #444;
    --card: #ffffff;
    --border: #ddd;
    --primary: #e60000;
    --overlay: rgba(255, 255, 255, 0.3);
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: 'Roboto', sans-serif; 
    transition: background-color 0.4s ease, color 0.4s ease; 
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; }

/* --- Navigation & Logo Update --- */
nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: var(--bg); 
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000; 
    border-bottom: 2px solid var(--primary);
    transition: background 0.4s ease;
}

/* Logo Wrapper for Image + Text */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px; /* Size adjust as per your green logo */
    width: auto;
    object-fit: contain;
}

.logo { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--text); 
    text-decoration: none; 
    line-height: 1;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; margin: 0 15px; font-weight: bold; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
#theme-toggle { 
    background: none; border: 1px solid var(--border); 
    color: var(--text); padding: 8px 12px; cursor: pointer; 
    border-radius: 5px; transition: 0.3s;
}
#theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.login-btn { 
    background: var(--primary); color: #fff; padding: 10px 20px; 
    border-radius: 5px; text-decoration: none; font-weight: bold; 
    border: 2px solid var(--primary); transition: 0.3s;
}
.login-btn:hover { background: transparent; color: var(--primary); }

/* --- Hero Section with Background Video --- */
#home { 
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

#home::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content { z-index: 1; }
#home h1 { font-size: 5rem; letter-spacing: 2px; }
#home p { font-size: 1.2rem; margin-top: 10px; }
.hero-cta { margin-top: 30px; display: inline-block; }

/* --- Layout Sections --- */
section { padding: 100px 10%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.alt-bg { background-color: var(--bg-alt); }

/* --- About Update --- */
#about { flex-direction: row; flex-wrap: wrap; gap: 60px; text-align: left; align-items: center; }
.about-content, .about-img { flex: 1; min-width: 320px; }

/* Text Justification for better look */
.section-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
    margin-bottom: 15px;
}

.about-img img { 
    width: 100%; border-radius: 15px; 
    border-left: 8px solid var(--primary); 
    box-shadow: 15px 15px 30px rgba(0,0,0,0.2);
    transition: 0.4s;
}
.about-img img:hover { transform: scale(1.02); }

.section-title { font-size: 2.8rem; margin-bottom: 25px; line-height: 1.2; }
.highlight { color: var(--primary); }

.features-list { list-style: none; margin-top: 20px; }
.features-list li { margin-bottom: 10px; font-weight: bold; display: flex; align-items: center; gap: 10px; color: var(--primary); }

/* --- Video Section --- */
.video-container { 
    width: 100%; max-width: 900px; 
    border: 10px solid var(--card); 
    border-radius: 20px; overflow: hidden; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* --- Contact & Location --- */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 50px; width: 100%; margin-top: 40px; }
.contact-form, .location-info { flex: 1; min-width: 320px; }
input, textarea { 
    width: 100%; padding: 15px; margin-bottom: 20px; 
    background: var(--card); border: 1px solid var(--border); 
    color: var(--text); border-radius: 8px; font-size: 1rem;
}
.submit-btn { 
    background: var(--primary); color: white; width: 100%; 
    padding: 18px; border: none; cursor: pointer; 
    font-weight: bold; border-radius: 8px; text-transform: uppercase;
    transition: 0.3s;
}
.submit-btn:hover { background: #b30000; transform: translateY(-2px); }

.location-info h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.8rem; }
.map-box { margin: 25px 0; border: 4px solid var(--card); border-radius: 10px; overflow: hidden; }
.map-link { color: var(--primary); font-weight: bold; text-decoration: none; border-bottom: 2px solid transparent; transition: 0.3s; }
.map-link:hover { border-bottom-color: var(--primary); }

/* --- Gallery --- */
/* .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; width: 100%; }
.gallery-item { border-radius: 12px; overflow: hidden; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); } */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-responsive grid */
    gap: 15px;
    width: 100%;
    margin-top: 30px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Images stretch nahi hongi */
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Hover par halka zoom */
}
/* --- Lightbox Modal Styles --- */
.lightbox {
    display: none; /* Shuru mein chhupa rahega, JS ise 'flex' karega */
    position: fixed;
    z-index: 10000; /* Isay har cheez ke upar hona chahiye */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 85%;
    max-height: 80%;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; /* Khulne ki animation */
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Control Buttons (Next, Back, Close) --- */
.close-btn, .prev-btn, .next-btn {
    position: absolute;
    color: white;
    font-size: 45px;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.close-btn { 
    top: 30px; 
    right: 40px; 
}

.prev-btn { 
    left: 30px; 
    top: 50%; 
    transform: translateY(-50%); 
}

.next-btn { 
    right: 30px; 
    top: 50%; 
    transform: translateY(-50%); 
}

.close-btn:hover, .prev-btn:hover, .next-btn:hover {
    color: var(--primary); /* Hover par aapka theme color (Red) aayega */
    transform: translateY(-50%) scale(1.2);
}

/* Close button hover fix (kyunki usme transform nahi chahiye) */
.close-btn:hover {
    transform: scale(1.2);
}

/* --- WhatsApp & Footer --- */
.whatsapp-btn { 
    position: fixed; bottom: 35px; right: 35px; 
    background: #25d366; color: #fff; width: 65px; height: 65px; 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 35px; z-index: 1001; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); }

footer { padding: 50px; text-align: center; border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--text-muted); }

/* --- Animation Classes --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    #home h1 { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .logo-wrapper { gap: 8px; }
    .nav-logo-img { height: 35px; }
    .logo { font-size: 16px; }
    #home h1 { font-size: 2.8rem; }
    #about { flex-direction: column; text-align: center; }
    .about-img { order: -1; }
    section { padding: 60px 5%; }
}