/********** Template CSS **********/

/* =============== Globals ============== */
/* Defining the new color palette and global variables */
:root {
    --primary: #f2be22; /* Primary color (gold/yellow) */
    --secondary: #036fc6; /* Secondary color (dark blue) */
    --light: #FFFFFF; /* Light color (white) */
    --dark: #212121; /* Dark color for text and dark backgrounds */

    /* Additional colors for improved contrast and interactivity */
    --gray-light: #f8f9fa; /* Very light gray for clean backgrounds */
    --gray-medium: #6c757d; /* Medium gray for secondary text */
    --gray-dark: #343a40; /* Dark gray for primary text */

    /* Shadows */
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-base: 0.5s ease;

    /* Font sizes (for improved consistency) */
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;

    /* Square button dimensions */
    --btn-square-size: 38px;
    --btn-sm-square-size: 32px;
    --btn-lg-square-size: 48px;

    /* Scrollbar */
    --scrollbar-width: 10px;
    --scrollbar-thumb-color: var(--secondary);
    --scrollbar-track-color: #f1f1f1;
}

/* Base styles for all elements */
* {
    font-family: "Tajawal", "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary); /* Changes color on hover */
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    display: flex; /* Ensure spinner is centered */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light); /* White background to cover content during loading */
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Gradient Text & BG ***/
.text-primary-gradient {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
    color: transparent; /* Ensures it works in browsers without -webkit- support */
}

.text-secondary-gradient {
    background: linear-gradient(to bottom right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bg-primary-gradient {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
}

.bg-secondary-gradient {
    background: linear-gradient(to bottom right, var(--secondary), var(--primary));
}


/*** Button ***/
.btn {
    transition: var(--transition-base); /* Using transition variable */
    font-size: var(--font-size-base);
    padding: 10px 20px; /* Default padding */
    border-radius: 50px; /* Default rounded shape */
}

.btn.btn-primary-gradient,
.btn.btn-secondary-gradient {
    position: relative;
    overflow: hidden;
    border: none;
    color: var(--light); /* White text for good contrast on dark gradient */
    z-index: 1;
}

.btn.btn-primary-gradient::after,
.btn.btn-secondary-gradient::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition-base);
    z-index: -1;
    opacity: 0;
}

.btn.btn-primary-gradient {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
}
.btn.btn-secondary-gradient {
    background: linear-gradient(to bottom right, var(--secondary), var(--primary));
}

/* Regular Gradient Buttons Hover Effect */
.btn.btn-primary-gradient::after {
    background: linear-gradient(to bottom right, var(--secondary), var(--primary)); /* Reverse gradient on hover */
}
.btn.btn-secondary-gradient::after {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary)); /* Reverse gradient on hover */
}


.btn.btn-primary-gradient:hover::after,
.btn.btn-secondary-gradient:hover::after {
    opacity: 1;
}

/* Square Button Sizes */
.btn-square {
    width: var(--btn-square-size);
    height: var(--btn-square-size);
}

.btn-sm-square {
    width: var(--btn-sm-square-size);
    height: var(--btn-sm-square-size);
}

.btn-lg-square {
    width: var(--btn-lg-square-size);
    height: var(--btn-lg-square-size);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%; /* Fully circular */
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px; /* Adjusted position for consistency */
    bottom: 30px; /* Adjusted position */
    z-index: 99;
    border: none;
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    color: var(--light); /* White text */
    border-radius: 50%; /* Circular */
    width: var(--btn-square-size);
    height: var(--btn-square-size);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px var(--shadow-md); /* Light shadow */
}
.back-to-top:hover {
    box-shadow: 0 6px 12px var(--shadow-lg); /* Larger shadow on hover */
    transform: translateY(-2px); /* Slight lift */
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 45px 0;
    font-family: 'Tajawal', 'Poppins', sans-serif; /* Using specified fonts */
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--light) !important; /* Light text color on dark background */
    outline: none;
    transition: var(--transition-base);
}

.navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -10px; /* Triangle position */
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid;
    border-color: var(--light) transparent transparent transparent; /* Triangle color in light color */
    transition: var(--transition-base);
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important; /* Dark text color when navbar is sticky (white background) */
}

.navbar-light .navbar-nav .nav-link:hover::before,
.navbar-light .navbar-nav .nav-link.active::before {
    top: 0; /* Move triangle up on hover/active */
}

