/* ================= VARIABLES & RESET ================= */
:root {
    --primary-color: #0f2b5c; /* Deep Royal Navy */
    --accent-color: #ffc107; /* Golden Yellow */
    --dark-bg: #111111;
    --light-bg: #f4f7f6;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* ================= UTILS ================= */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.section-padding { padding: 80px 0; }
.ls-2 { letter-spacing: 2px; }
.fs-7 { font-size: 0.75rem; }

/* ================= NAVBAR ================= */
#mainNav {
    padding-top: 20px;
    padding-bottom: 20px;
    transition: all 0.4s ease;
}

/* State when scrolled (added via JS) */
#mainNav.navbar-scrolled {
    background-color: var(--light-bg);
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 27, 1, 0.85) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    border-top: 4px solid var(--accent-color);
    background: #fff;
}
.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* ================= HERO ================= */
.hero-section {
    height: 100vh; /* Full Viewport Height */
    width: 100%;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 43, 92, 0.9), rgba(15, 43, 92, 0.5));
    z-index: 1;
}

/* ================= BUTTONS ================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: 0.3s;
}
.btn-primary:hover {
    background-color: #091d40;
}
.btn-glow:hover {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    transform: translateY(-2px);
}

/* ================= SERVICE CARDS ================= */
.service-card {
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}

/* ================= FOOTER ================= */
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: rotate(360deg);
}

/* ================= ANIMATIONS (Scroll Reveal) ================= */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Classes controlled by JS for Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}
.scroll-reveal.up { transform: translateY(50px); }
.scroll-reveal.left { transform: translateX(-50px); }
.scroll-reveal.right { transform: translateX(50px); }

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-section .row .col-lg-8 {
        margin: 0 auto;
    }
    .hero-section p {
        border-left: none !important;
        border-bottom: 4px solid #ffc107;
        padding-bottom: 15px;
        padding-left: 0 !important;
    }
    .hero-section .d-flex {
        justify-content: center;
    }
    #mainNav {
        background-color: var(--primary-color); /* Always dark on mobile */
    }
}

/* ================== ABOUT PAGE STYLES ================== */

/* Page Header */
.page-header {
    margin-top: -80px; /* Pulls header behind transparent navbar */
    padding-top: 80px;
}

/* Experience Badge */
.experience-badge {
    min-width: 160px;
    text-align: center;
    border: 4px solid #fff;
}

/* Mission/Vision Tabs */
.nav-pills .nav-link {
    color: var(--primary-color);
    background-color: #e9ecef;
    margin-right: 10px;
    padding: 10px 25px;
    transition: 0.3s;
}
.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}
.nav-pills .nav-link:hover:not(.active) {
    background-color: #dde0e3;
}

/* Hover Lift Effect for Feature Cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Mobile Tweaks for About Page */
@media (max-width: 991px) {
    .experience-badge {
        position: relative !important;
        transform: none !important;
        margin: -20px auto 20px auto !important; /* Center and pull up */
        width: fit-content;
        left: 0 !important;
        border: none;
    }
}

/* ================== CONTACT PAGE STYLES ================== */

/* Contact Info Box */
.contact-box .icon-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Form Styles */
.form-control, .form-select {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 43, 92, 0.1);
}

/* Map adjustment */
iframe {
    filter: grayscale(10%); /* Slight desaturation for premium feel */
}

/* ================== SECURITY & GALLERY STYLES ================== */

/* Unique Icon Badge Style */
.unique-icon-box {
    padding: 20px;
    position: relative;
    z-index: 1;
}
.unique-icon-box .icon-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-color: var(--primary-color);
    border: 3px solid var(--accent-color); /* Gold Border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4); /* Glowing Gold effect */
    transition: all 0.3s ease;
}
.unique-icon-box:hover .icon-badge {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: rotate(360deg);
}

/* Gallery Hover Overlay */
.gallery-item {
    cursor: pointer;
    height: 250px; /* Fixed height for uniformity */
}
.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 43, 92, 0.85); /* Blue Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.1); /* Zoom in effect */
}

/* Accordion Customization */
.accordion-button {
    background-color: #fff;
    color: var(--primary-color);
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #e9ecef;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ================== ASSOCIATES PAGE STYLES ================== */

/* Custom Tabs (Toggle Style) */
.custom-tabs .nav-link {
    color: var(--primary-color);
    background-color: transparent;
    padding: 12px 20px;
    border-radius: 50px; /* Fully rounded pill */
    transition: all 0.3s ease;
}

.custom-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(15, 43, 92, 0.4);
    transform: scale(1.05); /* Slight zoom on active */
}

.custom-tabs .nav-link:hover:not(.active) {
    background-color: #f0f0f0;
}

/* Accordion Styling (Specific for this page) */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(15, 43, 92, 0.05); /* Very light blue tint */
}

/* ================== TRAVELS PAGE STYLES ================== */

/* Fleet Card */
.fleet-card {
    transition: all 0.3s ease;
    background: #fff;
}
.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--accent-color) !important;
}

/* Custom Table Styles */
.custom-table th {
    vertical-align: middle;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 15px;
}
.custom-table td {
    vertical-align: middle;
    font-size: 0.95rem;
    padding: 12px;
}
.custom-table tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.1) !important; /* Light Gold Hover */
}

/* Specific color tweaks for table elements */
.table-dark {
    background-color: #212529;
    color: #fff;
}
.bg-secondary {
    background-color: #6c757d !important;
}

/* Mobile Scroll Hint for Tables */
@media (max-width: 768px) {
    .table-responsive {
        border-right: 1px solid #eee;
    }
    /* Add a subtle shadow to indicate scrollable area */
    .table-responsive::-webkit-scrollbar {
        height: 4px;
    }
    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

/* ================== FOOTER COLOR OVERRIDES ================== */

/* Force all text inside footer to be white */
footer {
    color: #ffffff !important;
}

/* Make muted text (like descriptions) slightly transparent white */
footer .text-muted, 
footer .text-secondary,
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Make headers and icons pure white */
footer h4, footer h5, footer h6, footer i {
    color: #ffffff !important;
}

/* Links in footer */
footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}
footer a:hover {
    color: var(--accent-color) !important; /* Gold on hover */
    padding-left: 5px;
}

/* COPYRIGHT LINE - Pure White */
footer .bg-black p {
    color: #ffffff !important;
    opacity: 1 !important;
}


/* ================== FLOATING WHATSAPP BUTTON ================== */
.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 30px;
    left: 30px; /* Left side positioning */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1); /* Grow slightly on hover */
}