/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #021037;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.navbar .logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

/* Default nav-links (desktop) */
.navbar .nav-links {
    list-style: none;
    gap: 20px;
}

/* Desktop tampil flex */
@media (min-width: 769px) {
    .navbar .nav-links {
        display: flex;
    }
}

/* Link style */
.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

/* Hover animasi */
.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ffcc80;
    transition: width 0.3s ease;
}

.navbar .nav-links li a:hover::after {
    width: 100%;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('img/coffee-bg.jpeg') no-repeat center center/cover;
    color: #fff;
    padding: 140px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: auto;
}

/* Container */
.container {
    padding: 60px;
    text-align: center;
}

/* Grid Menu */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item h3 {
    color: #3e2723;
    margin-bottom: 10px;
}

/* Profil */
.profil {
    max-width: 900px;
    margin: auto;
    text-align: left;
}

.profil h1 {
    color: #3e2723;
    margin-bottom: 20px;
}

.profil p {
    font-size: 18px;
    margin-bottom: 15px;
}

.team {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.team img {
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: #021037;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffcc80;
}

/* Tombol */
button, .btn {
    background: #3e2723;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background: #ffcc80;
    color: #3e2723;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Animasi Fade-In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none; /* hidden default */
        flex-direction: column;
        width: 100%;
        background: #021037;
        margin-top: 10px;
        padding: 10px 0;
        border-radius: 6px;
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .nav-links.show {
        display: flex; /* tampil saat hamburger ditekan */
        animation: slideDown 0.3s ease;
    }

    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .container { padding: 30px; }
    .menu-grid { grid-template-columns: 1fr; }
    .team { flex-direction: column; text-align: center; }
    .team img { width: 100%; max-width: 250px; }
}

@media (max-width: 480px) {
    .navbar .logo span { font-size: 18px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    .menu-item { padding: 15px; }
}

/* Animasi slide-down untuk menu mobile */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
