/* ======== GENERAL RESET & BASE STYLES ======== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --primary-blue: #0A66C2;
    --accent-gold: #c59d5f;
    --accent-teal: #00BFB3; 
    --light-bg: #ffffff;
    --light-card-bg: #f9f9f9;
    --light-text: #333333;
    --light-heading: #1a202c;
    --light-subtle-text: #555;
    --light-border: #e2e8f0;
    --header-light-overlay: rgba(255, 255, 255, 0.95);
    --header-dark-overlay: rgba(15, 20, 30, 0.95);
    --dark-bg: #0f141e;
    --dark-card-bg: #1B2230;
    --dark-text: #e8e8e8;
    --dark-heading: #ffffff;
    --dark-subtle-text: #b0bec5;
    --dark-border: #333d4f;
    --header-shadow: rgba(0,0,0,0.08);
    --card-shadow: rgba(0,0,0,0.12);
    /* Dynamic Vars */
    --text-color: var(--light-text);
    --heading-color: var(--light-heading);
    --card-bg: var(--light-card-bg);
    --border-color: var(--light-border);
    --header-transparent: rgba(0, 0, 0, 0); 
    --header-glass: rgba(15, 20, 30, 0.9);

    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading); color: var(--heading-color);
    line-height: 1.2; margin-bottom: 0.75em; font-weight: 700;
}

p { margin-bottom: 1em; font-size: 1rem; }
a { text-decoration: none; color: var(--primary-blue); transition: color 0.3s ease; }
a:hover { color: var(--accent-teal); }
ul { list-style: none; }

/* ======== HEADER (Glass Logic) ======== */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 1.2rem 0; z-index: 1000;
    background-color: var(--header-transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background-color: var(--header-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { height: 40px; width: auto; background: rgba(255,255,255,0.1); padding: 5px; border-radius: 6px; }
.site-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--accent-gold); letter-spacing: 1px; }

