/* 
   JAKO - Jati Kopi Landing Page
   CSS Styling untuk tampilan elegan dan modern
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Kopi yang Lebih Kaya */
    --color-primary: #5D4037;
    --color-primary-light: #7D5F57;
    --color-primary-dark: #4B2C20;
    --color-secondary: #8D6E63;
    --color-secondary-light: #A58D84;
    --color-secondary-dark: #6D4C41;
    --color-accent: #D7CCC8;
    --color-accent-dark: #BCAAA4;
    --color-accent-light: #F5F5F5;
    --color-dark: #3E2723;
    --color-light: #EFEBE9;
    --color-white: #FFFFFF;
    --color-black: #212121;
    --color-cream: #FFF8E1;
    --color-caramel: #D4A76A;
    --color-mocha: #9C7A5B;
    --color-espresso: #4E342E;
    --color-success: #4CAF50;
    --color-warning: #FFC107;
    --color-gold: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease-in-out;
    --transition-fast: all 0.2s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-light: 0 3px 10px rgba(0, 0, 0, 0.05);
    --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;
}

/* Animasi Dasar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* Kelas Animasi */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideRight 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-spin {
    animation: spin 10s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-light) 50%, var(--color-accent) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    padding: 10px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--color-primary);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.section-header p {
    font-family: var(--font-secondary);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.logo p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin: 0;
}

.nav {
    transition: var(--transition);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-black);
    position: relative;
    padding: 5px 0;
}

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

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

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 8px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 16px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Media Query untuk Tampilan Mobile */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-dark);
        padding: 80px 20px 20px;
        z-index: 1000;
        transition: var(--transition-slow);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    padding: 0;
    overflow: hidden;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
    opacity: 0.7;
    z-index: 0;
    transform: translateZ(-5px) scale(1.5);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Kelas Coffee Bean untuk animasi mengambang */
.coffee-bean {
    position: absolute;
    background-color: var(--color-primary-dark);
    border-radius: 50% 50% 50% 0;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--color-light);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 30px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 0;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background-color: var(--color-light);
}

.product-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-primary);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-white) 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-slow);
    border-radius: var(--border-radius-lg);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-dark);
    border-color: var(--color-caramel);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08) rotate(1deg);
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.product-price {
    margin-bottom: 20px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.unit {
    font-size: 14px;
    color: #888;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--color-white);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: #888;
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--color-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--color-primary);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(93, 64, 55, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-header p {
        font-size: 28px;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-filter {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
}