/* style.css */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.beranda-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.navbar-logo {
    width: 40px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.main-title {
    font-size: 3.5rem;
    color: #3e2723;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    color: #5d4037;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 2rem;
    color: #8d6e63;
    margin-bottom: 20px;
    text-align: center;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #6d4c41;
    font-style: italic;
    margin: 0 15px;
    text-align: center;
}

.tagline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.tagline-line {
    width: 50px;
    height: 2px;
    background-color: #8d6e63;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.nav-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #5d4037;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #5d4037;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: #d7ccc8;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #d7ccc8;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #5d4037;
    transition: all 0.3s ease-in-out;
}

/* Section Styles */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Beranda Section */
.beranda {
    background: linear-gradient(135deg, #f9f5f0 0%, #efebe9 100%);
    position: relative;
}

.beranda .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.content-left {
    flex: 1;
    padding-right: 50px;
}

.content-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.description {
    font-size: 1.1rem;
    color: #6d4c41;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.8;
}

.btn-order {
    display: inline-block;
    background-color: #8d6e63;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #8d6e63;
}

.btn-order:hover {
    background-color: transparent;
    color: #8d6e63;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    position: relative;
}

.image-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d7ccc8 0%, #bcaaa4 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.beranda-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 39, 35, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    background-image: url('assets/BRAND LOGO.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 40px;
    border-radius: 10px;
    display: inline-block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #8d6e63;
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 6px;
    height: 10px;
    background-color: #8d6e63;
    border-radius: 3px;
    margin-top: 10px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* About Section */
.about {
    background-color: #fff;
}

.section-header {
    margin-bottom: 60px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    padding-right: 50px;
}

.welcome-title {
    font-size: 2.5rem;
    color: #3e2723;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 15px;
    color: #5d4037;
    line-height: 1.7;
}

.social-media {
    margin-top: 30px;
}

.social-media p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #5d4037;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #8d6e63;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #5d4037;
    transform: translateY(-5px);
}

.about-image {
    flex: 1;
}

.about-image .image-frame {
    height: 350px;
}

/* Layanan Section */
.layanan {
    background-color: #f5f0eb;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #8d6e63;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.3rem;
    color: #5d4037;
    margin-bottom: 15px;
}

.service-card p {
    color: #6d4c41;
    font-size: 0.95rem;
}

/* Menu Makanan Section */
.menu-makanan {
    background-color: #fff;
}

.menu-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.category {
    padding: 10px 25px;
    background-color: #f5f0eb;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #8d6e63;
    transition: all 0.3s ease;
}

.category:hover, .category.active {
    background-color: #8d6e63;
    color: white;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.menu-item {
    text-align: center;
    background-color: #f9f5f0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 100%;
    height: 150px;
    background-color: #d7ccc8;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.menu-item h4 {
    color: #5d4037;
    margin-bottom: 10px;
}

.menu-item p {
    color: #8d6e63;
    font-weight: 600;
}

/* Menu Minuman Section */
.menu-minuman {
    background-color: #f5f0eb;
}

.coffee-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.coffee-type h4 {
    font-size: 1.3rem;
    color: #5d4037;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d7ccc8;
}

.coffee-type ul {
    list-style: none;
}

.coffee-type li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #d7ccc8;
    color: #6d4c41;
}

.coffee-type li:last-child {
    border-bottom: none;
}

.coffee-type li span {
    font-weight: 600;
    color: #8d6e63;
}

.special-offer {
    background-color: #8d6e63;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.special-offer h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.special-offer p {
    font-size: 1.1rem;
}

/* Location Section */
.location {
    background-color: #fff;
}

.location-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.location-info {
    flex: 1;
}

.location-info p {
    margin-bottom: 20px;
    color: #5d4037;
    line-height: 1.7;
}

.contact-info h4 {
    color: #5d4037;
    margin-top: 25px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info h4 i {
    color: #8d6e63;
}

.contact-info p {
    margin-bottom: 5px;
    color: #6d4c41;
}

.location-map {
    flex: 1;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #d7ccc8;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.map-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 64, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay p {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.map-overlay i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Footer */
.footer {
    background-color: #3e2723;
    color: #d7ccc8;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: #efebe9;
    margin-bottom: 10px;
}

.footer-logo p {
    font-style: italic;
}

.footer-links h4, .footer-social h4 {
    color: #efebe9;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d7ccc8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #efebe9;
}

.footer-social .social-icons a {
    background-color: #5d4037;
}

.footer-social .social-icons a:hover {
    background-color: #8d6e63;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #5d4037;
    color: #bcaaa4;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .beranda .container {
        flex-direction: column;
        text-align: center;
    }
    
    .content-left {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .about-content, .location-content {
        flex-direction: column;
    }
    
    .about-text, .location-info {
        padding-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .beranda-logo {
        width: 120px;
    }

    .navbar-logo {
        width: 30px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .image-placeholder {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .menu-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category {
        width: 200px;
        text-align: center;
    }
}