/* Premium UI Enhancements */
:root {
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --premium-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 24px;
    overflow: visible;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.cat-img {
    height: 220px;
    position: relative;
    overflow: visible;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.category-card:hover .cat-img img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 5;
    transition: 0.3s;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-card:hover .cat-overlay {
    background: var(--primary-dark);
    transform: translateX(-50%) scale(1.1);
}

.cat-info {
    padding: 35px 25px 25px;
    background: white;
}

.cat-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.btn-secondary {
    background: #f8f9fa;
    color: #444;
    border: 1px solid #eee;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #eee;
}

/* Modern Fixed Header Redesign */
.header-main-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    padding: 2px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.sticky {
    padding: 3px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.top-bar {
    background: #111;
    z-index: 2001;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 40px !important;
    margin: 0 auto !important;
}

header nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    align-items: center;
}

header nav ul li a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    padding: 2px 0;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header nav ul li a:hover {
    color: var(--primary);
}

header nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
    transition: 0.3s;
}

@media (max-width: 992px) {
    header .container {
        padding: 0 20px !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white !important;
        border-radius: 50%;
        font-size: 1.1rem;
    }

    /* Side Drawer Navigation */
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 2001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 100px 30px;
        display: block !important;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul li a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
    }

    /* Dark Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 1500;
        display: none;
        opacity: 0;
        transition: 0.4s;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
}

.menu-toggle {
    display: none;
}

/* Hero Content Premium */
.hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Stats Premium */
.stat-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--premium-shadow);
    border: 1px solid #f9f9f9;
}

.stat-item h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* Modern Footer Styles */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 110px;
    /* Space for mobile app bar */
}

footer h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-about p,
.footer-app p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-contact i {
    color: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: 0.3s;
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.app-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.app-badge {
    height: 35px;
    transition: transform 0.3s;
}

.app-badge:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    footer {
        text-align: center;
        padding-top: 60px;
    }

    .footer-contact p {
        justify-content: center;
    }

    .app-badges {
        justify-content: center;
    }

    .footer-about .logo {
        justify-content: center;
    }
}

/* Footer Logo Visibility */
footer .site-brand-text .line-1,
footer .site-brand-text .line-2 {
    color: white !important;
}