* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.atas{
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    font-family: "Trirong", serif;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #1e3a8a;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3a8a;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-slider {
    flex: 1;
    position: relative;
    max-width: 800px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .hero-slider {
        width: 100%;
        max-width: 600px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .slide-content h3 {
        font-size: 18px;
    }
}

 .body {
    background-color: #ffffff;
    color: #f0f0f0;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}
/* Product Page Header */
        .product-header {
            margin-top: 80px;
            text-align: center;
            padding: 60px 20px 30px;
            background-color: #1e3a8a;
            color: white;
        }

.product-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }


.product-header p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}
 .category-filter {
            display: flex;
            justify-content: center;
            margin: 20px 0 30px;
            flex-wrap: wrap;
            gap: 10px;
            padding: 0 5%;
        }

        .filter-btn {
            padding: 10px 20px;
            background-color: #f1f5f9;
            border: 2px solid #1e3a8a;
            color: #1e3a8a;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            background-color: #1e3a8a;
            color: white;
            transform: translateY(-2px);
        }

        .filter-btn.active {
            background-color: #1e3a8a;
            color: white;
        }
/* Product Grid Container */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid  #1e3a8a;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.product-info p {
    color: #000000;
    margin-bottom: 15px;
    font-size: 0.95rem;
    min-height: 60px;
}
.category-badge {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: bold;
            margin-top: 10px;
        }

        .category-besi {
            background-color: #7dd3fc;
            color: #0c4a6e;
        }

        .category-tanah-liat {
            background-color: #fde68a;
            color: #92400e;
        }

        .category-kayu {
            background-color: #bbf7d0;
            color: #166534;
        }

.price {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #000000;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: #1a3a6c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4ade80;
    border-radius: 2px;
}
.section-title p {
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
}


.contact {
    padding: 80px 0;
    background: #f1f5f9;
}

/* Mengubah Contact Wrapper menjadi dua kolom besar: Info Grid dan Map */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 1 kolom untuk info, 1.5 kolom untuk peta */
    gap: 40px;
}

/* New: Styling untuk Grid Kartu Kontak */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2 kolom di desktop */
    gap: 20px;
}

/* New: Styling untuk setiap Kartu Kontak */
.contact-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center; /* Dipusatkan agar lebih rapi */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    /* Gaya ikon diubah agar lebih modern */
    background: #1e3a8a; /* Warna primer */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 15px; /* Pusatkan ikon */
    flex-shrink: 0;
}

.contact-details h4 {
    color: #1e3a8a;
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.contact-details p, .contact-details a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Map Section */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 400px;
    border: 1px solid #ddd;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
footer {
    background: #1a3a6c;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #4ade80;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4ade80;
}

.footer-column p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4ade80;
    transform: translateY(-5px);
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

/* Konten About */
.about-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.about-section {
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about-section h2 {
    color: #1e3a8a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 2rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #4ade80;
    border-radius: 2px;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}

.about-section ol {
    padding-left: 20px;
    margin-top: 15px;
}

.about-section ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Grid untuk material */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.material-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.material-img {
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 50px;
}

.material-info {
    padding: 20px;
}

.material-info h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.material-info p {
    color: #666;
    line-height: 1.6;
}

/* Values List */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 40px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.value-item h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-item p {
    color: #666;
    line-height: 1.6;
}
.material-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.material-img {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

/* Animasi hover untuk gambar */
.material-card:hover .material-img img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.material-img img {
    transition: transform 0.3s ease;
}
/* Responsivitas */
@media (max-width: 992px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-list {
        grid-template-columns: 1fr;
    }

    /* Mengubah layout kontak agar info dan peta tumpuk di mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 2 kolom di tablet */
    }
}

 @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            
            nav ul {
                display: none;
                position: absolute;
                top: 80px;
                left: 0;
                width: 100%;
                background: white;
                flex-direction: column;
                padding: 20px 0;
                box-shadow: 0 5px 10px rgba(0,0,0,0.1);
            }
            
            nav ul.show {
                display: flex;
            }
            
            nav ul li {
                margin: 10px 0;
                text-align: center;
            }
            
            .product-header h1 {
                font-size: 2rem;
            }
            
            .category-filter {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-btn {
                width: 200px;
                margin-bottom: 10px;
            }
            
            .product-container {
                grid-template-columns: 1fr;
                padding: 20px 10%;
            }

            .contact-info-grid {
                grid-template-columns: 1fr; /* 1 kolom di mobile penuh */
            }
        }

        @media (max-width: 480px) {
            .product-header {
                padding: 40px 20px 20px;
            }
            
            .product-header h1 {
                font-size: 1.8rem;
            }
            
            .product-container {
                padding: 20px 5%;
            }
        }

        /* Login Section */
.login-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.login-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.login-header p {
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Admin Panel */
.admin-panel {
    padding: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.panel-header h2 {
    color: #1e3a8a;
    margin: 0;
}

.logout-btn {
    padding: 8px 16px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #b91c1c;
}

.upload-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.upload-section h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
}

.file-upload {
    position: relative;
    margin-bottom: 15px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-label {
    display: inline-block;
    padding: 12px 20px;
    background: #1e3a8a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #0f172a;
}

.file-name {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.image-preview {
    margin-top: 15px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upload-btn {
    padding: 12px 25px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

/* Product List in Admin Panel */
.product-list h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.admin-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.admin-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-product-info {
    padding: 15px;
}

.admin-product-info h4 {
    margin: 0 0 5px;
    color: #1e3a8a;
    font-size: 1rem;
}

.admin-product-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.delete-btn {
    width: 100%;
    padding: 8px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.delete-btn:hover {
    background: #b91c1c;
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .login-container {
        margin: 0 15px;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}