/* ============================================
   AFSHAN - HOMEMADE CAKES & SAVORY
   Elegant & Modern Website with Impactful Colors
   ============================================ */

:root {
    /* Impactful Color Palette */
    --primary-terracotta: #c4623d;
    --primary-dark: #8b4513;
    --primary-light: #e8a87c;
    --cream: #faf6f1;
    --dark-chocolate: #2d1810;
    --gold-accent: #d4a574;
    --error: #e74c3c;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--dark-chocolate);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(196, 98, 61, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-terracotta);
    font-family: var(--font-display);
}

.logo-icon {
    /* font-size: 2rem;
    animation: float 3s ease-in-out infinite; */

    width: 50px;  /* Lebar tetap */
    height: auto;   /* Tinggi otomatis agar proporsional */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--dark-chocolate);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-terracotta);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-chocolate);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cream) 0%, #f5ede3 50%, var(--cream) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 98, 61, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--dark-chocolate);
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    line-height: 1.1;
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--primary-terracotta);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-sans);
    font-weight: 400;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--primary-terracotta), var(--primary-dark));
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(196, 98, 61, 0.3);
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
    max-width: fit-content;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 98, 61, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cake {
    position: absolute;
    font-size: 5rem;
    animation: float 4s ease-in-out infinite;
    cursor: grab;
}

.cake-1 {
    animation-delay: 0s;
    top: 20%;
    right: 20%;
}

.cake-2 {
    animation-delay: 0.5s;
    top: 50%;
    left: 10%;
    font-size: 4rem;
}

.cake-3 {
    animation-delay: 1s;
    bottom: 20%;
    right: 30%;
    font-size: 4.5rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-terracotta), var(--primary-light));
    clip-path: polygon(0 50%, 100% 0%, 100% 100%, 0% 100%);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   CATALOG SECTION
   ============================================ */

.catalog-section {
    background: var(--cream);
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--dark-chocolate);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-terracotta), var(--gold-accent));
    border-radius: 2px;
}

.controls-area {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-end;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) calc(var(--spacing-md) + 35px);
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-terracotta);
    box-shadow: 0 0 0 3px rgba(196, 98, 61, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--primary-light);
    background-color: transparent;
    color: var(--dark-chocolate);
    border-radius: 25px;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-terracotta);
    color: var(--primary-terracotta);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-terracotta), var(--primary-dark));
    color: white;
    border-color: var(--primary-terracotta);
}

.sort-box {
    min-width: 150px;
}

.sort-box select {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--primary-light);
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-chocolate);
}

.sort-box select:focus {
    outline: none;
    border-color: var(--primary-terracotta);
    box-shadow: 0 0 0 3px rgba(196, 98, 61, 0.1);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    animation: fadeIn 0.5s ease-out;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.5s ease-out;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 98, 61, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--gold-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 98, 61, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-content {
    padding: var(--spacing-md);
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-terracotta);
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--dark-chocolate);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid #eee;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-terracotta);
    font-weight: 700;
}

.view-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--primary-terracotta);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: #999;
    font-size: 1.2rem;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--dark-chocolate);
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: var(--primary-terracotta);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.modal-image {
    width: 100%;
    min-height: 300px;
}

.modal-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--gold-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dark-chocolate);
    margin-bottom: var(--spacing-md);
}

.modal-category {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--primary-terracotta);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.modal-info p {
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.modal-price {
    margin-bottom: var(--spacing-md);
}

.price-tag {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-terracotta);
    font-weight: 700;
}

.modal-details {
    padding: var(--spacing-md);
    background-color: var(--cream);
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-terracotta);
}

.order-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-terracotta), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(196, 98, 61, 0.3);
}

.order-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 98, 61, 0.4);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: linear-gradient(135deg, var(--cream) 0%, #f5ede3 100%);
    padding: var(--spacing-xl) var(--spacing-md);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dark-chocolate);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1rem;
}

.about-features {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.about-features li {
    padding: var(--spacing-sm) 0;
    color: var(--dark-chocolate);
    font-weight: 500;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    grid-template-rows: auto auto;
}

.about-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 98, 61, 0.2);
}

.about-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

.about-card h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-terracotta);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, var(--primary-terracotta), var(--primary-dark));
    padding: var(--spacing-xl) var(--spacing-md);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, var(--gold-accent), var(--primary-light));
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1250px;
}

.contact-item {
    display: flex;
    gap: var(--spacing-xs);
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gold-accent);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-item p a {
    color: inherit;            /* Mengikuti warna teks di sekitarnya */
    text-decoration: none;     /* Menghapus garis bawah */
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-chocolate);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.footer p {
    margin: var(--spacing-xs) 0;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-visual {
        display: none;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .controls-area {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .search-box,
    .sort-box {
        min-width: unset;
        width: 100%;
    }

    .filters {
        width: 100%;
        justify-content: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .product-card {
        border-radius: 10px;
    }

    .modal-content {
        width: 95%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }

    .product-image {
        height: 150px;
        font-size: 3rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }

    .cta-button {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .price-tag {
        font-size: 1.5rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }
}
