
:root {
    --bg: #121212;
    --surface: #1c1c1c;
    --surface-2: #222;
    --text: #e8e8e8;
    --muted: #b0b3b8;
    --accent: #ff8c1a;
    --accent-strong: #ff9f40;
    --border: #2a2a2a;
    --ring: rgba(255, 140, 26, 0.35);
}

/* === Light Theme === */
[data-bs-theme="light"] {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-2: #f1f3f5;
    --text: #212529;
    --muted: #6c757d;
    --border: #dee2e6;
    --accent: #d97706;
    --accent-strong: #b45309;
    --ring: rgba(217, 119, 6, 0.25);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.gradient-background {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    color: var(--text);
}
.gradient-background .nav-link, 
.gradient-background .link-body-emphasis,
#footer .nav-link,
#footer .text-body-secondary {
    color: var(--muted) !important;
}
.gradient-background .nav-link:hover,
#footer .nav-link:hover {
    color: var(--accent) !important;
}
.gradient-background .nav-link.active {
    color: var(--text) !important;
    font-weight: 500;
}

.flip-card { perspective: 1000px; width: 100%; height: 100%; min-height: 320px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s; }
.flip-card:hover .flip-card-inner, .flip-card:focus .flip-card-inner, .flip-card:focus-within .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: .75rem; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem; }
.flip-card-front { background-color: var(--surface); }
.flip-card-back { background-color: var(--surface-2); transform: rotateY(180deg); text-align: left; align-items: flex-start; }
.card-icon { font-size: 3rem; }
.row.g-4 > [class*="col-"] { display: flex; }

.cont-button { background-color: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.cont-button:hover { background-color: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

.card { background-color: var(--surface); border: 1px solid var(--border); }
.card-header { background-color: var(--surface-2); border-bottom: 1px solid var(--border); }
.text-body-secondary { color: var(--muted) !important; }

/* Modal & Contact Link Styling */
.modal-content { background-color: var(--surface); border: 1px solid var(--border); color: var(--text); }
.modal-header, .modal-footer { border-color: var(--border); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.modal-body .list-group-item { background: transparent; color: var(--text); border-color: var(--border); }
.contact-link { color: var(--accent); }
.contact-link:hover { color: var(--accent-strong); }

/* Responsive Map Styling */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* NEW: WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* NEW: Theme-aware Logo */
.theme-logo .logo-light {
    display: none;
}
.theme-logo .logo-dark {
    display: block;
}
[data-bs-theme="light"] .theme-logo .logo-light {
    display: block;
}
[data-bs-theme="light"] .theme-logo .logo-dark {
    display: none;
}