:root {
    --primary-green: #9fcd32; /* Wahi Lime Green jo packaging pe hai */
    --accent-teal: #198c8c; /* Teal color from the box */
    --soap-purple: #5d1130; /* Dark purple shade from the soap peek */
    --bg-white: #ffffff;
    --text-dark: #2d2d2d;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 15px 35px rgba(159, 205, 50, 0.15);
}

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

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

body {
    font-family: 'Quicksand', sans-serif; /* Friendly & Organic font */
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Wavy Background Pattern */
.curvy-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--primary-green);
    opacity: 0.1;
    clip-path: ellipse(80% 100% at 100% 0%);
    z-index: -1;
}

/* Navbar Style from Packaging */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-green);
}

.logo img {
    height: 50px;
    border-radius: 5px;
    mix-blend-mode: multiply; /* Removes white background */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Hero Section matching the Box */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 7%;
    background: linear-gradient(135deg, #f9fff0 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--primary-green);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-tag {
    background: var(--accent-teal);
    color: white;
    padding: 5px 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    color: #555;
}

.hero-img {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img img {
    max-width: 100%;
    height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

/* Buttons */
.btn-packaging {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-packaging:hover {
    background: var(--accent-teal);
    transform: translateY(-5px);
}

/* Soap Card Style */
.soap-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 0;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.soap-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-right: 3px solid var(--primary-green);
    border-top: 3px solid var(--primary-green);
}

.soap-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow);
}

.soap-card h3 {
    color: var(--accent-teal);
    margin: 20px 0 10px;
    text-transform: uppercase;
}

/* Animations */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScale {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    color: #aaa;
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-green);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* Product Card Improvements */
.img-container {
    position: relative;
    height: 400px; /* Bada size ab default mein hai */
    overflow: hidden;
    margin-bottom: 25px;
    background: #fdfdfd;
    border-radius: 12px;
    cursor: crosshair;
    border: 1px solid #f0f0f0;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Packaging puri dikhegi ab */
    background: #fdfdfd; 
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.5); /* Basic zoom effect */
}

.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--bg-white);
    color: var(--accent-teal);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 10;
}

.soap-card:hover .quick-view-btn {
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-btn:hover {
    background: var(--primary-green);
    color: white;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-buy {
    background: var(--accent-teal);
    color: white;
    padding: 10px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: var(--soap-purple);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .modal-body-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}
