:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --light: #f8fafc;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(12px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--slate-200);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.btn-partner {
    background-color: var(--dark);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
}

/* Hero */
.hero {
    position: relative;
    height: 85vh;
    background: url('new_hero_bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    max-width: 800px;
    animation: fadeInHero 2s ease-out 3s forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.hero h2 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.hero h2 span {
    color: #3b82f6;
    /* Electric Blue */
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.hero p {
    font-size: 1.25rem;
    max-width: 550px;
    margin-bottom: 40px;
    opacity: 1;
    font-weight: 400;
}

.search-bar {
    display: flex;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 15px;
    font-family: inherit;
    outline: none;
    font-size: 1rem;
}

.search-bar button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Categories */
.categories {
    margin-bottom: 40px;
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.cat-btn {
    white-space: nowrap;
    padding: 10px 24px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    border-radius: 100px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Feed */
.feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.review-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.card-content {
    padding: 24px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.location-tag {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-discount {
    width: 100%;
    padding: 14px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-discount:hover {
    background: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f1f5f9;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.qr-code-grid {
    width: 160px;
    height: 160px;
    background-image: radial-gradient(var(--dark) 2px, transparent 2px);
    background-size: 10px 10px;
}

.coupon-code-box {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.instruction {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* Footer */
.main-footer {
    padding: 60px 0;
    border-top: 1px solid var(--slate-200);
    text-align: center;
    background: var(--light);
}

.socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    color: var(--slate-500);
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        height: auto;
        padding: 15px 0;
    }

    .navbar .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0 15px;
    }

    .logo-wrapper {
        align-items: flex-start !important;
    }

    .nav-links {
        display: none !important;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        color: var(--dark);
        z-index: 1300;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1500;
        padding: 80px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-drawer.active {
        right: 0;
    }

    .mobile-drawer a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 600;
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid var(--slate-100);
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1400;
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Restyled Language Select */
    .lang-select {
        border-radius: 8px !important;
        border: 1px solid var(--slate-200) !important;
        background: #fdfdfd !important;
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
        color: var(--slate-500);
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.2s;
    }

    .lang-select:hover {
        border-color: var(--primary);
    }

    /* Hero Styling & Overlap Fix */
    .hero {
        height: auto;
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

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

    /* Landing Hero */
    .landing-hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .landing-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .landing-hero p {
        margin: 0 auto 40px;
    }

    .landing-hero img {
        opacity: 0.1 !important;
        width: 100% !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        object-fit: cover;
        height: 100%;
        z-index: 1;
    }

    .landing-hero .container {
        position: relative;
        z-index: 2;
    }

    /* Grids Stacking */
    .feed,
    .benefit-grid,
    .portal-grid,
    .dashboard-grid,
    .pricing-grid,
    .comparison-container,
    .form-row,
    .workflow-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .sidebar {
        width: 100% !important;
    }

    .stat-card-row {
        grid-template-columns: 1fr !important;
    }

    /* CTA Section scaling */
    .cta-box {
        padding: 40px 20px !important;
        margin: 40px 0 !important;
    }

    .cta-box h2 {
        font-size: 2rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-buttons a {
        width: 100% !important;
        text-align: center;
    }

    /* Tables */
    .dashboard-content {
        overflow-x: auto;
        padding: 15px !important;
    }

    table {
        min-width: 600px;
    }

    /* Search Bar */
    .search-bar {
        width: 100%;
    }

    /* Details Page Stacking */
    .details-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .cat-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 20px;
        margin: 50px 15px;
    }
}