/* Base Styles & Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --primary-green: #2ecc71;
    --primary-green-tea: #90d38c;
    --gradient-green: linear-gradient(135deg, #2ecc71, #27ae60);
    --gradient-green-tea: linear-gradient(135deg, #a8e063, #56ab2f);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.highlight {
    color: var(--primary-green-tea);
    background: var(--gradient-green-tea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--bg-dark);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(144, 211, 140, 0.3);
    box-shadow: 0 15px 40px rgba(86, 171, 47, 0.1);
}

.gradient-bg {
    background: var(--gradient-green-tea);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-darker);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-green-tea);
    color: var(--bg-darker);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(168, 224, 99, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title .line {
    height: 4px;
    width: 60px;
    background: var(--gradient-green-tea);
    margin: 0 auto;
    border-radius: 2px;
}

/* Background Orbs */
.bg-orbs {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden; z-index: -2; pointer-events: none;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3;
    animation: drift 25s infinite alternate ease-in-out;
}
.orb-1 { width: 50vw; height: 50vw; background: rgba(86, 171, 47, 0.4); top: -10%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: rgba(46, 204, 113, 0.3); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(168, 224, 99, 0.2); top: 40%; left: 30%; animation-delay: -15s; }

@keyframes drift {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(100px, -50px) scale(1.2); }
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 10000; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background: var(--primary-green-tea); }
.cursor-outline {
    width: 40px; height: 40px; border: 2px solid rgba(144, 211, 140, 0.5);
    transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-outline.hovering {
    width: 60px; height: 60px; background: rgba(144, 211, 140, 0.1); border-color: var(--primary-green-tea);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(144, 211, 140, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-green-tea);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-green-tea);
    z-index: 10000;
    transition: width 0.1s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green-tea);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-green-tea);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-green-tea);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(86, 171, 47, 0.05) 0%, rgba(5, 5, 5, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Animated gradient blobs */
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

.hero-bg::before {
    top: -10%;
    right: -10%;
    background: rgba(168, 224, 99, 0.2);
}

.hero-bg::after {
    bottom: -10%;
    left: -10%;
    background: rgba(86, 171, 47, 0.2);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-top: 50px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-main);
}

.kabinet-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(86, 171, 47, 0.1);
    border: 1px solid rgba(168, 224, 99, 0.3);
    border-radius: 50px;
    color: var(--primary-green-tea);
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    height: 30px; /* fixed height for typing */
}

.typing-text {
    border-right: 2px solid var(--primary-green-tea);
    padding-right: 5px;
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-green-tea); }
}

/* Magnetic Button Base */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding: 40px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-green-tea);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Visi Misi Interactive Tabs */
.vm-interactive-wrapper { max-width: 900px; margin: 0 auto; }
.vm-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.vm-tab {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    padding: 12px 30px; border-radius: 30px; color: var(--text-muted); font-size: 1.1rem;
    cursor: pointer; transition: var(--transition);
}
.vm-tab i { margin-right: 8px; }
.vm-tab:hover { background: rgba(255, 255, 255, 0.1); }
.vm-tab.active {
    background: var(--gradient-green-tea); color: var(--bg-darker);
    border-color: transparent; font-weight: 600; box-shadow: 0 0 20px rgba(168, 224, 99, 0.4);
}
.vm-panels { padding: 40px; position: relative; overflow: hidden; min-height: 250px; }
.pulse-border { position: relative; }
.pulse-border::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px; border: 1px solid var(--primary-green-tea); opacity: 0.5;
    animation: pulseBorder 2s infinite; pointer-events: none;
}
@keyframes pulseBorder {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.02); opacity: 0; }
}
.vm-panel { display: none; animation: fadeIn 0.5s ease forwards; }
.vm-panel.active { display: flex; flex-direction: column; align-items: center; text-align: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.icon-box-large {
    width: 60px; height: 60px; background: rgba(86, 171, 47, 0.1); border-radius: 15px;
    display: flex; justify-content: center; align-items: center; font-size: 2rem;
    color: var(--primary-green-tea); margin-bottom: 20px; border: 1px solid rgba(86, 171, 47, 0.2);
}
.vm-panel h3 { font-size: 1.8rem; margin-bottom: 15px; }
.vm-text { font-size: 1.1rem; font-style: italic; color: var(--text-muted); max-width: 600px; line-height: 1.8; }
.misi-list { text-align: left; max-width: 600px; }
.misi-list li { margin-bottom: 15px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 15px; }
.misi-list i { color: var(--primary-green-tea); margin-top: 5px; }

/* Compact Members Section */
.members-grid-compact { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; justify-items: center; }
.member-card-mini {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 15px 10px; width: 100%; text-align: center;
    cursor: pointer; position: relative; transition: var(--transition);
}
.member-card-mini:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(144, 211, 140, 0.3); }
.mini-avatar {
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: var(--bg-darker); border: 2px solid var(--bg-dark);
}
.mini-info h4 { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.mini-div { font-size: 0.65rem; color: var(--primary-green-tea); display: block; margin-top: 2px; }

/* Hover Detail - Popup Card */
.mini-hover-detail {
    position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%) translateY(20px);
    width: 220px; padding: 15px; opacity: 0; visibility: hidden; z-index: 100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.member-card-mini:hover .mini-hover-detail {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mini-hover-detail h5 {
    color: var(--primary-green-tea); font-size: 0.9rem; margin-bottom: 5px;
    border-bottom: 1px solid var(--glass-border); padding-bottom: 5px;
}
.mini-hover-detail p {
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 3px; display: flex; align-items: center; gap: 8px;text-align: left;
}
.mini-hover-detail .moto {
    font-style: italic; margin-top: 8px; color: var(--text-main); font-size: 0.75rem; border-top: 1px dotted rgba(255,255,255,0.1); padding-top: 5px;
}
.placeholder-card { opacity: 0.6; border-style: dashed; }

/* Gallery Masonry Section */
.gallery-masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-bottom: 50px;
}

@media (min-width: 768px) {
    .gallery-masonry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry-grid .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-masonry-grid .gallery-item:nth-child(4) { grid-column: span 2; }
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--glass-bg);
}

