:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent-color: #4f46e5;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-primary-small {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--accent-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--white);
    /* White by default */
}

header.scrolled .logo-text .main {
    color: var(--text-main);
}

.logo-text .sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    /* White dim */
    letter-spacing: 2px;
}

header.scrolled .logo-text .sub {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    /* White by default */
}

header.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent-color);
}

header.scrolled .nav-links a:hover {
    color: var(--accent-color);
}

/* Burger color logic */
.menu-toggle span {
    background: var(--white);
}

header.scrolled .menu-toggle span {
    background: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
    padding: 120px 0 60px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Categories */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    background: var(--primary-gradient);
    color: var(--white);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.category-card:hover i {
    color: var(--white);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Products */
.products {
    background-color: var(--bg-white);
}

.filter-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.product-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.product-card:hover .product-btn {
    background: var(--primary-gradient);
    color: var(--white);
}

/* Trusted */
.trusted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.trusted-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.trusted-item h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 10px;
}

.trusted-item p {
    color: var(--text-light);
}

/* Insta CTA */
.cta-card {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-insta {
    background: var(--white);
    color: var(--accent-color);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background: #0f172a;
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info .logo {
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-gradient);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Floating WA */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 500px;
    /* More focused card width */
    max-height: 90vh;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-color);
}

.modal-body {
    display: flex;
    flex-direction: column;
    /* Vertical integrated layout */
}

.modal-img {
    height: 300px;
    width: 100%;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 30px;
    text-align: center;
}

.modal-info h3 {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--text-main);
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-img {
        height: 220px;
    }

    .modal-info {
        padding: 25px 20px;
    }

    .modal-info h3 {
        font-size: 1.4rem;
    }

    .modal-info p {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        text-align: center;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-main) !important;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filter-controls {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hide-mobile {
        display: none;
    }
}