/*----------------------------------------------------------
    1.  Global Styles & Variables
------------------------------------------------------------
*/
body, html {
    overflow-x: hidden;
}
:root {
    /* Color Palette */
    --primary-color: #3b4d45; /* Dark Olive Green, used for headings and main elements. */
    --secondary-color: #ff8c00; /* Orange, used for accents, buttons, and highlights. */
    --accent-color: #c0c0c0; /* Silver, used for subtle details and secondary text. */
    --light-bg: #f8f9fa; /* Light Gray, for section backgrounds. */
    --dark-bg: #2d3e37; /* Darker green, for footer and special sections. */
    --text-color-dark: #333; /* Dark gray for standard body text. */
    --text-color-light: #fff; /* White for text on dark backgrounds. */
    /* Font Families */
    --heading-font: 'Poppins', sans-serif; /* A bold and modern font for titles. */
    --body-font: 'Roboto', sans-serif; /* A clean and readable font for body text. */
}

/* Base Body Styles */
body {
    font-family: var(--body-font);
    color: var(--text-color-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scrollbar issues. */
}

/* Heading & Title Styles */
h1, h2, h3, h4, h5, h6, .section-title, .hero-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

/* Utility Classes for Layout */
.section-padding {
    padding: 80px 0; /* Consistent vertical spacing for all sections. */
}

.bg-dark-green {
    background-color: var(--dark-bg);
}

/* Section Title & Subtitle Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    overflow-wrap: break-word;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    overflow-wrap: break-word;
}


/* Button Styling */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease; /* Smooth hover transition. */
}

.btn-primary:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px); /* Subtle lift on hover. */
}

.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2e3e37;
    border-color: #2e3e37;
    transform: translateY(-2px);
}

/*----------------------------------------------------------
    2.  Preloader & Scroll to Top Button
------------------------------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures the preloader is on top of all other elements. */
}

.cube-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.cube-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 3D transformation to create the cube effect. */
    transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg);
    transform-style: preserve-3d;
}

.cube {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: cube-move 3s infinite ease-in-out; /* Links to the cube-move keyframes. */
}

/* Positioning for each cube element. */
.cube-1 { top: 0; left: 0; }
.cube-2 { top: 0; left: 25px; }
.cube-3 { top: 25px; left: 0; }
.cube-4 { top: 25px; left: 25px; }
.cube-5 { top: 50px; left: 50px; background-color: var(--primary-color); }

/* Keyframes for the 3D cube movement animation. */
@keyframes cube-move {
    0% { transform: translate3d(0, 0, 0); opacity: 1; }
    25% { transform: translate3d(-50px, -50px, 50px) rotateY(90deg); opacity: 0.8; }
    50% { transform: translate3d(50px, -50px, 0) rotateX(180deg); opacity: 0.6; }
    75% { transform: translate3d(50px, 50px, -50px) rotateZ(270deg); opacity: 0.4; }
    100% { transform: translate3d(0, 0, 0); opacity: 1; }
}


.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Initially hidden, will be shown with JavaScript. */
    z-index: 99;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

/*----------------------------------------------------------
    3.  Header & Navigation
------------------------------------------------------------*/

.main-header {
    position: fixed; /* Ensures the header stays at the top when scrolling. */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo-apex {
    color: var(--primary-color);
}

.logo-template {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color-dark);
    margin-right: 25px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Navbar Toggler Icon */
.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    /* Custom SVG for the hamburger icon to match the primary color. */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233b4d45' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mega Menu Styles */
.mega-menu-popup {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--text-color-light);
    border-top: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    display: none; /* Initially hidden, will be shown on hover/click with JavaScript. */
    z-index: 90;
}

/*----------------------------------------------------------
    4.  Hero Section
------------------------------------------------------------*/

.hero-section {
    /* Set minimum height to fill the viewport */
    min-height: 100vh;
    /* Set the background image and its properties */
    background: url('../images/easy-19.webp') center center no-repeat;
    background-size: cover;
    /* Set text color for the hero section */
    color: var(--text-color-light);
    /* Establish the section as a positioning context for the overlay */
    position: relative;
    /* Hide content that overflows */
    overflow: hidden;

    /* Use Flexbox for perfect vertical and horizontal centering */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center;   /* Center content vertically */
    text-align: center;    /* Center text within the content block */
}

/* Pseudo-element to create a semi-transparent overlay on the background image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Set a semi-transparent black background */
    background-color: rgba(0, 0, 0, 0.4); /* Adjust the alpha value (0.4) to control darkness */
    /* Ensure the overlay is positioned between the background and the content */
    z-index: 1;
}

