/* ~ CSS Comment code  */
/* *======== Sections =========== */
/* ? ------- Sub-sections -------- */
/* & ++++++++ more details ++++++++ */
/* !!!!!! Handle with care !!!!!!! */
/* ^^^^^^^ Optional Section ^^^^^^^ */
/* ----------- explanation --------- */


/* *========= Declaring Vars ======== */
:root {
    /* Base Colors */
    --primary_color: #028b3c;
    --secondary_dark: #01421e;
    --primary_light: #5acf94;
    --primary_soft: #def3e7;

    /* Accent Colors */
    --accent_color: #c3fddd;
    --hover_color: #03944b;

    /* Neutrals */
    --white_color: #F6FFFA;
    --black_color: #1F1F1F;
    --neutral_gray: #a5abb6;

    /* Status Colors (based on green theme) */
    --success-color: #16A34A;
    --danger-color: #D32F2F;
    --warning-color: #F59E0B;

    /* &--- Border Radius -----*/
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* &Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* &Font Weights */
    --font-light: 300;
    --font-regular: 500;
    --font-bold: 700;

    /* &Font Sizes */
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;

    /* &Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;

    /* &Transitions */
    --transition: all 0.3s ease-in-out;
}

/* *======== Global Reset & Base Styles =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scroll-margin-top: 80px;
}

*::selection {
    background-color: var(--warning-color);
    color: var(--primary_color);
}

/* ^^^^^^^^^ Optional Scrollbar Styling ^^^^^^ */
/* 
*::-webkit-scrollbar {
    width: 10px;
    background-color: var(--primary_color);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--black_color);
    border-radius: 50px;
}

*::-webkit-scrollbar-button {
    background-color: var(--accent_color);
} 
*/

/* ~Animation AOS */
.only-fade {
    transform: none !important;
        /* Removes the upward motion */
}

.hover-shake:hover {
    animation: headShake 1s;
}

/* ^^^^^^^^^^ End Optional Scrollbar Styling ^^^^^^^^^ */

body,
html {
    height: 100%;
    margin: auto;
    text-wrap: pretty;
    background-color: var(--white_color);
    scroll-behavior: smooth;
    max-width: 1400px;
}
body {
    overflow-x: hidden;
}

/* *======== Typography =========== */
/* & ++++++++ Base Typography Elements ++++++++ */
a {
    text-decoration: none;
    color: var(--black_color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary_color);
}

h1 {
    font-size: 2rem;
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

h2 {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    text-transform: capitalize;
}

h3 {
    font-size: 1rem;
    font-weight: var(--font-regular);
}

h4,
h5,
h6 {
    font-weight: var(--font-regular);
    text-transform: capitalize;
}

p {
    font-size: var(--font-md);
    line-height: 1.6;
}

/* & ++++++++ Section Heading Divider Style ++++++++ */
.legend {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--black_color);
    font-weight: var(--font-bold);
    text-align: center;
}

.legend::before,
.legend::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: var(--black_color);
}

.legend::before {
    margin-right: var(--space-md);
}

.legend::after {
    margin-left: var(--space-md);
}

/* *======== Animations =========== */
@keyframes pulseFade {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
}

@keyframes highlight {
    0% {
        background-color: var(--white_color);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* *======== Components =========== */
/* ? ------- Buttons -------- */
.button {
    cursor: pointer;
    z-index: 0;
    background-color: var(--primary_color);
    color: var(--white_color);
    font-weight: var(--font-regular);
    border-radius: var(--radius-md);
    outline: none;
    border: none;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}


.button:hover {
    color: var(--primary_color);
    background-color: var(--accent_color);
    box-shadow: var(--shadow-sm);
}

/* & ++++++++ Button Variations ++++++++ */
.button2 {
    background-color: var(--white_color);
    color: var(--primary_color);
}

.button2:hover {
    background-color: var(--accent_color);
}


.button3:hover {
    background-color: var(--white_color);
}


/* ? ------- Info Alerts -------- */
.info {
    border-left: 5px solid var(--success-color);
    background-color: var(--accent_color);
    border-radius: 0 !important;
    text-align: left;
}

.info-red {
    background-color: rgb(245, 181, 181) !important;
    border-left: 5px solid var(--danger-color) !important;
}

/* ^^^^^^^ pre loader section ^^^^^^ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent_color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #007A33;
    /* Primary brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* *======== Navigation =========== */
/* ? ------- Navbar Base -------- */
.custom-navbar {
    background: var(--primary_color);
    box-shadow: var(--shadow-md);
    font-weight: normal;
    padding: 0.5rem 1rem;
    max-width: 1400px;
    margin: auto;
}

/* & ++++++++ Brand Styling ++++++++ */
.brand-name {
    color: var(--white_color);
    font-weight: var(--font-bold);
    font-size: var(--font-xl);
}

/* & ++++++++ Nav Links ++++++++ */
.nav-link {
    color: var(--white_color);
    font-weight: var(--font-regular);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--accent_color);
}

.nav-link:active {
    color: var(--primary_light) !important;
}

/* & ++++++++ Underline Animation ++++++++ */
.nav-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent_color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom center;
}

/* & ++++++++ Dropdown Menu ++++++++ */
.dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid var(--accent_color);
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    font-weight: normal;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--accent_color);
    color: var(--black_color);
    padding-left: 1.3rem;
}

