/* File: assets/css/custom.css - CSS untuk desain wireframe */

/* ===== VARIABLES ===== */
:root {
    --primary: #2A6EBB;
    --secondary: #4CAF50;
    --accent: #FFC107;
    --dark: #1E3A5F;
    --light: #F8F9FA;
    --text: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --yellow-light: rgba(255, 255, 240, 0.9);
    --blur-bg: rgba(255, 255, 255, 0.85);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark);
    min-width: 200px;
}

.logo-area img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

/* Navigation */
.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Donasi Button */
.btn-donasi {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 30px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-donasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 110, 187, 0.3);
}

.btn-donasi::after {
    display: none !important;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
}

.flag-btn {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.flag-id {
    background-image: url('../images/indonesia-flag.png');
}

.flag-en {
    background-image: url('../images/usa-flag.png');
}

.flag-active {
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-lang-switch {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

/* ===== HERO SECTION ===== */
.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 60px;
    max-width: 800px;
}

/* ===== GRID HOME (Wireframe Layout) ===== */
.grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card-wrap {
    background: var(--blur-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-home {
    height: 300px;
    overflow: hidden;
}

.card-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-wrap:hover .card-home img {
    transform: scale(1.05);
}

/* Caption Frame (Kuning Pucat Translucent) */
.caption-home {
    background: var(--yellow-light);
    padding: 20px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.caption-home h3 {
    font-size: 1.5rem;
    color: var(--dark);
    text-align: center;
    margin: 0;
}

.caption-home p {
    color: var(--text);
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== WHATSAPP FLOAT ===== */
.fab-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s;
}

.fab-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.fab-wa img {
    width: 35px;
    height: 35px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .grid-home {
        gap: 20px;
    }
    
    .card-home {
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .logo-area {
        min-width: auto;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    /* Hero Mobile */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    /* Grid Mobile */
    .grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-home {
        height: 200px;
    }
    
    .caption-home {
        min-height: 120px;
        padding: 15px;
    }
    
    .caption-home h3 {
        font-size: 1.3rem;
    }
    
    /* WhatsApp Float Mobile */
    .fab-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .fab-wa img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    .btn-donasi {
        padding: 8px 20px !important;
        font-size: 14px;
    }
}