.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { color: #ffffff; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; opacity: 0.9; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-teal); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* CONTACT BUTTON (Updated to Teal for Consistency) */
.btn-contact {
    background: var(--accent-teal); /* Teal */
    color: #ffffff !important;
    padding: 0.6rem 1.4rem; 
    border-radius: 5px; 
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 191, 179, 0.2);
    transition: all 0.3s ease;
}
.btn-contact:hover { 
    background: #009688 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0, 191, 179, 0.3);
}
.btn-contact.active { background: #009688 !important; }

.theme-toggle, .menu-toggle { background: none; border: none; color: #ffffff; font-size: 1.2rem; cursor: pointer; }
.menu-toggle { display: none; }

/* ======== STANDARD UI ======== */
.btn { display: inline-block; padding: 0.9rem 2.2rem; border-radius: 50px; font-weight: 600; text-align: center; transition: all 0.3s ease; }
.btn-primary { background: var(--accent-teal); color: #fff !important; box-shadow: 0 4px 10px rgba(0,191,179,0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,191,179,0.3); }
.btn-secondary { background: transparent; color: #fff !important; border: 1px solid #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-tertiary { background: var(--light-bg); color: var(--primary-blue) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-tertiary:hover { transform: translateY(-3px); color: var(--accent-teal) !important; }

.section-padding { padding: 5rem 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; color: var(--heading-color); }
.section-subtitle { text-align: center; color: var(--light-subtle-text); margin-bottom: 3rem; }

/* ======== FOOTER ======== */
.main-footer { background: #0f141e; color: #e8e8e8; padding: 4rem 0 1rem; border-top: 1px solid #1f293a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--accent-gold); margin-bottom: 1.5rem; }
.footer-col ul a { color: #b0bec5; }
.footer-col ul a:hover { color: var(--accent-teal); }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { color: #fff; opacity: 0.7; }
.contact-info { color: #b0bec5; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid #1f293a; padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: #7a8b9a; }
.footer-legal-links a { color: #7a8b9a; margin-left: 1.5rem; }
.footer-logo-img { height: 50px; width: auto; background: rgba(255,255,255,0.05); padding: 6px; border-radius: 8px; vertical-align: middle; }
.site-title-footer { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--accent-gold); letter-spacing: 1px; margin-left: 10px; vertical-align: middle; text-transform: uppercase; }

/* ======== DARK MODE OVERRIDES ======== */
body.dark-mode {
    --text-color: var(--dark-text); --heading-color: var(--dark-heading);
    --card-bg: var(--dark-card-bg); --light-bg: var(--dark-bg);
    --border-color: var(--dark-border); --header-shadow: rgba(0,0,0,0.3);
    --light-subtle-text: var(--dark-subtle-text);
}

/* ======== FLOATING WIDGETS ======== */
.floating-whatsapp { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background-color: #25D366; color: #FFF; border-radius: 50%; text-align: center; line-height: 60px; font-size: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; transition: transform 0.3s ease; }
.floating-whatsapp:hover { transform: scale(1.1); }
.back-to-top { position: fixed; bottom: 95px; right: 32px; width: 46px; height: 46px; background: var(--accent-teal); color: #fff; border-radius: 50%; text-align: center; line-height: 46px; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 998; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.back-to-top.show { opacity: 0.6; visibility: visible; transform: translateY(0); }
.back-to-top.show:hover { opacity: 1; transform: translateY(-3px); background: var(--primary-blue); }

@media (max-width: 768px) {
    .back-to-top { display: none !important; }
    .floating-whatsapp { width: 55px; height: 55px; line-height: 55px; font-size: 1.8rem; bottom: 20px; right: 20px; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #0f141e; flex-direction: column; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-nav.active { display: flex; }
    .main-nav a { display: block; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .menu-toggle { display: block; }
    .btn-contact { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* =========================================
   GLOBAL MODAL STYLES (Added here for Home & Contact)
   ========================================= */
.modal {
    position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; opacity: 0; transition: opacity 0.3s ease-in-out;
}
.modal.visible { opacity: 1; }

.modal-content {
    background-color: #121822; 
    background-image: radial-gradient(circle at top right, rgba(0, 191, 179, 0.1), transparent 40%);
    margin: 5% auto; padding: 2.5rem;
    border: 1px solid #333d4f; border-radius: 16px;
    width: 90%; max-width: 450px; position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(-30px); transition: transform 0.3s ease-out;
    color: #fff; text-align: center;
}
.modal.visible .modal-content { transform: translateY(0); }

.modal-close {
    color: #b0bec5; position: absolute; top: 15px; right: 20px;
    font-size: 1.5rem; border: none; background: none; cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: #fff; }

.modal-loading-content, .modal-success-content { display: none; }
.modal-content.is-loading .modal-loading-content { display: block; }
.modal-content.is-success .modal-success-content { display: block; }

.modal-logo-spinner { width: 60px; height: 60px; margin-bottom: 1.5rem; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }

/* Digital Ticket */
.digital-ticket {
    background: rgba(255,255,255,0.05); border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px; padding: 20px; margin: 25px 0; text-align: center;
}
.ticket-header { 
    display: flex; justify-content: center; align-items: center; gap: 10px;
    margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;
}
.ticket-status { 
    font-size: 0.75rem; background: rgba(46, 204, 113, 0.2); color: #2ecc71; 
    padding: 4px 10px; border-radius: 4px; font-weight: bold; letter-spacing: 1px;
}
.ticket-label { font-size: 0.8rem; color: #888; letter-spacing: 2px; display: block; margin-bottom: 5px; }
.ticket-id { font-family: monospace; font-size: 1.8rem; color: #00BFB3; font-weight: 700; letter-spacing: 2px; }

/* Pulse Button */
.btn-pulse {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px; border-radius: 8px; text-decoration: none;
    background: #25D366; color: white; font-weight: bold; font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); 
    animation: gentlePulse 2s infinite; transition: transform 0.2s;
}
.btn-pulse:hover { transform: scale(1.02); }
@keyframes gentlePulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Form Elements (For Modals) */
.qualibolt-form label { color: #cfd8dc; font-size: 0.85rem; margin-bottom: 6px; display: block; font-weight: 500; text-align: left; }
.qualibolt-form .form-control {
    background: rgba(255,255,255,0.05); border: 1px solid #444; color: #fff;
    padding: 10px 12px; width: 100%; border-radius: 6px; margin-bottom: 15px;
    font-family: inherit; font-size: 0.95rem; transition: border-color 0.3s ease;
}
.qualibolt-form .form-control:focus { border-color: #00BFB3; outline: none; background: rgba(255,255,255,0.08); }
.qualibolt-form select.form-control option { background-color: #ffffff; color: #333333; padding: 10px; }
.form-privacy-note { font-size: 0.8rem; color: #78909c; text-align: center; margin-top: 15px; }
.form-error-banner {
    background-color: rgba(231, 76, 60, 0.15); border: 1px solid #e74c3c; color: #ff8a80;
    padding: 10px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 15px; display: none;
}
