:root {
    --primary: #8e94f2;
    --secondary: #bbadff;
    --dark: #2b2d42;
    --bg: #f8f9fa;
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; scroll-behavior: smooth; 
}

body { 
    background: var(--bg); overflow-x: hidden; color: var(--dark); 
}

/* බොත්තම් Click කරන විට නිල් පාටින් Highlight වීම වැළැක්වීම */
button, .btn-main, .btn-outline, .nav-link, .social-icon, .cart-btn, .m-nav-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

/* --- NAVIGATION --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%; position: fixed; width: 100%; top: 0; 
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo { font-size: 28px; font-weight: 800; color: var(--primary); }
.logo img { height: 50px; width: auto; display: block; }

.nav-menu { display: flex; list-style: none; gap: 10px; align-items: center; }
.nav-link {
    text-decoration: none; color: var(--dark); font-weight: 600;
    padding: 10px 20px; border-radius: 50px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-link:hover {
    background: var(--primary); color: white !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(142, 148, 242, 0.3);
}

.menu-toggle {
    display: none; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--dark);
}

.cart-btn { background: var(--dark); color: white; border: none; padding: 10px 20px; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.cart-btn:hover { background: var(--primary); transform: scale(1.1); }

/* --- MOBILE BOTTOM NAVIGATION --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 5000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.m-nav-item {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-nav-item i { font-size: 20px; margin-bottom: 2px; }
.m-nav-item span { font-size: 10px; font-weight: bold; }

/* --- HERO SECTION --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 8% 50px; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin: 20px 0; font-family: 'Playfair Display', serif; }
.hero-text h1 span { color: var(--primary); }
.badge { background: var(--secondary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 14px; font-weight: bold; }
.hero-text p { color: #666; margin-bottom: 30px; font-size: 17px; }

.btn-main { background: var(--primary); color: white; border: none; padding: 15px 35px; border-radius: 30px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(142, 148, 242, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 13px 30px; border-radius: 30px; font-weight: bold; cursor: pointer; margin-left: 10px; }
.btn-main:hover { transform: translateY(-3px); opacity: 0.9; }

.stats { display: flex; gap: 30px; margin-top: 40px; }
.stats h3 { color: var(--primary); font-size: 24px; }

/* Floating Animation */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.image-bg-circle { position: absolute; width: 400px; height: 400px; background: var(--primary); border-radius: 50%; opacity: 0.1; }
.floating { 
    width: 100%; max-width: 450px; z-index: 2; 
    animation: floatAnim 4s ease-in-out infinite; 
    border-radius: 30px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); object-fit: cover; 
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); }
    50% { transform: translateY(-30px); box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1); }
}

/* --- PRODUCTS SECTION --- */
#shop { display: none; padding: 80px 8%; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: white; padding: 20px; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.4s; }
.card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card img { width: 100%; border-radius: 15px; height: 250px; object-fit: cover; }

/* --- SOCIAL SIDEBAR --- */
.social-sidebar {
    position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 2000;
}
.social-icon {
    width: 50px; height: 50px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icon img { width: 25px; height: 25px; }
.social-icon:hover { transform: scale(1.2) rotate(360deg); box-shadow: 0 10px 20px rgba(142, 148, 242, 0.4); }

/* --- MODAL (POPUP) --- */
.modal { display: none; position: fixed; z-index: 6000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); overflow-y: auto; }
.modal-content { background: white; margin: 5% auto; padding: 20px; border-radius: 20px; width: 80%; max-width: 800px; position: relative; animation: slideIn 0.4s ease; }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; right: 20px; top: 10px; font-size: 30px; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 20px; }
.modal-img-container img { width: 100%; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.modal-name { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.modal-price { font-size: 24px; color: var(--primary); font-weight: bold; }
.product-specs { margin: 20px 0; line-height: 1.8; text-align: left; }
.btn-confirm { width: 100%; background: #25D366; color: white; border: none; padding: 15px; border-radius: 50px; font-weight: bold; font-size: 18px; cursor: pointer; transition: 0.3s; }
.btn-confirm:hover { background: #128C7E; transform: scale(1.02); }

/* --- FOOTER --- */
footer { background: var(--dark); color: white; padding: 60px 8%; text-align: center; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    header { justify-content: center; padding: 10px 5%; }
    .nav-menu, .cart-btn, .menu-toggle { display: none !important; }

    /* Mobile Bottom Nav පෙන්වීම */
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; }

    .hero { padding: 150px 8% 50px; }
    .hero-text h1, .badge, .stats { display: none !important; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: 1; margin-bottom: 30px; }
    .hero-text { order: 2; }
    .btn-main, .btn-outline { display: block; width: 100%; margin: 10px 0; }
    .btn-outline { margin-left: 0; }
    .image-bg-circle { width: 300px; height: 300px; }

    /* Mobile එකේදී බඩු 2 බැගින් පෙන්වීම */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 5px; }
    .card { padding: 10px; border-radius: 15px; }
    .card img { height: 160px; }
    .card h3 { font-size: 14px; }
    .card p { font-size: 15px !important; }
    .card button { padding: 8px 15px; font-size: 12px; }

    /* Mobile Social Bar */
    .social-sidebar { left: auto; right: 15px; top: auto; bottom: 80px; transform: none; }
    .social-icon { width: 45px; height: 45px; animation: pulseSocial 2s infinite; }

    /* Mobile Modal */
    .modal-body { grid-template-columns: 1fr; text-align: center; }
    .modal-content { width: 95%; margin: 10% auto; padding: 10px; }
}

@keyframes pulseSocial {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(142, 148, 242, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(142, 148, 242, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(142, 148, 242, 0); }
}