:root {
    --primary-dark: #00204b;
    --primary-blue: #1a3c6e;
    --accent-red: #d31f28;
    --light-gray: #f5f5f5;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* --- Navbar --- */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.navbar-toggler {
    border: none;
    padding: 0;
    margin-right: auto;
    order: -1;
}

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

.nav-link {
    color: var(--primary-dark) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

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

.navbar-collapse {
    justify-content: center;
}

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

    .navbar-nav {
        align-items: flex-start;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }

    .nav-item.auth-buttons {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 2px solid var(--primary-dark);
    }
}

.btn-nav-login {
    background-color: #0056b3;
    color: white;
    border-radius: 0;
    font-size: 0.8rem;
    padding: 6px 18px;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-nav-login:hover {
    background-color: #004494;
}

.btn-nav-signup {
    background-color: #222;
    color: white;
    border-radius: 0;
    font-size: 0.8rem;
    padding: 6px 18px;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-nav-signup:hover {
    background-color: #111;
}

/* --- Hero Section --- */
.hero-section {
    background-color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-blue-block {
    position: absolute;
    top: 0;
    left: -100px;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #2b6ebf, #1a3c6e);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 80% 100%, -20% 100%);
}

.hero-content {
    opacity: 0;
    animation: fadeInRight 1s ease 0.3s forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    color: var(--primary-dark);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.red-line {
    width: 40px;
    height: 3px;
    background-color: var(--accent-red);
    margin-bottom: 20px;
}

.red-line-center {
    width: 40px;
    height: 3px;
    background-color: var(--accent-red);
    margin: 15px auto;
}

/* --- Services --- */
.services-row {
    padding: 60px 0;
}

.service-box {
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-title {
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-learn {
    background-color: var(--accent-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 20px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
}

.btn-learn:hover {
    background-color: #b01a22;
    transform: translateY(-2px);
}

.who-we-are-center {
    background-color: #f4f4f4;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.who-we-are-center.animate {
    opacity: 1;
    transform: translateY(0);
}

.who-text {
    font-size: 0.85rem;
    color: var(--primary-blue);
    line-height: 1.6;
}

/* --- Federal Banner --- */
.federal-banner {
    background-color: var(--primary-dark);
    color: white;
    padding: 50px 0;
}

.federal-text-left {
    text-align: right;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 30px;
}

.federal-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.federal-text-right {
    padding-left: 30px;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Split Sections --- */
.split-section {
    position: relative;
}

.split-image {
    height: 450px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.clip-diagonal-left {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.clip-diagonal-right {
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

.split-content {
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* --- Stats Section --- */
.stats-section {
    padding: 40px 0;
    background-color: #f8f8f8;
}

.stat-box {
    text-align: center;
    padding: 30px 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.stat-box.animate {
    opacity: 1;
    transform: scale(1);
}

.stat-box-blue {
    background-color: var(--primary-dark);
    color: white;
}

.stat-box-white {
    background-color: white;
    color: var(--primary-dark);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- Brands --- */
.brands-section {
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #555;
    display: inline-flex;
    align-items: center;
    margin: 0 20px;
    opacity: 0;
    transition: all 0.5s ease;
}

.brand-logo.animate {
    opacity: 1;
}

.brand-orange { color: #e04e1c; }
.brand-black { color: #000; }

/* --- Reviews --- */
.reviews-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.review-card {
    background-color: #2b6cb0;
    color: white;
    padding: 25px;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.review-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.review-name {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

.about-us-section {
    background-color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.service-section {
    background-color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

/* --- Contact --- */
.contact-section {
    padding: 60px 0;
}

.login-section {
    background-color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.register-section {
    background-color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.contact-info h3 {
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-phone {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin: 15px 0;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    line-height: 30px;
    margin-right: 5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a.whatsapp { background-color: #25D366; }

.chat-form-box {
    background-color: var(--primary-dark);
    padding: 40px;
    border: 2px solid white;
}

.form-title {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: white;
    margin: 10px auto 0;
}

.chat-form-box .form-control {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 0;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.chat-form-box .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    box-shadow: none;
}

.chat-form-box label {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-image-wrapper {
        display: block;
    }
    .federal-text-left {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .federal-text-right {
        padding-left: 0;
        text-align: center;
    }
}

/* --- Page Loader Styles --- */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-content {
    text-align: center;
    padding: 40px;
}

/* Animated Text Fill Effect */
.loader-logo {
    margin-bottom: 30px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    /* Base: Blue outline, transparent fill */
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-dark);
    display: inline-block;
    /* Animation setup */
    background: linear-gradient(to right, var(--primary-dark), var(--primary-dark));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textFill 2s ease-in-out forwards;
}

@keyframes textFill {
    0% {
        background-size: 0% 100%;
        -webkit-text-stroke: 2px var(--primary-dark);
    }
    50% {
        -webkit-text-stroke: 1px var(--primary-dark);
    }
    100% {
        background-size: 100% 100%;
        -webkit-text-stroke: 0px var(--primary-dark);
    }
}

/* Pulsing Underline */
.logo-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 15px auto 0;
    border-radius: 2px;
    animation: pulseLine 1.5s infinite ease-in-out;
}

@keyframes pulseLine {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(1.5); opacity: 0.7; }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background-color: #eee;
    margin: 0 auto 20px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    border-radius: 2px;
    animation: progressAnim 2s ease-in-out forwards;
}

@keyframes progressAnim {
    0% { width: 0%; }
    30% { width: 40%; }
    70% { width: 80%; }
    100% { width: 100%; }
}

.loader-tagline {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive Loader */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2.5rem;
        -webkit-text-stroke: 1.5px var(--primary-dark);
    }
    .loader-progress {
        width: 150px;
    }
}