:root {
    --primary-color: #064789;
    --secondary-color: #427AA1;
    --accent-color: #FF6F00;
    --light-bg: #EBF2FA;
    --dark-text: #2C3E50;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.bg-light-custom {
    background-color: var(--light-bg);
}

/* --- Buttons --- */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #e65100;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
}

.top-bar i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* --- Navbar --- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--white);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.nav-link {
    color: var(--dark-text);
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-slider .carousel-item {
    height: 80vh;
    min-height: 500px;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 71, 137, 0.4);
    /* Blue tint */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* --- Section Generals --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* --- About Us --- */
.about-img-container {
    position: relative;
    padding: 20px;
}

.about-img-container img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--accent-color);
    border-left: 5px solid var(--accent-color);
    z-index: -1;
}

/* --- Before/After Gallery --- */
.comparison-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.image-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Initial split */
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    /* fallback */
    border-right: 3px solid var(--white);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.image-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.image-label {
    position: absolute;
    top: 20px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 3;
    pointer-events: none;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}


.handle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    cursor: grab;
    pointer-events: none;
    /* Let clicks pass to the container handler */
}

/* --- FAQ Accordion --- */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    color: var(--white);
    background-color: var(--secondary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

/* --- Testimonials --- */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.client-info h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.client-info small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.rating {
    color: #f1c40f;
    margin-bottom: 15px;
}

/* --- Contact & Footer --- */
.contact-info-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

footer {
    background-color: #1a252f;
    color: #bdc3c7;
    padding: 60px 0 20px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 20px;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .testimonial-card {
        margin: 0 10px;
        /* Spacing for mobile carousel */
    }
}