/*
Theme Name: Agro Power Enhanced
Theme URI: https://example.com/agro-power
Author: Abhisake Jain
Author URI: https://example.com
Description: A premium agricultural tools & equipment theme with enhanced product-focused homepage.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agro-power
*/

:root {
    --primary-blue: #2C5F7C;
    --primary-coral: #E07A5F;
    --dark-blue: #1A3A4D;
    --light-blue: #5A8AA6;
    --accent-peach: #F4A261;
    --dark-gray: #2B2D42;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --cream: #FFFBF5;
    --soft-beige: #F2E9E4;
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: var(--dark-gray);
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* ==================== ENHANCED PRODUCT SECTION STYLES ==================== */

/* Category Header */
.category-header {
    padding: 20px 0;
}

.category-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.btn-filter {
    background: white;
    border: 2px solid var(--primary-coral);
    color: var(--primary-coral);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-filter:hover {
    background: var(--primary-coral);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 122, 95, 0.3);
}

/* Category Slider */
.category-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.category-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-slider-container::-webkit-scrollbar {
    display: none;
}

.category-slider {
    display: flex;
    gap: 15px;
    padding: 10px 0;
}

.category-pill {
    background: white;
    border: 2px solid #e0e0e0;
    color: var(--dark-gray);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill:hover {
    border-color: var(--primary-coral);
    color: var(--primary-coral);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--primary-coral), var(--accent-peach));
    border-color: var(--primary-coral);
    color: white;
    box-shadow: 0 5px 20px rgba(224, 122, 95, 0.3);
}

.category-pill i {
    font-size: 1.1rem;
}

/* Category Navigation Buttons */
.category-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-nav-btn:hover {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(44, 95, 124, 0.3);
}

.category-nav-prev {
    left: 0;
}

.category-nav-next {
    right: 0;
}

/* Category Progress Bar */
.category-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-coral), var(--accent-peach));
    width: 33.33%;
    transition: width 0.3s ease;
}

/* Enhanced Product Card */
.product-card-enhanced {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-coral);
}

