/* */
:root {
    --navy-dark: #1a2332;
    --navy-darker: #0f1621;
    --red-primary: #dc3545;
    --red-dark: #bb2d3b;
    --gray-light: #f8f9fa;
    --text-muted: #6c757d;
}

/* --- CUSTOM SCROLLBAR (Browser Default) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: var(--red-primary);
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--red-dark);
}

html {
    scrollbar-color: var(--red-primary) #f1f1f1;
    scrollbar-width: thin;
}

/* --- GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
}

/* FIX: Force hidden overflow to prevent double scrollbars */
body.overlay-open, body.lightbox-open {
    overflow: hidden !important;
}

.ls-2 {
    letter-spacing: 2px;
}

.bg-navy {
    background-color: var(--navy-dark) !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- NAVBAR STYLES --- */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--red-primary) !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--navy-dark);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* UPDATE: This now uses your new amazing AI background if you paste the URL here ../img/pexels-photo-1249611.jpg*/
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.25) 0%, rgba(15, 22, 33, 0.9) 100%),
                url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.85);
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- TRUST BADGES --- */
.trust-badges {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    z-index: 3;
}

.badge-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.badge-card i {
    font-size: 2.5rem;
    color: var(--red-primary);
    flex-shrink: 0;
}

.badge-card h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.badge-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- SERVICES --- */
.services-section {
    background-color: var(--gray-light);
    margin-top: 100px;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card-img {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.service-card-overlay i {
    font-size: 4rem;
    color: white;
}

.service-card-body {
    padding: 2rem;
}

.service-card-body h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

.service-card-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--red-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 1rem;
}

/* --- GALLERY --- */
.gallery-section {
    background: white;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--red-primary);
}

/* --- WHY US --- */
.why-us-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-darker) 100%);
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
    pointer-events: none;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    color: white;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.why-list i {
    color: var(--red-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* --- CTA & FOOTER --- */
.cta-section {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    padding: 100px 0;
}

.footer {
    background-color: var(--navy-darker);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--red-primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

.social-links a {
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

/* --- OVERLAY STYLES --- */
#overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    animation: overlayFadeIn 0.3s ease;
    
    /* INVISIBLE SCROLLBAR - FIREFOX */
    scrollbar-width: none;
    
    /* INVISIBLE SCROLLBAR - IE/EDGE */
    -ms-overflow-style: none;
}

/* INVISIBLE SCROLLBAR - CHROME/SAFARI */
#overlay-container::-webkit-scrollbar {
    display: none;
}

#overlay-container.active {
    display: block;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-content {
    background: white;
    min-height: 100vh;
    animation: overlaySlideIn 0.4s ease;
    position: relative;
}

@keyframes overlaySlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.overlay-header {
    position: sticky;
    top: 0;
    background: var(--navy-dark);
    padding: 1.5rem 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.overlay-close {
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    padding: 0;
}

.overlay-close:hover {
    background: white;
    color: var(--navy-dark);
    transform: rotate(90deg);
}

.overlay-body {
    padding: 4rem 0;
}

/* --- FORM ELEMENTS --- */
.form-label {
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2.5rem;
}

.btn-danger {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
}

.btn-danger:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--navy-dark);
}

.btn-dark {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
}

.btn-dark:hover {
    background-color: var(--navy-darker);
    border-color: var(--navy-darker);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 50, 0.3);
}

.form-check-input:checked {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* =========================================
   MOBILE RESPONSIVENESS (Combined)
   ========================================= */

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
        flex-direction: column !important;
        text-align: center !important;
        overflow: hidden; /* Only clip overflow on mobile */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .trust-badges {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-top: 40px;
        transform: none !important;
        padding: 0 15px;
    }

    .trust-badges .row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .trust-badges .col-md-3,
    .trust-badges .col-sm-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .badge-card {
        width: 100%;
        margin-bottom: 0;
        flex-direction: row; 
        justify-content: flex-start;
        text-align: left;
    }

    .services-section, 
    .gallery-section, 
    .why-us-section, 
    .cta-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .services-section {
        margin-top: 0;
    }

    .col-md-3, .col-md-6, .col-lg-4, .col-sm-6 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* --- WELCOME SPLASH SCREEN --- */
.welcome-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 22, 33, 0.8), rgba(15, 22, 33, 0.8)), 
                url('../img/pexels-photo-280222.jpg');
    background-size: cover;
    background-position: center;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.splash-content { max-width: 850px; padding: 2rem; animation: splashFadeUp 0.8s ease-out; }
@keyframes splashFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.welcome-splash .btn-close { position: absolute; top: 30px; right: 30px; padding: 1rem; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 991px) {
    .hero-section { padding: 120px 0 60px; text-align: center; }
    .trust-badges { position: relative !important; bottom: auto; margin-top: 40px; padding: 0 15px; }
}