/* ===========================
   CSS Reset & Base Styles
=========================== */
:root {
    /* 🎨 Warna Utama (Maroon) */
    --primary: #800000;
    --primary-light: #a00000;
    --primary-dark: #600000;

    /* 🌟 Warna Aksen (Golden) */
    --secondary: #d4a017;
    --secondary-light: #e6b422;
    --secondary-dark: #b8860b;

    /* ⚪ Warna Netral */
    --light: #fff5f5;
    --light-gray: #f8e8e8;
    --medium-gray: #e0c8c8;
    --dark: #2a0a0a;
    --darker: #1a0505;

    /* ✅ Warna Status */
    --success: #228B22;
    --danger: #CC0000;

    /* ✍️ Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* 🌫️ Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* ⏩ Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===========================
   Layout Helpers
=========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 4rem 0; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    position: relative;
    display: inline-block;
    color: var(--darker);
}
.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===========================
   Buttons
=========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background-color: var(--secondary);
    color: var(--darker);
}
.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   Header & Navigation
=========================== */
header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo-container { display: flex; align-items: center; gap: 1rem; }
.logo { height: 50px; transition: var(--transition); }
.logo:hover { transform: scale(1.05); }

nav.desktop-nav {
    display: flex;
    gap: 1.5rem;
}
nav.desktop-nav a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}
nav.desktop-nav a:hover { color: var(--primary); }
nav.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}
nav.desktop-nav a:hover::after { width: 100%; }

/* Tombol menu mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    z-index: 1001;
    transition: var(--transition);
}
.mobile-menu-btn:hover { color: var(--primary); }

/* ===========================
   Mobile Navigation
=========================== */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav.desktop-nav { display: none; }
}
.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 40%;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
    padding: 0.75rem 0;
    width: 50%;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.close-mobile-menu {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.75rem;
    background: none;
    border: none;
    color: var(--dark);
}

/* ===========================
   Hero Section
=========================== */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-buttons {
    display: flex; gap: 1rem; justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===========================
   Main Content (Organisasi)
=========================== */
.main-content { padding: 4rem 0; }

.org-structure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}
.org-level {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

/* Kartu anggota */
.member-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 200px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.member-photo {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    margin: 0 auto 1rem;
    transition: var(--transition);
}
.member-card:hover .member-photo {
    border-color: var(--secondary-dark);
    transform: scale(1.05);
}
.member-name {
    font-weight: 700;
    color: var(--darker);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.member-position {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    display: inline-block;
}

/* ===========================
   Modal (Detail Anggota)
=========================== */
.modal {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active { display: flex; opacity: 1; }
.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    width: 90%; max-width: 700px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal.active .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute; top: 1rem; right: 1rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
    background: none;
    border: none;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.close-modal:hover {
    color: var(--danger);
    background-color: rgba(239,68,68,0.1);
}

/* ===========================
   Footer
=========================== */
footer {
    background-color: var(--darker);
    color: white;
    padding: 4rem 0 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: white;
}
.footer-column h3::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px;
    background-color: var(--secondary);
}
.footer-column p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.quick-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}
.quick-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: var(--transition);
    color: white; font-size: 1.1rem;
}
.social-link:hover {
    background-color: var(--secondary);
    color: var(--darker);
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===========================
   Animations
=========================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 992px) {
    .section-padding { padding: 3rem 0; }
    .hero { padding: 5rem 0; }
    .modal-header { flex-direction: column; text-align: center; }
    .modal-photo { margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 250px; }
    .section-title h2 { font-size: 1.75rem; }
    .member-card { width: 160px; padding: 1.25rem; }
    .member-photo { width: 80px; height: 80px; }
    .modal-content { padding: 1.5rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    .section-padding { padding: 2.5rem 0; }
    .section-title { margin-bottom: 2rem; }
    .member-card { width: 140px; padding: 1rem; }
    .member-name { font-size: 1rem; }
    .member-position { font-size: 0.8rem; }
    .footer-content { grid-template-columns: 1fr; }
}
