/* Base Styles & Variables */
:root {
    /* Color Palette - Vibrant Emerald/Teal & Gold */
    --primary: #0a8f68; /* Muhammadiyah Green modern variant */
    --primary-dark: #076d4f;
    --primary-light: #2bc093;
    --secondary: #e6a817; /* Gold/Yellow accent */
    --secondary-hover: #d1950e;
    
    /* Variables for Light Theme */
    --bg-main: #f8fafc;
    --bg-section: #ffffff;
    --bg-light: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-text: #0f172a;
    
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.5);
    
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    /* Variables for Dark Theme */
    --bg-main: #0b1120;
    --bg-section: #111827;
    --bg-light: #1f2937;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-light: #64748b;
    
    --nav-bg: rgba(11, 17, 32, 0.85);
    --nav-text: #f8fafc;
    
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: #334155;
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--primary-light); }
.text-white { color: #ffffff !important; }
.text-gray { color: #cbd5e1 !important; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-light { background-color: var(--bg-light); }

.section {
    padding: 5rem 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(10, 143, 104, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(10, 143, 104, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(10, 143, 104, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 143, 104, 0.4);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 168, 23, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #000;
}

.btn-white {
    background: white;
    color: var(--primary-dark);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 0;
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid var(--border-glass);
}

.navbar:not(.scrolled) .nav-links a {
    color: white;
}

.navbar:not(.scrolled) .logo-title, 
.navbar:not(.scrolled) .logo-subtitle {
    color: white;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(10, 143, 104, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--nav-text);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--nav-text);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text);
    font-size: 1.25rem;
    transition: background 0.3s ease;
}

.navbar:not(.scrolled) .theme-toggle {
    color: white;
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to right, rgba(11, 25, 44, 0.95) 0%, rgba(11, 25, 44, 0.7) 60%, rgba(11, 25, 44, 0.3) 100%);
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight {
    color: var(--secondary);
    display: block;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid Layouts */
.container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.container-grid.reverse .grid-image {
    order: 2;
}

.container-grid.reverse .grid-content {
    order: 1;
}

/* Profile Section */
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper img {
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.glass-effect {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
}

.shadow-large {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 20px;
}

[data-theme="dark"] .shadow-large {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.floating-card {
    position: absolute;
    background: var(--nav-bg);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    z-index: 2;
}

.floating-card.shape-1 {
    bottom: -20px;
    right: -20px;
}

.floating-card strong {
    display: block;
    font-size: 1.125rem;
}

.floating-card span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Visi Misi Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 143, 104, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.card-list li i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

/* Program Section */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.activity-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.activity-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.activity-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.activity-item:hover i {
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(30deg);
}

.cta-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-list li i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .container-grid.reverse .grid-image {
        order: 1;
    }
    
    .container-grid.reverse .grid-content {
        order: 2;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        border-top: 1px solid var(--border-glass);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 24px;
        display: block;
        color: var(--text-main) !important;
    }
    
    .navbar:not(.scrolled) .mobile-menu-btn {
        color: white;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-actions .btn {
        display: none; /* Hide CTA button in mobile nav */
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .floating-card {
        padding: 0.75rem;
        right: 0;
        bottom: 0;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
}
