/* ===== GLOBAL VARIABLES ===== */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --overlay: rgba(0, 0, 0, 0.7);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ===== BASE STYLING ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}

.logo span {
    color: var(--accent);
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav a:hover {
    color: var(--accent);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 78px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero__content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== TICKER ===== */
.ticker-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent);
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: ticker 15s linear infinite;
    font-weight: 600;
    font-size: 1rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background-color: var(--light);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about__text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
}

.about__text h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 0;
}

.about__text p {
    margin-bottom: 20px;
    color: var(--text);
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.about__map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== PRODUK SECTION ===== */
.produk {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}

.produk__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.produk__item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.produk__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.produk__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.produk__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produk__item:hover .produk__image img {
    transform: scale(1.05);
}

.produk__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produk__item:hover .produk__overlay {
    opacity: 1;
}

.produk__zoom {
    color: white;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.produk__zoom:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.produk__info {
    padding: 20px;
}

.produk__info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.produk__info .harga {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.produk__info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.produk__button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.produk__button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

/* Best Seller Badge */
.best-seller {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===== KONTAK SECTION ===== */
.kontak {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.kontak__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.kontak__info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
}

.kontak__info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item a, .info-item p {
    color: var(--text);
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--accent);
}

.kontak__form input,
.kontak__form select,
.kontak__form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.kontak__form input:focus,
.kontak__form select:focus,
.kontak__form textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.kontak__form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer__about img {
    margin-bottom: 20px;
    max-width: 150px;
}

.footer__about p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: #bdc3c7;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer__links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer__contact i {
    color: var(--accent);
    margin-top: 3px;
}

.footer__copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* ===== FLOATING WHATSAPP ===== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-wa a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-wa a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .about__content,
    .kontak__content {
        grid-template-columns: 1fr;
    }
    
    .about__map {
        height: 350px;
        order: -1;
    }
    
    .hero__content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 30px 30px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 0 80px;
        background-image: url('../images/hero-bg-mobile.jpg');
    }
    
    .hero__content h1 {
        font-size: 2rem;
    }
    
    .hero__content p {
        font-size: 1rem;
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .floating-wa {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-wa a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .hero__content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .ticker-text {
        font-size: 0.8rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
