/* =========================================================
   1. IMPORT FONT & VARIABLES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wdth,wght@100,600&family=Poppins:wght@300&display=swap');

:root {
    --devi-purple: #9b59b6;
    --risma-yellow: #f1c40f;
    --tiara-orange: #e67e22;
    --ziella-green: #27ae60;
    --caca-blue: #2980b9;
    --diva-red: #df1a04;
    --cassie-white: #b6b6b6;
    --florytale-pink: rgba(255, 143, 171, 0.95);
    --florytale-pink-solid: #ff8fab;
    --florytale-pink-shadow: #b66379; 
}

/* --- KEYFRAMES ANIMASI --- */
@keyframes slideTop {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   2. GLOBAL STYLES
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fredoka", sans-serif;
}

html { scroll-behavior: smooth; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

body {
    background-color: #f9f9f9;
    color: #333;
    
    /* STICKY FOOTER SETUP */
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/* Khusus Background Halaman Home */
body.home-page {
    background-image: url('../img/about-us.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* =========================================================
   3. HEADER
   ========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 10000;
    background-color: transparent; 
    backdrop-filter: none;
    box-shadow: none;
    transition: all 0.4s ease;
}

.logo img {
    height: 70px; 
    width: auto;
    display: block;
    object-fit: contain; 
    transition: transform 0.3s ease; 
}

.logo img:hover {
    transform: scale(1.05); 
}

/* WARNA HEADER SAAT SCROLL */
body.window-scroll header {
    background-color: rgba(255, 143, 171, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 3px 20px var(--florytale-pink-shadow);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* =========================================================
   4. SOCIAL ICONS & MENU TRIGGER
   ========================================================= */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 10002;
}

.social-icons {
    display: flex;
    gap: 15px;
    transition: opacity 0.3s;
}

.social-icons a {
    color: #000; 
    font-size: 1.2rem;
}

body.window-scroll .social-icons a {
    color: #fff;
}

body.drawer-visible .social-icons {
    opacity: 0;
    pointer-events: none;
}

/* --- HAMBURGER MENU --- */
.drawer__btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 35px; 
    height: 30px;
    z-index: 10003; 
}

.drawer__btn span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: #000;
}

body.window-scroll .drawer__btn span {
    background-color: #fff;
}

/* --- ANIMASI MENJADI X --- */
body.drawer-visible .drawer__btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #333 !important;
}
body.drawer-visible .drawer__btn span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
body.drawer-visible .drawer__btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #333 !important;
}

