/* General Styling */
:root {
    --primary-color: #006666; /* Deep Teal / Emerald Green */
    --secondary-color: #B76E79; /* Rose Gold / Soft Copper */
    --accent-color: #D8D8E0; /* Muted Lavender / Light Grey */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FBFBFB; /* Hampir putih */
    --bg-dark: #2A2A2A; /* Charcoal Grey */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 4em;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

h2 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px auto;
    font-size: 1.1em;
    color: #666;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px; /* Lebih bulat untuk tampilan modern */
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    text-align: center;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.btn-tertiary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    font-size: 0.85em;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-tertiary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.8em;
    border-radius: 5px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

.mt-40 {
    margin-top: 40px;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparan */
    color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: var(--text-light); /* Solid saat discroll */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: 700;
    font-family: var(--font-heading);
}

.main-header .logo a {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    /* PATH GAMBAR HERO DI SINI - LANGSUNG NAMA FILE */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('hero-naila-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 200px 0 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin-top: 50px; /* Adjust for fixed header */
}

.hero-content h1 {
    font-size: 5em;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--text-light);
}

.hero-content h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    font-weight: 400;
    color: var(--secondary-color);
}
.hero-content h2::after {
    display: none; /* Hide default H2 underline */
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    margin: 0 15px;
}

/* Sections General */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(even) {
    background-color: var(--accent-color); /* Light grey/lavender tint */
}

section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

/* About Section */
.about-section .about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-section .about-text {
    flex: 2;
    min-width: 300px;
}

.about-section .about-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.about-section .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.about-section .about-image img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.services-section h2 {
    color: var(--text-light);
}

.services-section h2::after {
    background-color: var(--secondary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--bg-dark); /* Dark background for services */
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-item i {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.service-item h3 {
    color: var(--text-light);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1em;
    line-height: 1.7;
    opacity: 0.9;
    color: var(--accent-color);
    flex-grow: 1; /* Make paragraphs take available space */
}

.service-item .btn {
    margin-top: 20px;
}

/* Products Section */
.products-section {
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background-color: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--accent-color);
}

.product-item h3 {
    margin: 20px 20px 5px 20px;
    font-size: 1.4em;
    color: var(--primary-color);
}

.product-item .category {
    font-size: 0.9em;
    color: #888;
    margin: 0 20px 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item .price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 20px 15px 20px;
}

.product-item .description {
    font-size: 0.95em;
    color: #555;
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

.product-item .add-to-cart {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
    width: calc(100% - 40px);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.gallery-section h2 {
    color: var(--text-light);
}

.gallery-section h2::after {
    background-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-light); /* Lighter background */
    text-align: center;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.testimonial-item {
    flex: 0 0 auto;
    width: 48%; /* Adjust width as needed for two columns */
    min-width: 320px; /* Minimum width for small screens */
    background-color: var(--text-light);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin: 15px;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color); /* Aksen warna */
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.8;
}

.testimonial-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2em;
}

.testimonial-item span {
    font-size: 0.9em;
    color: #777;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); /* Gradient futuristik */
    color: var(--text-light);
    text-align: center;
    padding: 80px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 3em;
    margin-bottom: 20px;
}

.cta-section h2::after {
    background-color: var(--text-light); /* Underline putih */
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background-color: var(--accent-color);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.contact-info-item {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-info-item i {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.contact-info-item p {
    margin-bottom: 5px;
    color: #555;
}

.contact-info-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--text-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: left;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 18px;
    margin-bottom: 25px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-dark);
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(183, 110, 121, 0.4);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: auto;
    padding: 15px 40px;
    font-size: 1.1em;
    float: right; /* Untuk menempatkan tombol di kanan */
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px 0;
    text-align: center;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    text-align: left;
}

.main-footer .footer-col {
    flex: 1;
    min-width: 280px;
    margin: 20px;
}

.main-footer .footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.5em;
    font-family: var(--font-heading);
}

.main-footer .footer-col p,
.main-footer .footer-col ul li {
    font-size: 0.95em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.main-footer .footer-col ul {
    list-style: none;
}

.main-footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.main-footer .footer-col ul li a:hover {
    color: var(--accent-color);
}

.main-footer .footer-col.contact-footer p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.main-footer .social-media .social-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    line-height: 45px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.main-footer .social-media .social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.main-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* Animasi Fade-in (saat scroll) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4em;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    .about-section .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-section .about-image {
        order: -1; /* Pindah gambar ke atas di mobile */
        margin-bottom: 30px;
    }

    .testimonial-item {
        width: 80%; /* Single column for testimonials */
    }

    .contact-form button {
        float: none; /* Tombol kembali ke tengah */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        background-color: var(--primary-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    .main-nav ul li {
        margin: 15px 0;
    }

    .main-nav ul li a {
        color: var(--text-light);
        padding: 10px 0;
        display: block;
    }
    .main-nav ul li a::after {
        background-color: var(--secondary-color);
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    @keyframes slideDown {
        from { transform: translateY(-100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content h2 {
        font-size: 1.5em;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .hero-buttons .btn {
        margin: 0;
    }

    h2 {
        font-size: 2em;
    }

    .contact-form {
        padding: 30px;
    }
}

