:root {
    --pink: #ff3385;
    --black: #000000;
    --deep-black: #0a0a0a;
    --white: #ffffff;
    --gold: #d4af37;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- REVEAL ANIMASI --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 8%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 51, 133, 0.2);
}
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: white; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active-link { color: var(--pink); }

/* --- PAGES --- */
.page {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

/* --- HERO --- */
.hero-page {
    background: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1470') center/cover;
    text-align: center;
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); }
.hero-page .content { position: relative; z-index: 2; }
.hero-page h1 { font-family: 'Playfair Display'; font-size: clamp(2.5rem, 6vw, 5rem); }

/* --- ABOUT --- */
.about-page {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('Foto/IMG_9212.JPG') center/cover fixed;
    text-align: center;
}

/* --- EVENT GRID --- */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }
.reverse { direction: rtl; }
.reverse .text-side { direction: ltr; }
.text-side h2 { font-family: 'Playfair Display'; font-size: 2.5rem; color: var(--pink); margin-bottom: 20px; }
.image-side { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(255, 51, 133, 0.2); }
.event-img { width: 100%; height: 450px; object-fit: cover; display: block; transition: 0.5s; }
.event-img:hover { transform: scale(1.05); }

/* --- WINNER SECTION --- */
.winner-section-bg {
    background: url('Foto/IMG_9212.JPG') center/cover fixed;
    text-align: center;
}
.winner-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.75); }
.winner-content { position: relative; z-index: 2; }

/* --- BUTTONS --- */
.btn-primary {
    padding: 15px 40px; background: var(--pink); color: white;
    text-decoration: none; font-weight: bold; border-radius: 50px;
    display: inline-block; transition: 0.3s; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255, 51, 133, 0.4); }

.btn-detail {
    display: inline-block; margin-top: 20px; padding: 10px 30px; border: 2px solid var(--pink);
    color: var(--pink); text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s;
}
.btn-detail:hover { background: var(--pink); color: white; }

.line { width: 60px; height: 3px; background: var(--pink); margin: 20px auto; }
.category { color: var(--pink); letter-spacing: 5px; font-weight: bold; font-size: 0.8rem; }

/* --- FOOTER --- */
.footer-page { background: var(--deep-black); text-align: center; padding: 80px 20px; }
.social-links { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.soc-item { width: 50px; height: 50px; border: 1px solid var(--pink); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pink); transition: 0.3s; font-size: 20px; }
.soc-item:hover { background: var(--pink); color: white; transform: translateY(-5px); }
.copyright { margin-top: 40px; font-size: 0.8rem; color: #666; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; cursor: pointer; }
    .menu-toggle .bar { display: block; width: 25px; height: 3px; background: var(--pink); margin: 5px; transition: 0.3s; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: #000; flex-direction: column; justify-content: center; align-items: center; transition: 0.5s;
    }
    .nav-links.active { right: 0; }
    .content-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .event-img { height: 300px; }
    .reverse { direction: ltr; }
}



/* Container Utama */
.event-gallery {
    padding: 100px 8%;
    background-color: #000;
}

.dark-bg { background-color: #0a0a0a; }

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 1px;
}

.line-center {
    width: 60px;
    height: 3px;
    background: #ff3385;
    margin: 20px auto;
}

/* GRID SYSTEM - Menjaga Kerapian */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom di Desktop */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* KOTAK FOTO - UKURAN TETAP APAPUN FOTONYA */
.img-container {
    width: 100%;
    aspect-ratio: 3 / 4; /* Rasio Portrait Standar Pageant */
    overflow: hidden;
    border: 1px solid rgba(255, 51, 133, 0.2);
    border-radius: 4px;
    background: #111;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memotong foto agar memenuhi kotak tanpa gepeng */
    object-position: top center; /* Prioritas potongan pada area wajah/atas */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efek Hover */
.gallery-item-winner:hover img {
    transform: scale(1.08);
}

/* TEXT WINNER */
.winner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ff3385;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.winner-name {
    margin-top: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #fff;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); } /* 2 kolom di Tablet */
}

@media (max-width: 576px) {
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom agar rapi di HP */
        gap: 15px;
    }
    .gallery-header h2 { font-size: 1.5rem; }
}

/* Mengatur grid agar stabil */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsif: minimal 250px */
    gap: 15px; /* Jarak antar foto */
    padding: 20px;
}

