/* =============================================
   style.css — Sneh Samvardhan Mandal (Optimized)
   ============================================= */

/* ── CSS Custom Properties ── */
:root {
    --color-bg:        #111827;
    --color-bg-alt:    #1f2937;
    --color-accent:    #3b82f6;
    --color-danger:    #ef4444;
    --color-orange:    #ea580c;
    --color-orange-dk: #c2410c;
    --color-purple:    #7c3aed;
    --color-green:     #008852;
    --color-pink:      #fa479a;
    --color-text:      white;
    --nav-height:      80px;          /* single source of truth */
    --container-w:     1300px;
    --radius:          8px;
    --shadow-card:     0 10px 25px rgba(0,0,0,.15);
    --transition:      0.3s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ── */
.main-header {
    background: var(--color-bg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-w);
    width: 100%;
    margin: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo — overflows header intentionally */
.logo img {
    height: 245px;
    width: auto;
}

/* ── Nav links ── */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    font-size: 15px;
    transition: color var(--transition);
}

.nav-links a:hover        { color: var(--color-accent); }
.nav-links .login-btn,
.nav-links .logout-btn    { padding: 6px 14px; border-radius: 6px; }
.nav-links .login-btn     { background: var(--color-accent); }
.nav-links .logout-btn    { background: var(--color-danger); }

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 25px; height: 3px;
    background: var(--color-text);
    border-radius: 5px;
    display: block;
}

/* ── Hero Banner ── */
.hero-banner {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.hero-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    padding: 20px;
    text-align: center;
}

/* ── Container helper ── */
.container { max-width: var(--container-w); margin: auto; padding: 0 25px; }

/* ── About Section ── */
.about-section { padding: 60px 20px; }

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.about-content p { margin-bottom: 16px; line-height: 1.7; }
.about-content.hidden { display: none; }

.language-toggle { display: flex; gap: 8px; }

.lang-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    font-size: 14px;
    transition: background var(--transition), color var(--transition);
}
.lang-btn.active { background: var(--color-orange); color: white; border-color: var(--color-orange); }

/* ── Gallery Section ── */
#gallery { font-family: Arial, sans-serif; text-align: center; background: #f4f4f4; padding: 40px 20px; }
#gallery h1 { margin-bottom: 20px; }

.filters { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filters button {
    padding: 10px 20px;
    cursor: pointer;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background var(--transition);
}
.filters button:hover { background: var(--color-orange); }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.item { background: white; padding: 10px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.item img { width: 100%; height: auto; max-height: 250px; object-fit: contain; cursor: pointer; }
.item h3 { margin-top: 8px; font-size: 15px; }
.item p  { font-size: 13px; color: #555; margin-top: 4px; }

/* Lightbox */
#lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}
#lightbox img { max-width: 85%; max-height: 85%; border-radius: 4px; }

/* ── Feedback Section ── */
.feedback-section { padding: 70px 20px; background: #f8fafc; }

.feedback-container {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.section-title  { text-align: center; margin-bottom: 8px; }
.feedback-subtitle { text-align: center; margin-bottom: 25px; color: #555; }

.feedback-grid { display: flex; gap: 20px; margin-bottom: 15px; }

.input-group { width: 100%; margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color var(--transition);
}

.input-group input:focus,
.input-group textarea:focus { border-color: var(--color-orange); outline: none; }

.feedback-btn {
    background: var(--color-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background var(--transition);
}
.feedback-btn:hover    { background: var(--color-orange-dk); }
.feedback-btn:disabled { opacity: .6; cursor: not-allowed; }

.success-msg {
    background: #dcfce7; color: #15803d;
    padding: 10px; border-radius: 6px;
    margin-top: 10px; text-align: center;
}
.error-msg {
    background: #fee2e2; color: #b91c1c;
    padding: 10px; border-radius: 6px;
    margin-top: 10px; text-align: center;
}

/* ── Floating Buttons ── */
.floating-buttons {
    position: fixed; bottom: 20px; right: 25px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 999;
}

.floating-buttons1 {
    position: fixed; bottom: 20px; left: 25px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 999;
}

/* Shared floating button base */
.floating-book-btn,
.floating-view-btn,
.interactive-btn,
.floating-book-btn1 {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    color: white;
    transition: background var(--transition), transform var(--transition);
}

.floating-book-btn  { background: var(--color-pink); }
.floating-book-btn:hover { background: var(--color-orange-dk); }

.floating-view-btn  { background: var(--color-bg-alt); }
.floating-view-btn:hover { background: var(--color-bg); }

.interactive-btn    { background: var(--color-purple); }
.interactive-btn:hover { opacity: .85; }

.floating-book-btn1 {
    position: fixed; bottom: 100px; right: 25px;
    background: var(--color-green);
    border-radius: 40px;
    border: 2px solid white;
}
.floating-book-btn1:hover { background: var(--color-orange-dk); transform: scale(1.05); }

/* Pulse animation */
.floating-animate { animation: pulse 2s infinite; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(234,88,12,.6); }
    70%  { box-shadow: 0 0 0 15px rgba(234,88,12,0); }
    100% { box-shadow: 0 0 0 0   rgba(234,88,12,0); }
}

/* ── Gallery modal (legacy, kept for compatibility) ── */
.modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    /* Header */
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        right: 20px;
        background: var(--color-bg-alt);
        flex-direction: column;
        width: 220px;
        padding: 20px;
        gap: 15px;
        display: none;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,.2);
    }
    .nav-links.active { display: flex; }
    .hamburger        { display: flex; }

    /* Hero */
    .hero-banner {
        height: calc(100dvh - var(--nav-height));
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: var(--color-bg);
    }

    /* Feedback */
    .feedback-grid { flex-direction: column; }

    /* Floating buttons — center at bottom */
    .floating-buttons {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 35px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .floating-buttons a { font-size: 13px; padding: 10px 12px; }
}