.hero-content {
    /* Position the content above the overlay */
    position: relative;
    z-index: 10;
    /* Add top padding to push the content down slightly from the center */
    padding-top: 100px; /* Adjust this value as needed to lower the content */
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-color-light);
}

.hero-description {
    font-size: 1.2rem;
    margin: 20px 0 40px;
}

/* Marquee Section Styles */
.marquee-section {
    overflow: hidden;
    white-space: nowrap;
    background-color: #3b4d45; /* New background color */
    color: var(--text-color-light); /* Changed text color for contrast */
    position: relative; /* Added for smoother animation */
}

.marquee {
    display: inline-block;
    animation: marquee-animation 30s linear infinite; /* Increased duration for smoother loop */
    padding: 10px 0; /* Add some vertical padding */
}

.marquee-content {
    display: inline-flex; /* Use inline-flex to keep items in a row */
    align-items: center;
    justify-content: space-around;
    /* Removed min-width: 100% as we're duplicating content */
}

.marquee-item {
    font-size: 1.1rem; /* Adjust font size as needed */
    margin: 0 30px; /* Spacing between items */
    display: inline-block; /* Ensure items stay in a line */
}

@keyframes marquee-animation {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Changed to -50% because we duplicated content */
    }
}

/*----------------------------------------------------------
    5.  Services, Testimonials, Pricing, FAQ & Contact
------------------------------------------------------------*/

/* Services Section */
.service-card {
    background-color: var(--light-bg);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px); /* Lifts the card on hover. */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1); /* Adds a stronger shadow on hover. */
}

.service-icon i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonial-card {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color-dark);
}

.client-info {
    margin-top: 15px;
    font-weight: 600;
}

.client-title {
    color: var(--accent-color);
}

.client-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

/* Pricing Section */
.pricing-card {
    background-color: var(--light-bg);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card.featured-plan {
    border-color: var(--secondary-color); /* Highlights the 'Pro' plan. */
    transform: scale(1.05);
    z-index: 10;
}

.plan-price h3 {
    font-size: 3rem;
    color: var(--secondary-color);
}

.plan-features li {
    padding: 5px 0;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid var(--accent-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Form */
.form-label {
    font-weight: 500;
}

/*----------------------------------------------------------
    6.  Footer
------------------------------------------------------------*/

.main-footer {
    padding: 60px 0 20px;
    color: var(--text-color-light);
}

.footer-title {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons li {
    display: inline-block;
    margin-right: 15px;
}

.social-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright-text {
    color: var(--accent-color);
}


/*----------------------------------------------------------
    7.  Media Queries (Responsive Design)
------------------------------------------------------------*/

@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 20px;
        border-radius: 5px;
        margin-top: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .hero-section {
        padding-top: 120px; /* Adjusts top padding for smaller screens to account for the header. */
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0; /* Reduces section padding on smaller devices. */
    }
    
    
    .hero-title {
        font-size: 2.5rem;
    }
    .btn-primary, .btn-secondary {
        padding: 10px 25px;
    }
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    /* Smaller Scroll to Top Button for mobile */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        line-height: 40px;
        bottom: 20px;
        right: 20px;
    }
}


/* This rule is crucial for forcing the mobile menu button to display */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
        visibility: visible;
    }
}

/*----------------------------------------------------------
    8. About Page Specific Styles
------------------------------------------------------------*/

/* Hero Section Specifics */


/* Mission & Vision Section */
.bg-light-bg {
    background-color: var(--light-bg);
}

/* Team Section */
.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.team-member .social-icons {
    margin-top: 15px;
}

.team-member .social-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 8px;
    transition: color 0.3s ease;
}

.team-member .social-icon:hover {
    color: var(--secondary-color);
}

/* Stats Section */
.counter {
    font-family: var(--heading-font);
}
/*----------------------------------------------------------
    9. Pricing Page Specific Styles
------------------------------------------------------------*/
/* Pricing Section Styles */
.pricing-cards .card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative; /* Required for the badge positioning */
    display: flex; /* For better alignment of content */
    flex-direction: column;
}

.pricing-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-card .list-unstyled li i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
}

.pricing-card .list-unstyled li.text-secondary i {
    color: var(--text-color-light-gray);
}