/* Mengatur bingkai foto */
.gallery-item {
    width: 100%;
    height: 300px; /* Tentukan tinggi seragam di sini */
    overflow: hidden; /* Memotong bagian gambar yang keluar dari bingkai */
    border-radius: 8px; /* Opsional: agar sudut sedikit melengkung */
}

/* Mengatur gambar di dalam bingkai */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KUNCI UTAMA: Gambar akan mengisi kotak tanpa gepeng/distorsi */
    object-position: center; /* Memastikan bagian tengah foto tetap terlihat */
    transition: transform 0.3s ease; /* Opsional: efek halus saat di-hover */
}

/* Efek Hover (Opsional) */
.gallery-item img:hover {
    transform: scale(1.05); /* Sedikit zoom saat kursor di atas foto */
}

/* Pengaturan Navbar agar tetap ramping */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%; /* Padding atas bawah diperkecil */
    height: 70px;    /* Mengunci tinggi navbar */
    background: #000000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mengunci ukuran logo agar tidak meluber */
.logo-container {
    display: flex;
    align-items: center;
    max-width: 180px; /* Membatasi lebar area logo */
}

.site-logo {
    height: 150px;    /* UKURAN KECIL: Ubah ke 30px jika masih merasa kebesaran */
    width: auto;     /* Menjaga proporsi */
    object-fit: contain;
    display: block;
}

/* Tambahan: Pastikan teks lama "RISSA ALZAHRA" sudah dihapus dari HTML */

/* Partnership Section Styles */
.partnership-page {
    background-color: #000000; /* Putih bersih atau sesuaikan dengan tema */
    padding: 80px 0;
    text-align: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
    padding: 0 20px;
}

.logo-item img {
    max-width: 140px;
    filter: grayscale(100%); /* Membuat logo hitam putih agar elegan */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%); /* Berwarna kembali saat di-hover */
    opacity: 1;
    transform: scale(1.1);
}

.cta-partnership {
    margin-top: 60px;
}

.cta-partnership p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-style: italic;
}

:root {
    --pink: #ff3385;
    --black: #000000;
    --deep-black: #0a0a0a;
    --white: #ffffff;
    --gold: #d4af37;
    --gray: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 8%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 51, 133, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 130px; /* Ukuran proporsional untuk navbar */
    width: auto;
    object-fit: contain;
}

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: white; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; }
.nav-links a:hover { color: var(--pink); }

/* --- GALLERY CONTAINER --- */
.container-gallery {
    padding: 120px 8% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin: 60px 0 40px;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
    margin: 10px 0;
    text-transform: uppercase;
}

.category {
    color: var(--pink);
    letter-spacing: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

.line-center {
    width: 80px;
    height: 3px;
    background: var(--pink);
    margin: 15px auto;
}

/* --- GRID SYSTEM --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.gallery-item-winner {
    background: #111;
    padding: 15px;
    border: 1px solid #222;
    transition: 0.4s ease;
    text-align: center;
}

.gallery-item-winner:hover {
    border-color: var(--pink);
    transform: translateY(-10px);
}

/* KUNCI RAPI: Foto Portrait 3:4 */
.winner-img-container {
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    margin-bottom: 15px;
    background: #000;
}

.winner-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: 0.5s;
}

.gallery-item-winner:hover img {
    transform: scale(1.1);
}

/* TEXT STYLING */
.winner-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.winner-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
}

/* --- FOOTER --- */
footer {
    background: var(--deep-black);
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #222;
}

.footer-line {
    width: 50px;
    height: 2px;
    background: var(--pink);
    margin: 20px auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.soc-item {
    width: 45px;
    height: 45px;
    border: 1px solid var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    text-decoration: none;
    transition: 0.3s;
}

.soc-item:hover {
    background: var(--pink);
    color: white;
}

.copyright {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .nav-links {
        position: fixed; top: 80px; right: -100%; width: 100%; height: calc(100vh - 80px);
        background: rgba(0,0,0,0.95); flex-direction: column; align-items: center; padding-top: 50px; transition: 0.4s;
    }
    .nav-links.active { right: 0; }
    
    .menu-toggle { display: block; cursor: pointer; }
    .menu-toggle .bar { display: block; width: 25px; height: 3px; background: var(--pink); margin: 5px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di HP agar tetap rapi */
        gap: 15px;
    }
    
    .gallery-item-winner { padding: 10px; }
    .winner-name { font-size: 0.9rem; }
}
