:root {
    --bg-color: #0f1014;
    --card-bg: #1a1b22;
    --card-bg-glass: rgba(26, 27, 34, 0.7);
    --accent-color: #f37b25; /* Orange accent */
    --accent-color-hover: #e06814;
    --text-main: #f0f0f5;
    --text-muted: #9ba0aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #ffffff;
}

.text-accent {
    color: var(--accent-color);
}

.text-muted {
    color: var(--text-muted);
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--card-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.navbar-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(rgba(15, 16, 20, 0.7), rgba(15, 16, 20, 0.9)), url('../assets/hero_bg.jpg') center/cover no-repeat;
    position: relative;
}

.neon-text {
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--accent-color),
        0 0 40px var(--accent-color),
        0 0 80px var(--accent-color);
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    min-height: 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    min-height: 80px;
}

.hero-desc {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.2s ease;
    min-height: 30px;
}

.neon-text-sm {
    text-shadow: 
        0 0 2px #fff,
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color),
        0 0 20px var(--accent-color);
    font-weight: 500;
}

.type-effect.typing::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--accent-color);
}

@keyframes blink {
    50% { opacity: 0; }
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 123, 37, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

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

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    animation: fadeIn 1.5s ease;
}

.stat-item {
    background: var(--card-bg);
    padding: 20px 40px;
    border-radius: 16px;
    border: var(--glass-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Structure & Members */
.structure-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.structure-level {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.member-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    width: 250px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(243,123,37,0.05) 0%, rgba(26,27,34,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(243, 123, 37, 0.3);
}

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

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-color);
    background-color: #2a2b36;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member-role {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-nim {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--text-main);
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Info & Gallery Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: var(--glass-border);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-image {
    width: 100%;
    height: 200px;
    background: #2a2b36;
    object-fit: cover;
}

.info-content {
    padding: 20px;
}

.info-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Gallery */
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #2a2b36;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(0deg, rgba(15,16,20,0.9) 0%, rgba(15,16,20,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: var(--glass-border);
    margin-top: 80px;
    color: var(--text-muted);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .menu-toggle {
        display: block;
    }
    .desktop-btn {
        display: none;
    }
    .navbar {
        padding: 15px 20px;
        flex-wrap: nowrap;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 27, 34, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
        border-bottom: var(--glass-border);
    }
    .navbar-nav.active {
        display: flex;
        animation: fadeInDown 0.3s ease forwards;
    }
    .mobile-only {
        display: block;
        margin-top: 10px;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .structure-level {
        flex-direction: column;
        gap: 20px;
    }
    .member-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .stats {
        flex-direction: column;
    }
    .stat-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    .navbar-brand {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    .brand-text {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .grid-3, .members-grid {
        grid-template-columns: 1fr;
    }
    .member-card {
        max-width: 100%;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}


/* ===== Responsive hardening / accessibility ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(243, 123, 37, 0.55);
    outline-offset: 3px;
}

.navbar {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.navbar-brand {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hero-title {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero-desc {
    overflow-wrap: anywhere;
}

.stats {
    flex-wrap: wrap;
}

.gallery-overlay {
    pointer-events: none;
}

.gallery-overlay a,
.gallery-overlay button {
    pointer-events: auto;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

@media (max-width: 992px) {
    .navbar-brand {
        max-width: calc(100% - 100px);
    }

    .hero-title {
        font-size: clamp(2.6rem, 7vw, 3.2rem);
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 0;
        border-radius: 10px;
        background: transparent;
    }

    .navbar-nav {
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero {
        min-height: 100svh;
        padding-top: 96px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 2.8rem);
        min-height: 0;
    }

    .hero-subtitle,
    .hero-desc {
        min-height: 0;
    }

    .hero-subtitle {
        letter-spacing: 2px;
    }

    .stats {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .stat-item {
        width: 100%;
    }

    .structure-level {
        width: 100%;
    }

    .gallery-overlay {
        opacity: 1;
        pointer-events: auto;
        padding: 50px 15px 15px;
    }

    .gallery-item:hover .gallery-image {
        transform: none;
    }

    .gallery-item {
        touch-action: manipulation;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 58px);
        font-size: 1rem;
    }

    .brand-text {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero {
        padding-top: 88px;
    }

    .hero-subtitle {
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 2.4rem);
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .section-title {
        font-size: clamp(1.55rem, 7vw, 1.8rem);
    }

    .container {
        width: 100%;
    }

    .btn {
        min-height: 44px;
    }

    footer {
        padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
