/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html {
    scroll-behavior: smooth;
}

/* Light & Dark Mode Variables */
:root {
    --bg-overlay: rgba(255, 255, 255, 0.65);
    --text: #222;
    --nav-bg: rgba(0, 0, 0, 0.6);
    --nav-text: #fff;
    --footer-bg: rgba(0, 0, 0, 0.7);
}

.dark-mode {
    --bg-overlay: rgba(0, 0, 0, 0.65);
    --text: #eee;
    --nav-bg: rgba(255, 255, 255, 0.1);
    --nav-text: #fff;
    --footer-bg: rgba(0, 0, 0, 0.9);
}

/* GLOBAL BACKGROUND IMAGE */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    transition: background 0.3s, color 0.3s;

    /* Background restored */
    background-image: url("images/background.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* CLEAN CONTENT PANEL */
main {
    padding: 20px;
    max-width: 1000px;
    margin: 40px auto;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Header Banner */
header {
    background: url("images/temple.jpg") center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px black;
    animation: fadeIn 1.5s ease-in-out;
}

header h1 {
    font-size: 3rem;
    margin: 0;
}

header p {
    font-size: 1.3rem;
}

/* Sticky Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    padding: 12px;
    text-align: center;
    backdrop-filter: blur(6px);
    z-index: 1000;
}

nav a {
    color: var(--nav-text);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #ffdd57;
}

/* Image Hover Zoom */
img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.03);
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Slideshow */
.slideshow {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideShow 16s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }

@keyframes slideShow {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Back to Top Button */
#topBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #ffdd57;
    color: black;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    transition: 0.3s;
}

#topBtn:hover {
    background: #ffe88a;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    backdrop-filter: blur(4px);
}

footer .icons i {
    margin: 0 10px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

footer .icons i:hover {
    color: #ffdd57;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}