/* Global Styles */
:root {
    --primary-color: #8b4513;
    --secondary-color: #8b4513;
    --text-color: #333;
    --light-bg: #f8fafc;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: white;
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 60px;
    margin-right: 1rem;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Enhanced Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease-in-out;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #2E8B57); /* Gradasi hijau */
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 30px; /* Membuat tombol oval */
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.cta-button a {
    color: white;
    text-decoration: none;
    display: block;
}

.cta-button:hover {
    background: linear-gradient(135deg, #45a049, #1f6f4a); /* Efek warna saat hover */
    transform: scale(1.05); /* Efek memperbesar sedikit */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* Efek animasi gelombang */
.cta-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.cta-button:hover::before {
    width: 0;
    height: 0;
}

.cta-button a {
    position: relative;
    z-index: 1;
}

/* Responsif untuk ukuran layar kecil */
@media (max-width: 768px) {
    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}


/* Enhanced Sections */
.section {
    padding: 6rem 2rem;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Enhanced About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    font-size: 1.1rem;
}

/* Enhanced Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Enhanced Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Enhanced Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info div {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.submit-button {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Enhanced Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Enhanced Responsive Design */
@media screen and (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .nav-content {
        padding: 1rem 3%;
    }
    
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .gallery-section,
    .contact-form,
    .social-links {
        display: none;
    }
}
/* Form Container Styles */
.form-group {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Form Element Styles */
#whatsappForm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Input and Textarea Styles */
#whatsappForm input,
#whatsappForm textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#whatsappForm input:focus,
#whatsappForm textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    background: #ffffff;
}

#whatsappForm input::placeholder,
#whatsappForm textarea::placeholder {
    color: #888;
}

/* Textarea Specific Styles */
#whatsappForm textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

/* Button Styles */
#whatsappForm button {
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#whatsappForm button:hover {
    background-color: #8b4513;
    transform: translateY(-2px);
}

#whatsappForm button:active {
    transform: translateY(0);
}

/* Required Field Indicator */
#whatsappForm input:required,
#whatsappForm textarea:required {
    background-image: radial-gradient(circle 4px, #ff4444 50%, transparent 51%);
    background-repeat: no-repeat;
    background-position: right 8px top 8px;
    background-size: 8px 8px;
}

/* Error States */
#whatsappForm input:invalid:focus,
#whatsappForm textarea:invalid:focus {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Loading State */
#whatsappForm button.loading {
    background-color: #8b4513;
    opacity: 0.8;
    cursor: wait;
}

/* Success Message */
.success-message {
    color: #25D366;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .form-group {
        margin: 1rem;
        padding: 1.5rem;
    }

    #whatsappForm input,
    #whatsappForm textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    #whatsappForm button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile Optimization */
@media screen and (max-width: 480px) {
    .form-group {
        margin: 0.5rem;
        padding: 1rem;
    }

    #whatsappForm {
        gap: 1rem;
    }

    #whatsappForm input,
    #whatsappForm textarea {
        padding: 0.75rem;
    }

    #whatsappForm button {
        padding: 0.75rem 1.25rem;
        width: 100%;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    #whatsappForm button:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .form-group {
        background: #1a1a1a;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    #whatsappForm input,
    #whatsappForm textarea {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }

    #whatsappForm input::placeholder,
    #whatsappForm textarea::placeholder {
        color: #888;
    }

    #whatsappForm input:focus,
    #whatsappForm textarea:focus {
        background: #333;
    }
}