/* Recommended Plan Style */
.pricing-card.recommended-plan {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: scale(1.05); /* Make it stand out */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pricing-card.recommended-plan .badge {
    background-color: var(--secondary-color) !important;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.pricing-card.recommended-plan h4,
.pricing-card.recommended-plan .price {
    color: var(--text-color-light) !important;
}

.pricing-card.recommended-plan .btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.pricing-card.recommended-plan .btn-secondary:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}
/*----------------------------------------------------------
    10. Contact Page Specific Styles
------------------------------------------------------------*/
/* Contact Styles */
.contact-form-section .card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-form-section .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Correcting the icon color to match the primary theme */
.contact-info .list-unstyled i {
    color: var(--primary-color) !important; /* Force the primary color */
    min-width: 40px;
    text-align: center;
}

.map-section {
    width: 100%;
    margin-top: 50px;
    overflow-x: hidden;
}

.map-section iframe {
    width: 100%;
}
/*----------------------------------------------------------
  11. Coming Soon Page
------------------------------------------------------------*/
.coming-soon-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-green), #2c3e50); /* Dark gradient background */
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden; /* To contain any background animations/elements */
}

/* Optional: Background particles/shapes for more dynamic feel */
.coming-soon-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    animation: moveShape 15s infinite alternate;
    z-index: 0;
}

.coming-soon-section::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(var(--secondary-rgb), 0.1);
    border-radius: 50%;
    animation: moveShape2 20s infinite alternate;
    z-index: 0;
}

@keyframes moveShape {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(100px, 100px) scale(1.2); opacity: 0.6; }
}

@keyframes moveShape2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-150px, -150px) scale(0.9); opacity: 0.5; }
}


.background-overlay { /* Darker overlay for better text readability */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay */
    z-index: 0;
}

.coming-soon-content {
    max-width: 900px; /* Slightly wider content area */
    z-index: 1; /* Ensure content is above overlay */
    position: relative; /* Needed for z-index to work */
}

.coming-soon-title {
    font-size: 4.5rem; /* Larger title */
    color: #fff; /* White title for contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle text shadow */
}

.coming-soon-title .text-primary { /* Highlight specific text in primary color */
    color: var(--primary-color) !important;
}

.coming-soon-description {
    color: rgba(255, 255, 255, 0.9); /* Lighter description text */
    font-size: 1.3rem; /* Larger description */
}

.countdown-timer .timer-box {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly less transparent */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px); /* More blur for a frosted glass effect */
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-width: 120px; /* Ensure consistent width */
    color: #fff; /* Timer box text color */
}

.countdown-timer .timer-box:hover {
    transform: translateY(-8px) scale(1.05); /* More pronounced hover effect */
    background-color: rgba(255, 255, 255, 0.25);
}

.countdown-timer .timer-box span {
    color: var(--secondary-color); /* Timer numbers in secondary color */
    font-size: 3.5rem; /* Slightly smaller numbers for balance */
}

.countdown-timer .timer-box p {
    font-size: 1.1rem; /* Larger label text */
    font-weight: 600;
    margin-top: 10px !important; /* Adjust margin */
    color: rgba(255, 255, 255, 0.8);
}

.social-icons a {
    color: #fff; /* White social icons */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--primary-color); /* Primary color on hover */
    transform: translateY(-5px) scale(1.1);
}

/* Loading Bar Styles */
.loading-bar {
    width: 100%;
    max-width: 500px; /* Wider loading bar */
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem; /* More space */
}

.progress-container {
    width: 100%;
    height: 12px; /* Thicker progress bar */
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 6px;
    animation: fill-loading-bar 5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Slower, smoother animation */
}

@keyframes fill-loading-bar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.progress-text {
    color: #fff; /* White text for progress */
    font-weight: 500;
    font-size: 1.1rem;
}
/*----------------------------------------------------------
  12.  404 Page Styles 
------------------------------------------------------------*/
.error-404-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--text-dark), #34495e); /* Dark gradient background */
    color: #fff;
    padding: 2rem;
    position: relative;
}

/* Background overlay and shapes (same as Coming Soon page) */
.error-404-section .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay */
    z-index: 0;
}

.error-404-section::before,
.error-404-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    animation: moveShape 15s infinite alternate;
}

.error-404-section::before {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(var(--primary-rgb), 0.1);
}

.error-404-section::after {
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(var(--secondary-rgb), 0.1);
    animation: moveShape2 20s infinite alternate;
}

.error-404-content {
    max-width: 700px;
    z-index: 1; /* Ensure content is above overlay */
}

.error-404-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.error-404-code .fa-question-circle {
    font-size: 5rem;
    color: var(--secondary-color);
    animation: rotate-question 2s infinite linear;
    display: inline-block;
}

@keyframes rotate-question {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.error-404-title {
    font-size: 2.5rem;
    color: #fff;
}

.error-404-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.error-404-content .btn {
    font-weight: 600;
    padding: 1rem 3rem;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.error-404-content .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Image Gallery Section */
.image-gallery-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

.image-gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}