/* & ++++++++ Toggler Customization ++++++++ */
.custom-toggler {
    border: 1px solid var(--white_color);
    border-radius: var(--radius-sm);
    color: var(--white_color);
    padding: 0.25rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23f6fffa' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* & ++++++++ Close Button ++++++++ */
.custom-close {
    filter: invert(96%) sepia(12%) saturate(397%) hue-rotate(85deg) brightness(108%) contrast(98%);
}

/* & ++++++++ Offcanvas Styling ++++++++ */
.custom-offcanvas {
    background-color: var(--primary_color);
    border-left: 3px solid var(--white_color);
}

/* & ++++++++ Dropdown Toggle Icon ++++++++ */
.dropdown-toggle::after {
    content: "\f0d7";
    /* Font Awesome down arrow */
    transition: all 0.2s ease;
}

.dropdown-toggle:hover::after,
.dropdown-toggle[aria-expanded="true"]::after {
    content: "\f0de";
    /* Font Awesome up arrow */
    color: var(--accent_color);
}

/* & ++++++++ Icons in Nav Links ++++++++ */
.nav-link i {
    color: var(--white_color);
    transition: var(--transition);
}

.nav-link:hover i {
    color: var(--accent_color);
}

.nav-link i::after {
    display: none !important;
}

/* *======== Hero Section for other pages =========== */
.hero-section {
    background-image: url("./media/herobg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    height: 100%;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    text-align: center;
    color: var(--white_color);
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.6) 10%,
            transparent 100%);
    padding: 2rem;
    justify-content: center;
    align-items: end;
}

.hero-text {
    padding-bottom: 20px;
    color: var(--white_color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: var(--font-bold);
}

.hero-text p {
    font-size: var(--font-xl);
}

/* *======== Option Section =========== */
/* ? ------- Social Links -------- */
.option {
    height: max-content;
}

.option_items {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
}

.option_link {
    text-decoration: none;
    color: var(--primary_color);
    padding: 10px;
    width: 100%;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.option_link:hover {
    background-color: var(--primary_color);
    color: var(--accent_color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.option_link i {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.option_link p {
    font-size: var(--font-md);
    margin-bottom: 0;
}

/* *======== Footer =========== */
footer {
    background:
        linear-gradient(20deg, rgba(1, 71, 1, 0.37) 0%, var(--primary_color) 50%),
        linear-gradient(135deg, #0000 20.5%, #007a33 0 29.5%, #0000 0) 0 50px,
        linear-gradient(45deg, #0000 8%, #007a33 0 17%, #0000 0 58%) 100px 0,
        linear-gradient(135deg, #0000 8%, #007a33 0 17%, #0000 0 58%, #007a33 0 67%, #0000 0),
        linear-gradient(45deg, #0000 8%, #007a33 0 17%, #0000 0 58%, #007a33 0 67%, #0000 0 83%, #007a33 0 92%, #0000 0),
        var(--accent_color);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--black_color);
}

.footer_wrapper {
    width: 100%;
    padding: 0 20px;
}

/* ? ------- Newsletter Section -------- */
.footer-newsletter {
    flex: 1 1 200px;
    margin-bottom: 30px;
}

.footer-brand-name {
    font-size: larger;
}

.footer-tagline {
    color: var(--white_color);
    margin-bottom: 10px;
}

.newsletter-form .form-group {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    margin-bottom: 15px;
    margin-top: 10px;
}

.newsletter-form input {
    width: 100%;
    background: var(--white_color);
    border: none;
    padding: 15px 25px;
    font-size: var(--font-md);
    color: var(--primary_color);
    outline: none;
}

.newsletter-form input::placeholder {
    color: #adb5bd;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(to right, var(--white_color) 0%, var(--primary_color) 100%);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white_color);
    font-size: var(--font-md);
}

.newsletter-form button:hover {
    width: 80px;
}

.newsletter-info {
    display: flex;
    gap: 8px;
    color: #adb5bd;
    font-size: 12px;
    align-items: flex-start;
    margin: -10px 0 20px 0;
}

/* ? ------- Footer Contact -------- */
.footer-contact {
    color: #adb5bd;
}

.footer-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-sm);
}

.footer-contact i {
    color: var(--accent_color);
}


/* ? ------- Footer Links -------- */
.footer_link {
    color: var(--white_color) !important;
    transition: var(--transition);
    line-height: 30px;
}

.footer_link:hover {
    color: var(--accent_color) !important;
    padding-left: 5px;
}

.text-uppercase {
    text-transform: uppercase;
    font-weight: var(--font-bold);
    color: var(--accent_color);
    margin-bottom: 15px;
}

/* *======== Media Queries =========== */
/* ? ------- Large Screen Hover Effects -------- */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

/* ? ------- Mobile Optimizations -------- */
@media (max-width: 991.98px) {

    /* & ++++++++ Offcanvas Width ++++++++ */
    .custom-offcanvas {
        width: 500px !important;
        max-width: 85vw;
    }
}

@media (max-width: 900px) {

    /* & ++++++++ Typography Adjustments ++++++++ */
    h1 {
        font-size: var(--font-xl);
        font-weight: var(--font-bold);
        text-transform: uppercase;
    }

    h2 {
        font-size: var(--font-lg);
        font-weight: var(--font-bold);
        text-transform: capitalize;
    }

    h3 {
        font-size: var(--font-md);
        font-weight: var(--font-regular);
    }

    /* & ++++++++ Hero Text Adjustments ++++++++ */
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: var(--font-md);
    }

    /* & ++++++++ Navigation Mobile Adjustments ++++++++ */
    .nav-link {
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .btn-custom {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-link i+ ::after {
        display: none !important;
    }
}