.product-image-wrapper-enhanced {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-enhanced {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card-enhanced:hover .product-image-enhanced {
    transform: scale(1.08);
}

/* Product Badge Enhanced */
.product-badge-enhanced {
    position: absolute;
    top: 15px;
    left: 0;
    padding: 6px 16px;
    border-radius: 0 20px 20px 0;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.product-badge-enhanced.bestseller {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.product-badge-enhanced.new {
    background: linear-gradient(135deg, #00c9a7, #00b894);
}

.product-badge-enhanced.sale {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

.product-badge-enhanced.trending {
    background: linear-gradient(135deg, #6c63ff, #5548d9);
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card-enhanced:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.quick-action-btn:hover {
    background: var(--primary-coral);
    color: white;
    transform: scale(1.1);
}

.quick-action-btn i {
    font-size: 1.1rem;
}

/* Product Body Enhanced */
.product-body-enhanced {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-rating-enhanced {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
}

.product-rating-enhanced i {
    color: #ffc107;
    font-size: 1rem;
}

.product-rating-enhanced .rating-value {
    color: #000;
    font-weight: 700;
}

.product-rating-enhanced .rating-count {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
}

.product-title-enhanced {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    flex-grow: 1;
}

.product-discount-info-enhanced {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.discount-percent-enhanced {
    color: #388e3c;
    font-weight: 700;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
}

.discount-saved-enhanced {
    color: #666;
}

/* Product Footer Enhanced */
.product-footer-enhanced {
    padding: 0 20px 20px;
}

.product-price-wrapper-enhanced {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
}

.product-price-enhanced {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
}

.original-price-enhanced {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    font-weight: 400;
}

.btn-product-enhanced {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-coral);
    border: 2px solid var(--primary-coral);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-product-enhanced:hover {
    background: var(--primary-coral);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 122, 95, 0.3);
}

/* View All Button */
.btn-view-all-products {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 15px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-view-all-products:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 95, 124, 0.4);
}

/* Filter Offcanvas */
.filter-offcanvas {
    width: 350px !important;
}

.filter-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 20px 25px;
}

.filter-offcanvas .offcanvas-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.filter-offcanvas .btn-close {
    filter: brightness(0) invert(1);
}

.filter-section {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.price-filter .form-range {
    width: 100%;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.form-check {
    margin-bottom: 12px;
}

.form-check-label {
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
}

.filter-actions button {
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
}

/* Mobile Responsive for Enhanced Product Section */
@media (max-width: 768px) {
    .category-main-title {
        font-size: 1.8rem;
    }

    .category-slider-wrapper {
        padding: 0 40px;
    }

    .category-pill {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .category-nav-btn {
        width: 35px;
        height: 35px;
    }

    .product-image-wrapper-enhanced {
        height: 200px;
    }

    .product-title-enhanced {
        font-size: 0.95rem;
    }

    .product-price-enhanced {
        font-size: 1.4rem;
    }

    .btn-filter {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .filter-offcanvas {
        width: 280px !important;
    }
}

@media (max-width: 480px) {
    .category-slider-wrapper {
        padding: 0 30px;
    }

    .category-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* ==================== ORIGINAL STYLES (Preserved) ==================== */

/* Navbar Styles */
.navbar-premium {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    padding: 0.75rem 0;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(44, 95, 124, 0.08);
}

.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-coral));
    border-radius: 0 0 3px 3px;
}

.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.7rem 1.5rem;
    clear: both;
    font-weight: 500;
    color: var(--dark-gray);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dropdown-menu .dropdown-item::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-blue);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: var(--primary-blue);
    background-color: rgba(44, 95, 124, 0.08);
    border-left-color: var(--primary-blue);
    padding-left: 1.75rem;
}

.dropdown-menu .dropdown-item:hover::before,
.dropdown-menu .dropdown-item:focus::before {
    opacity: 1;
}

.dropdown-menu .dropdown-item.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-left-color: var(--primary-coral);
}

.navbar-nav .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu .nav-link {
    padding: 0;
    margin: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: 0;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0.5rem;
        margin-left: 1rem;
        background: linear-gradient(135deg, rgba(44, 95, 124, 0.05), rgba(90, 138, 166, 0.08));
        border: none;
        border-left: 3px solid var(--primary-blue);
        box-shadow: none;
        border-radius: 8px;
        padding: 0.5rem 0;
    }

    .navbar-nav .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .dropdown-menu .dropdown-item::before {
        content: '\f054';
        font-size: 0.75rem;
    }

    .dropdown-menu .dropdown-item:hover::before,
    .dropdown-menu .dropdown-item:focus::before {
        opacity: 1;
        transform: translateX(3px);
    }

    .dropdown-submenu .dropdown-menu {
        position: static;
        left: auto;
        margin-left: 1.5rem;
        background: linear-gradient(135deg, rgba(44, 95, 124, 0.08), rgba(90, 138, 166, 0.12));
        border-left-color: var(--primary-coral);
    }

    .dropdown-submenu .dropdown-menu .dropdown-item {
        padding-left: 2rem;
        font-size: 0.85rem;
    }

    .navbar-nav .dropdown-toggle {
        position: relative;
    }

    .navbar-nav .dropdown-toggle.dropdown-clicked {
        color: var(--primary-blue) !important;
    }

    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
        transition: transform 0.3s ease;
    }

    .navbar-nav .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }
}

.navbar-toggler {
    border: 2px solid var(--primary-blue);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 124, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 95, 124, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
}

.navbar-premium.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary-coral), var(--accent-peach));
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 122, 95, 0.4);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 124, 0.85), rgba(26, 58, 77, 0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 10px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-hero {
    background: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

.btn-primary-hero:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-outline-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-hero:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-coral));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-coral);
    margin-bottom: 1rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-coral);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-coral);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-coral);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title:after {
        left: 130px !important;
    }
}

/* Loader Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loader-icon {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-blue);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Sliding Menu */
@media (max-width: 991.98px) {
    .navbar-collapse,
    .navbar-collapse.collapsing {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh !important;
        background: white;
        z-index: 1050;
        padding: 20px;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
        display: block !important;
        visibility: hidden;
        overflow-y: auto;
    }

    .navbar-collapse.show,
    .navbar-collapse.menu-open {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-brand img {
        max-height: 40px;
        width: auto;
    }

    .btn-close-mobile {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark-gray);
        cursor: pointer;
        padding: 5px;
        transition: transform 0.3s ease;
    }

    .btn-close-mobile:hover {
        transform: rotate(90deg);
        color: var(--primary-coral);
    }

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

    .navbar-nav .nav-item {
        width: 100%;
        margin: 5px 0;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .navbar-collapse.show .nav-item,
    .navbar-collapse.menu-open .nav-item {
        animation: slideInRight 0.5s ease forwards;
        opacity: 0;
        transform: translateX(-20px);
    }

    .navbar-collapse.show .nav-item:nth-child(1),
    .navbar-collapse.menu-open .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(2),
    .navbar-collapse.menu-open .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(3),
    .navbar-collapse.menu-open .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .navbar-collapse.show .nav-item:nth-child(4),
    .navbar-collapse.menu-open .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .navbar-collapse.show .nav-item:nth-child(5),
    .navbar-collapse.menu-open .nav-item:nth-child(5) { animation-delay: 0.5s; }

    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.footer-brand img {
    background: #fff;
    height: 100px;
    width: auto;
    border-radius: 25px;
    padding: 10px;
}

@media (max-width: 768px) {
    .footer-brand img {
        margin: auto;
        display: block;
        width: auto;
        height: 60px;
    }

    .footer {
        padding: 20px;
    }

    .footer-description {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}