/* =========================================================
   5. NAVIGATION
   ========================================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.drawer-visible nav {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-link {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 2.5rem; 
    color: #ffffff; 
    -webkit-text-stroke: 1.5px #000000; 
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0; 
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ff8fab;
    -webkit-text-stroke: 0px transparent;
}

.sub-text {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #888;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 300;
    -webkit-text-stroke: 0;
}

/* Animasi Menu */
body.drawer-visible .nav-link {
    animation: slideTop 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
body.drawer-visible li:nth-child(1) .nav-link { animation-delay: 0.1s; }
body.drawer-visible li:nth-child(2) .nav-link { animation-delay: 0.15s; }
body.drawer-visible li:nth-child(3) .nav-link { animation-delay: 0.2s; }
body.drawer-visible li:nth-child(4) .nav-link { animation-delay: 0.25s; }
body.drawer-visible li:nth-child(5) .nav-link { animation-delay: 0.3s; }

/* =========================================================
   6. SECTIONS (HERO, ABOUT)
   ========================================================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 100px;
}
.hero-btn {
    padding: 15px 40px;
    background-color: var(--florytale-pink-solid);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-btn:hover { background-color: white; color: var(--florytale-pink-solid); }

.about-section {
    min-height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 100px 5% 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    flex: 1; 
    width: 100%;
}
.about-container { max-width: 1200px; width: 100%; }
.about-title { font-size: 3rem; font-weight: bold; color: #000; margin-bottom: 40px; }
.about-content-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text { flex: 1; min-width: 300px; }
.about-text p { font-family: 'Poppins', sans-serif; font-size: 1.1rem; line-height: 1.8; text-align: justify; }

/* =========================================================
   7. MEMBERS (GRID SYSTEM 4-3)
   ========================================================= */
.members { 
    padding: 100px 5%; 
    max-width: 1200px; 
    margin: 0 auto; 
    text-align: center;
    flex: 1; 
    width: 100%;
}
.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
    color: var(--florytale-pink-solid); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

.member-card { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: 0.3s;
    cursor: pointer;
    width: calc(25% - 25px);
    min-width: 220px;
    flex-grow: 0;
}
.member-card:hover { transform: translateY(-10px); }
.member-img { width: 100%; height: 350px; object-fit: cover; }
.member-info { padding: 20px; }
.member-info h3 { font-size: 1.5rem; margin-bottom: 5px; }
.flower-name { color: var(--florytale-pink-solid); font-weight: 600; font-style: italic; }

.member-card.devi:hover { border-bottom: 5px solid var(--devi-purple); }
.member-card.risma:hover { border-bottom: 5px solid var(--risma-yellow); }
.member-card.tiara:hover { border-bottom: 5px solid var(--tiara-orange); }
.member-card.ziella:hover { border-bottom: 5px solid var(--ziella-green); }
.member-card.caca:hover { border-bottom: 5px solid var(--caca-blue); }
.member-card.diva:hover { border-bottom: 5px solid var(--diva-red); }
.member-card.cassie:hover { border-bottom: 5px solid var(--cassie-white); }

/* Responsive Member Grid */
@media (max-width: 992px) {
    .member-card { width: calc(33.33% - 20px); } 
}
@media (max-width: 768px) {
    .member-card { width: calc(50% - 15px); } 
}
@media (max-width: 500px) {
    .member-card { width: 100%; } 
}

/* =========================================================
   8. SCHEDULE & FOOTER
   ========================================================= */
.schedule { 
    padding: 100px 5%; 
    max-width: 900px; 
    margin: 0 auto; 
    flex: 1; 
    width: 100%;
}
.event-list { display: flex; flex-direction: column; gap: 20px; }
.event-item { 
    display: flex; align-items: center; 
    background: white; padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    border-left: 5px solid var(--florytale-pink-solid); 
    transition: 0.3s; cursor: pointer; 
}
.event-item:hover { transform: translateX(10px); background-color: #fff0f5; }

.date-box { background-color: var(--florytale-pink-solid); color: white; padding: 10px 15px; border-radius: 8px; text-align: center; margin-right: 20px; min-width: 80px; }
.date-box span { font-size: 1.8rem; font-weight: bold; display: block; line-height: 1; }
.date-box small { font-size: 0.9rem; text-transform: uppercase; }

footer { 
    background-color: #222; 
    color: #888; 
    text-align: center; 
    padding: 20px; 
    font-size: 0.9rem; 
    margin-top: 0; 
}

/* =========================================================
   9. MODAL POP-UP (LANDSCAPE SLIDER)
   ========================================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 20000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show { display: flex; }

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 20px; 
    width: 100%;
    max-width: 850px; 
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideTop 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 500px; 
}

/* --- BAGIAN KIRI (FOTO & SLIDER) --- */
.modal-left {
    flex: 2; /* 40% Lebar */
    background-color: #eee;
    position: relative;
    min-height: 300px;
    user-select: none; /* Cegah teks/gambar terblok saat klik */
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Tombol Slider (Panah) */
.slider-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px; /* Center Vertical */
    padding: 0;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.slider-btn:hover {
    background-color: rgba(255, 143, 171, 0.9);
    transform: scale(1.1);
}

.hide-btn { display: none !important; }

/* --- BAGIAN KANAN (INFO) --- */
.modal-right {
    flex: 3; /* 60% Lebar */
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.modal-right h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 5px;
    font-weight: 700;
}

.modal-flower-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--florytale-pink-solid); 
}

.modal-bio {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.modal-stats {
    width: 100%;
    margin-bottom: 30px;
    text-align: left; 
    padding-left: 20px; 
}
.stat-item {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
}
.stat-label {
    font-weight: 700; 
    width: 100px; 
    display: inline-block;
    color: #555;
}

.modal-socials {
    display: flex;
    gap: 20px;
    margin-top: auto; 
}
.modal-socials a {
    font-size: 2rem; 
    color: #333;
    transition: 0.3s;
}
.modal-socials a:hover {
    transform: scale(1.1);
    color: var(--florytale-pink-solid);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: 0.3s;
}
.close-btn:hover { color: #000; }

/* Responsive Mobile Modal */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column; 
        max-width: 400px;
        height: auto;
    }
    .modal-left {
        height: 350px; 
        flex: none;
    }
    .modal-right {
        padding: 30px 20px;
    }
    .modal-stats {
        padding-left: 0;
        text-align: center; 
    }
    .stat-item { justify-content: center; }
    .stat-label { width: auto; margin-right: 10px; }
    
    /* Responsive Header & Nav */
    .header { padding: 0 20px; }
    .nav-link { font-size: 1.8rem; }
    .about-content-wrapper { flex-direction: column; }
    .social-icons { display: none; } 
}

/* =========================================================
   10. CONTACT PAGE STYLING
   ========================================================= */
.contact-section {
    padding: 120px 5% 50px; /* Jarak dari atas agar tidak ketutup header */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #ffe6ef, #fff3f3); /* Gradasi Pink lembut ke Putih */
    text-align: center;
    flex: 1; /* Sticky footer logic */
    width: 100%;
}

.contact-container {
    width: 100%;
    max-width: 800px;
}

/* Judul "Contact Us" */
.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

/* Garis Pink dibawah Judul (Aksen Dekorasi) */
.contact-title::after {
    content: '';
    display: block;
    width: 60px; /* Panjang garis */
    height: 5px; /* Tebal garis */
    background-color: var(--florytale-pink-solid);
    margin: 10px auto 0; /* Posisi di tengah */
    border-radius: 5px;
}

/* Subjudul */
.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Kartu Kotak Tengah */
.contact-card {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat dihover */
}

.inquiry-text {
    font-size: 1rem;
    color: #888;
    margin-bottom: 15px;
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--florytale-pink-solid);
    margin-bottom: 5px;
    font-family: "Fredoka", sans-serif;
}

.pic-name {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Icon Sosmed di dalam Kartu */
.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.contact-social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #ffbebe;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    background-color: var(--florytale-pink-solid);
    color: white;
    transform: scale(1.1);
}

/* Khusus Warna WhatsApp saat hover */
.contact-social-links a.wa-icon:hover {
    background-color: #25D366; /* Warna Hijau WA */
}

/* Responsive untuk HP */
@media (max-width: 768px) {
    .contact-title { font-size: 2.5rem; }
    .phone-number { font-size: 1.8rem; }
    .contact-card { padding: 30px 20px; }
}