/* Simplified Modern Landing Page */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    margin: 0;
    padding: 0;
}

.navbar {
    padding: 20px 0;
    background-color: transparent !important;
    transition: all 0.3s ease;
    width: 100vw;
    left: 0;
}

.navbar.scrolled {
    background-color: var(--dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.navbar-brand {
    margin-left: 1rem;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar-nav {
    align-items: center;
    margin-right: 1rem;
}

.nav-item {
    margin: 0 0.3rem;
}

.nav-link {
    font-weight: 500;
    color: var(--light) !important;
    padding: 8px 15px !important;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #e63946 !important;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background-color: #e63946;
}

.btn-outline-light {
    border-color: var(--light);
    color: var(--light);
}

.btn-outline-light:hover {
    background-color: #f8f9fa;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
    }

    .nav-item {
        margin: 5px 0;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 8px 0 !important;
    }
}

/* Button Styles */
.btn-outline-danger {
    border-color: #e63946;
    color: #e63946;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #e63946;
    color: white;
}

.btn-danger {
    background-color: #e63946;
    border-color: #e63946;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c1121f;
    border-color: #c1121f;
}

/* Mobile Menu Styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url("/assets/images/index/guard1.jpg") no-repeat center center;
    background-size: cover;
    color: white;
    text-align: left;

    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Button styles */
.hero-section .btn-primary {
    background-color: #e63946;
    border-color: #e63946;
    padding: 12px 30px;
    font-weight: 600;
}

.hero-section .btn-outline-light {
    border-color: white;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
}

.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.services-section {
    padding: 80px 0;
    background: white;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.about-section {
    padding: 80px 0;
    background: var(--light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.stats-section {
    padding: 60px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    padding: 20px;
}

.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer a {
    text-decoration: none;
    color: white;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 30px;
    justify-content: space-between;
}

.footer .row {
    padding-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    color: #f8f9fa;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        margin: 5px 0;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .d-flex {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .service-card,
    .contact-card {
        min-width: 100%;
    }

    .navbar-nav {
        margin-top: 15px;
    }
}

/* Fullscreen overlay */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent dark */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hidden state */
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loader inner content */
.loader-content {
    text-align: center;
}

/* Spinner animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #dc3545; /* NSCDC red */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Loading text */
.loader-text {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