.navbar-light .navbar-brand h1 {
    color: var(--light); /* White color for brand logo by default */
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: var(--transition-base);
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

/* Navbar Responsiveness */
@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--light); /* White background for mobile */
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD; /* Separator line */
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important; /* Dark text on white background for mobile */
    }

    .navbar-light .navbar-nav .nav-link::before {
        display: none; /* Hide triangle on mobile */
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--primary) !important; /* Primary color on hover/active on mobile */
    }

    .navbar-light .navbar-brand h1 {
        background: linear-gradient(to bottom right, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: var(--light); /* White background when sticky */
        box-shadow: 0 2px 10px var(--shadow-sm); /* Light shadow for sticky */
    }

    .sticky-top.navbar-light .navbar-nav .nav-link::before {
        border-top-color: var(--primary); /* Triangle color changes to match white background */
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        background: linear-gradient(to bottom right, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-bottom: 6rem;
    padding: 16rem 0 0 0; /* Large top padding */
    background: url(../img/bg-circle.png) left 0px top 0px no-repeat,
                url(../img/bg-triangle.png) right 0px top 50% no-repeat,
                url(../img/bg-bottom.png) center bottom no-repeat,
                linear-gradient(to bottom right, var(--primary), var(--secondary)); /* Gradient background */
    background-size: auto, auto, 100%, auto; /* Adjust background sizes */
}

@media (max-width: 991.98px) {
    .hero-header {
        padding: 6rem 0 9rem 0; /* Reduced padding on small screens */
        background-size: auto, auto, 100%, auto; /* Ensure backgrounds still adapt */
    }
}


/*** Feature ***/
.feature-item {
    transition: var(--transition-base);
    box-shadow: 0 0 10px var(--shadow-sm); /* Adding a subtle default shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Inner padding */
    background: var(--light); /* White background */
}

.feature-item:hover {
    margin-top: -15px; /* Lift item */
    box-shadow: 0 .5rem 1.5rem var(--shadow-md); /* Larger shadow on hover */
}


/*** Pricing ***/
.pricing .nav {
    padding: 2px;
    background: var(--light); /* White background for nav */
    border-radius: 30px;
    box-shadow: 0 2px 8px var(--shadow-sm); /* Light shadow for nav */
    display: inline-flex; /* To fit content */
}

.pricing .nav-link {
    padding: 12px 30px;
    font-weight: 500;
    color: var(--dark); /* Dark text on light background */
    background: transparent; /* Transparent background by default */
    transition: var(--transition-base);
}

.pricing .nav-item:first-child .nav-link {
    border-radius: 30px 0 0 30px; /* Rounded corners for tabs */
}

.pricing .nav-item:last-child .nav-link {
    border-radius: 0 30px 30px 0;
}

.pricing .nav-link.active {
    color: var(--light); /* White text when active */
    background: linear-gradient(to bottom right, var(--primary), var(--secondary)); /* Gradient for active background */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Light shadow for active state */
}
.pricing .nav-link:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05); /* Transparent background on hover for non-active */
}


/*** Screenshot ***/
.screenshot-carousel {
    position: relative;
    width: 300px;
    height: 300px;
    padding: 15px;
    margin-right: 0px;
    display: flex; /* For horizontal and vertical centering of content */
    align-items: center;
    justify-content: center;
}

.screenshot-carousel::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/screenshot-frame.png) center center no-repeat;
    background-size: 300px 300px;
    z-index: 1;
}

.screenshot-carousel .owl-item img {
    position: relative;
    width: 100%; /* Make the image fit inside the container */
    height: 100%;
    object-fit: contain; /* Ensure the image is fully contained */
}

.screenshot-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screenshot-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    background: var(--gray-medium); /* Default gray color for dot */
    border-radius: 15px;
    transition: var(--transition-base);
}

.screenshot-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 5px;
    left: 5px;
    background: var(--light); /* White color for inner dot */
    border-radius: 5px;
}

.screenshot-carousel .owl-dot.active {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary)); /* Gradient for active state */
    box-shadow: 0 0 10px var(--dark); /* Dark shadow */
}
.screenshot-carousel .owl-dot:hover {
    opacity: 0.8; /* Slight opacity on hover */
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: var(--transition-base);
}

.testimonial-carousel .owl-item .testimonial-item {
    background: var(--light); /* White background for inactive item */
    padding: 30px; /* Padding */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px var(--shadow-sm); /* Light shadow */
    border: 1px solid rgba(0,0,0,0.05); /* Thin border */
    color: var(--gray-dark); /* Dark text */
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary)); /* Gradient for center item background */
    box-shadow: 0 5px 20px var(--shadow-md); /* Larger shadow */
    border-color: transparent; /* Remove border */
}

.testimonial-carousel .owl-item.center .testimonial-item h5,
.testimonial-carousel .owl-item.center .testimonial-item p {
    color: var(--light) !important; /* White text for center item */
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light); /* White text */
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    border-radius: 50%; /* Circular */
    font-size: var(--font-size-base);
    box-shadow: 0 4px 10px var(--shadow-md);
    transition: var(--transition-base);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: linear-gradient(to bottom right, var(--secondary), var(--primary)); /* Reverse gradient on hover */
    box-shadow: 0 6px 15px var(--shadow-lg); /* Larger shadow on hover */
    transform: translateY(-2px); /* Slight lift */
}


/*** Footer ***/
.footer {
    margin-top: 6rem;
    padding-top: 9rem;
    background:
        url(../img/bg-circle.png) left 0px bottom 0px no-repeat,
        url(../img/bg-triangle.png) right 0px top 50% no-repeat,
        url(../img/bg-top.png) center top no-repeat,
        linear-gradient(to bottom right, var(--primary), var(--secondary)); /* Background gradient */
    background-size: auto, auto, 100%, auto; /* Adjust background sizes */
    color: var(--light); /* White text in footer */
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: var(--btn-square-size);
    height: var(--btn-square-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 50%; /* Circular */
    transition: var(--transition-base);
}

.footer .btn.btn-social:hover {
    color: var(--primary); /* Changes to primary color on hover */
    background: var(--light); /* White background on hover */
    box-shadow: 0 2px 8px var(--shadow-md); /* Light shadow */
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light); /* White text */
    font-weight: normal;
    transition: var(--transition-base);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105"; /* Arrow icon */
    font-family: "Font Awesome 5 Free"; /* Font Awesome icon font name */
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px; /* Letter spacing effect on hover */
    box-shadow: none;
    color: var(--primary); /* Changes to primary color */
}

.footer .copyright {
    padding: 25px 0;
    font-size: var(--font-size-sm);
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light); /* White text for links */
    text-decoration: none;
}
.footer .copyright a:hover {
    color: var(--primary); /* Changes to primary color on hover */
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    color: var(--light); /* White text */
    text-decoration: none;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
.footer .footer-menu a:hover {
    color: var(--primary); /* Changes to primary color on hover */
}