/* Reset dan font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}
.logo img {
    justify-content: center;
    align-items: center;
    margin-right: 0.5rem;

}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 2rem;
}
nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s, transform 0.3s;
}
nav ul li a:hover {
    color: #4facfe;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: clamp(300px, 50vh, 520px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(100px, 8vw, 90px) clamp(0px, 6vw, 80px);
    color: white;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    gap: 2rem;
}

/* Content */
.hero-content {
    flex: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
}

/* Button */
.cta-button {
    background: #fff;
    color: #4facfe;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Image */
.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 1.5s ease-out;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* News */
.news {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    color: #333;
}
.news h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-item {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.news-item:hover {
    transform: scale(1.05);
}
.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-item h3 {
    padding: 1rem;
}
.news-item p {
    padding: 0 1rem;
}
.btn {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #4facfe;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn:hover {
    background: #00c6fb;
}

/* Materials */
.materials {
    padding: 4rem 2rem;
    background: #f4f4f4;
    text-align: center;
}
.materials h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.material-item {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
}
.material-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}
.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.material-item h3 {
    margin-bottom: 1rem;
}

/* Gallery */
.gallery {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
}
.gallery h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Contact */
.contact {
    padding: 4rem 2rem;
    background: #f4f4f4;
}
.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#contact-form input, #contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s;
}
#contact-form input:focus, #contact-form textarea:focus {
    border-color: #4facfe;
    outline: none;
}
#contact-form button {
    background: #4facfe;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
#contact-form button:hover {
    background: #00c6fb;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #2c3e50;
    color: white;
}
.social-links a {
    color: #4facfe;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Responsif */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Sederhanakan untuk mobile */
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .news-grid, .material-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
}