.gallery-item.tilt-card {
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.gallery-img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1) translateZ(20px);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Contact Terminal Section */
.join-contact { position: relative; }
.contact-terminal {
    background: rgba(10, 10, 10, 0.8); border: 1px solid rgba(86, 171, 47, 0.3);
    border-radius: 15px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(86, 171, 47, 0.1);
    backdrop-filter: blur(15px);
}
.terminal-header {
    background: rgba(5, 5, 5, 0.9); padding: 12px 20px; display: flex; align-items: center;
    border-bottom: 1px solid var(--glass-border);
}
.terminal-header .dots { display: flex; gap: 8px; margin-right: 20px; }
.terminal-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.terminal-title { color: var(--text-muted); font-family: monospace; font-size: 0.9rem; }
.terminal-body { display: grid; grid-template-columns: 1fr 1.5fr; }
.terminal-sidebar {
    padding: 40px; background: rgba(0,0,0,0.3); border-right: 1px solid var(--glass-border);
}
.terminal-sidebar h3 { font-size: 1.5rem; color: var(--primary-green-tea); margin-bottom: 15px; }
.terminal-sidebar p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; line-height: 1.8; }
.social-links-glow { display: flex; gap: 15px; }
.glow-icon {
    width: 45px; height: 45px; border-radius: 50%; background: var(--glass-bg);
    display: flex; justify-content: center; align-items: center;
    border: 1px solid var(--glass-border); font-size: 1.2rem; transition: var(--transition);
}
.glow-icon:hover {
    background: var(--primary-green-tea); color: var(--bg-darker);
    box-shadow: 0 0 20px rgba(168, 224, 99, 0.6); transform: translateY(-3px);
}
.terminal-content { padding: 40px; }
.form-intro-glitch {
    font-family: monospace; color: var(--primary-green-tea); font-size: 1.1rem;
    margin-bottom: 25px; position: relative; display: inline-block; font-weight: 600;
}
.compact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group.full-width { grid-column: span 2; }
.compact-form input, .compact-form select, .compact-form textarea {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    padding: 12px 15px; border-radius: 8px; color: var(--text-main); outline: none; transition: 0.3s;
    font-family: monospace;
}
.compact-form input:focus, .compact-form select:focus, .compact-form textarea:focus {
    border-color: var(--primary-green-tea); box-shadow: 0 0 10px rgba(144, 211, 140, 0.2);
}
.compact-form select option { background: var(--bg-dark); }
.btn-glow {
    background: transparent; border: 1px solid var(--primary-green-tea); color: var(--primary-green-tea);
    padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; width: 100%;
    font-family: monospace; font-size: 1.1rem; letter-spacing: 1px;
}
.btn-glow:hover {
    background: var(--gradient-green-tea); color: var(--bg-darker);
    box-shadow: 0 0 20px rgba(168, 224, 99, 0.5);
}
.footer-minimal { text-align: center; padding: 30px 20px 0; color: var(--text-muted); font-size: 0.85rem; }

/* Responsive Design */
@media (max-width: 992px) {
    .about-content { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 2rem; }
    .members-grid-compact { grid-template-columns: repeat(4, 1fr); }
    .terminal-body { grid-template-columns: 1fr; }
    .terminal-sidebar { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 30px; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-menu {
        position: fixed; left: -100%; top: 70px; flex-direction: column;
        background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px); width: 100%;
        text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5); padding: 40px 0; gap: 25px;
    }
    .nav-menu.active { left: 0; }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .kabinet-badge { font-size: 0.8rem; }
    
    /* Tabs Mobile */
    .vm-tabs { flex-direction: column; gap: 10px; }
    .vm-tab { text-align: center; }
    
    /* Members Mobile: 3-4 per row */
    .members-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .mini-avatar { width: 45px; height: 45px; font-size: 1.2rem; }
    .mini-info h4 { font-size: 0.75rem; }
    .mini-div { font-size: 0.6rem; }
    
    /* Hide hover card, tap shows it? Hover cards via active usually handled via JS but will show on tap on mobile. */
    .mini-hover-detail { width: 180px; }
    
    .compact-form { grid-template-columns: 1fr; }
    .terminal-content { padding: 25px 20px; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .members-grid-compact { grid-template-columns: repeat(4, 1fr); }
}
