* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1a4d2e;
    --secondary-green: #2d7a4a;
    --light-green: #3d9f5d;
    --gold: #d4af37;
    --light-gold: #e6c757;
    --light-bg: #f5f3f0;
    --dark-text: #1a1a1a;
    --gray-text: #555555;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.15);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo i {
    font-size: 2rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========== Hero Section ========== */
.hero {
    margin-top: 80px;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, #245d3f 100%);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--light-gold) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInLeft 0.8s ease 0.4s both;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* Decorative hero ornaments */
.hero-decor .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.9;
}
.hero-decor .blob-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 30% 30%, var(--light-gold), transparent 40%);
    top: -40px;
    right: 40px;
    transform: rotate(-10deg);
}
.hero-decor .blob-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 70% 70%, rgba(255,255,255,0.15), transparent 50%);
    bottom: -30px;
    left: 20px;
}
.hero-decor .sparkles {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px;
    height: 120px;
    pointer-events: none;
}
.hero-decor .sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--light-gold);
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
    animation: sparkle 3s infinite ease-in-out;
}
.hero-decor .sparkles span:nth-child(1){ left:10px; top:20px; animation-delay:0s }
.hero-decor .sparkles span:nth-child(2){ left:60px; top:10px; animation-delay:0.6s }
.hero-decor .sparkles span:nth-child(3){ left:100px; top:60px; animation-delay:1.2s }
.hero-decor .sparkles span:nth-child(4){ left:30px; top:90px; animation-delay:1.8s }

@keyframes sparkle {
    0%{ transform: scale(0.6); opacity:0.2 }
    50%{ transform: scale(1.3); opacity:1 }
    100%{ transform: scale(0.8); opacity:0.3 }
}

/* Section divider styling */
.section-divider{ margin-top:-4px }
.section-divider svg{ display:block; width:100%; height:60px }

/* Product card badge and ornaments */
.product-card{ position: relative; overflow: visible }
.product-card::before{
    content: 'Khusus';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--primary-green);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-size: 0.85rem;
    transform: rotate(-6deg);
}

/* product image overlay gradient for more depth */
.product-image::after{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06));
    pointer-events: none;
}

/* subtle floating animation on hero image */
.hero-image img{ animation: floatSlow 8s ease-in-out infinite }
@keyframes floatSlow{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* button sparkle */
.btn-primary{ position: relative; overflow: hidden }
.btn-primary::after{
    content: '';
    position: absolute;
    top: -40%; left: -30%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 30%);
    transform: rotate(25deg);
    opacity: 0.6; pointer-events: none; transition: transform 0.6s ease;
}
.btn-primary:hover::after{ transform: translateX(10%) rotate(25deg); opacity:0.9 }


.floating-card {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-gold) 0%, #c19a3e 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-green);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: float 6s ease-in-out infinite;
    transform: rotate(5deg);
}

/* ========== Products Section ========== */
.products {
    padding: 100px 20px;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, #d4f1d4 0%, #c8ead7 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(26, 77, 46, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    border-top: 4px solid var(--primary-green);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(26, 77, 46, 0.18);
    background: linear-gradient(135deg, #c8ead7 0%, #b8dfd0 100%);
}

.product-image {
    width: 100%;
    height: 220px;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--light-gold);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    margin-top: 10px;
}

.product-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
    margin-top: 8px;
}

/* ========== Features Section ========== */
.features {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.feature-icon {
    font-size: 4rem;
    color: var(--light-gold);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* ========== Contact Section ========== */
.contact {
    padding: 100px 20px;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease;
}

.info-item i {
    font-size: 2rem;
    color: var(--gold);
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--gray-text);
}

.info-item a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.8s ease;
}

.form-group {
    display: flex;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.contact-form button {
    align-self: flex-start;
}

/* ========== Product Quick View Overlay ========== */
.product-image {
    position: relative;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,77,46,0.85) 0%, rgba(45,122,74,0.8) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: scale(1);
}

.quick-view-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--primary-green);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
    font-family: 'Poppins', sans-serif;
}

.quick-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212,175,55,0.5);
}

.quick-view-btn i {
    font-size: 1.2rem;
}

/* ========== Product Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-green);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.15);
    color: var(--gold);
}

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--light-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gold);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--light-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: #e0e0e0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .nav-menu {
        gap: 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero::before {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    .modal-body {
        padding: 30px 20px;
    }
    .modal-body h2 {
        font-size: 1.5rem;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-logo span {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        gap: 20px;
    }
}
