:root {
    --bg-color: #09031a;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-gradient: linear-gradient(90deg, #ff4c8b 0%, #ff7baf 100%);
    --font-heading: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --bg-color: #f5f0ff;
    --text-color: #1a0033;
    --text-muted: rgba(0, 0, 0, 0.65);
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.02);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Background Abstract Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6a11cb 0%, #2575fc 100%);
    top: -20%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff0080 0%, #ff8c00 100%);
    bottom: -10%;
    right: -5%;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00f2fe 0%, #4facfe 100%);
    top: 30%;
    right: 20%;
}

/* Standard Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-color);
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-menu {
    flex: 1;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
}

[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active {
    color: #6b00b8;
}

.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Language Switcher Styles */
.lang-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0 15px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-right: 12px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Language Visibility Logic */
html[lang="en"] .lang-id { display: none !important; }
html[lang="id"] .lang-en { display: none !important; }

/* Hero Section Adjustments for Fixed Header */
.hero {
    padding-top: 120px; /* Spacer for fixed header */
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem 2rem;
    min-height: 70vh;
    position: sticky; /* Minimalist sticky implementation */
    top: 0;
    z-index: 1;
    text-align: center;
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.visual-accent-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(122, 0, 255, 0.4) 0%, transparent 70%);
    filter: blur(40px);
}

/* Abstract shapes around character */
.abstract-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.shape-orange {
    width: 60px;
    height: 60px;
    background: #ff8c00;
    top: 30%;
    right: 20%;
}

.shape-green {
    width: 100px;
    height: 100px;
    background: #00ff88;
    bottom: 25%;
    left: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-purple {
    width: 180px;
    height: 180px;
    background: #7a00ff;
    top: 15%;
    left: 10%;
    border-radius: 50% 50% 0 50%;
    opacity: 0.6;
}

.shape-pink {
    width: 80px;
    height: 80px;
    background: #ff0080;
    bottom: 15%;
    left: 40%;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #b366ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem; /* Reduced from 3rem */
    color: var(--text-color);
    line-height: 1.4; /* Reduced from 1.6 */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.main-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 1000px;
    line-height: 1.5; /* Reduced from 1.8 */
}

.main-description p {
    margin-bottom: 1rem; /* Reduced from 2rem */
    text-indent: 0;
    text-align: center; /* Center the paragraphs */
    line-height: 1.5; /* Added more compact line height */
}

.focus-section {
    margin: 2rem 0;
}

.focus-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.focus-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    background: var(--card-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.btn-see-more {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(255, 76, 139, 0.4);
}

.btn-see-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 76, 139, 0.6);
}

/* Footer & Social */
.footer {
    padding: 0 4rem 2rem;
    display: flex;
    justify-content: flex-end;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

.social-link:hover {
    color: var(--text-light);
}


/* How It Works Section - Dark Integration */
.how-it-works {
    background-color: var(--bg-color); /* Solid background to cover sticky hero */
    padding: 4rem 4rem 6rem;
    color: var(--text-muted);
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--glass-border);
}

.how-container {
    max-width: 750px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.3fr 1.7fr;
    align-items: center;
    gap: 1.5rem;
}

.how-visual {
    display: flex;
    justify-content: center;
}

.profile-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.2) translateY(5%); /* Reduced scale as requested */
    transform-origin: center;
    image-rendering: -webkit-optimize-contrast; /* Help with sharpness when scaling */
    backface-visibility: hidden; /* Hardware acceleration for smoother rendering */
    -webkit-font-smoothing: antialiased;
}

.how-content-side {
    padding-right: 2rem;
}

.how-tagline {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    opacity: 0.6;
}

.how-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

.how-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.how-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.how-quote {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.quote-icon-container {
    width: 28px;
    height: 28px;
    background: rgba(61, 154, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(61, 154, 255, 0.15);
}

.quote-icon {
    font-size: 1.2rem;
    color: #3d9aff;
    font-family: serif;
    margin-top: 6px;
}

.quote-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.quote-author {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.75rem;
}

/* Update Footer for seamless transition */
.Indonesian-version {
    background: var(--bg-color); /* Solid background */
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--glass-border);
}

/* Responsive for How It Works */
@media (max-width: 1024px) {
    .how-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .how-content-side {
        padding-right: 0;
    }
    
    .how-quote {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-circle {
        width: 300px;
        height: 300px;
    }
}

/* Restored Hero Responsive Rules */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }
    
    .hero-content {
        padding-left: 0;
        margin-top: 4rem;
    }
    
    .main-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav {
        gap: 1.5rem;
        padding: 0.6rem 2rem;
    }
}

/* Providers & Supporters Section */
.providers-section {
    padding: 6rem 4rem;
    background-color: var(--bg-color); /* Solid background to cover sticky hero */
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--glass-border);
}

.providers-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.providers-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    color: var(--text-light);
}

.provider-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.provider-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.provider-grid.single { grid-template-columns: 1fr; }
.provider-grid.duo { grid-template-columns: repeat(2, 1fr); }
.provider-grid.duo-inner { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.provider-grid.trio { grid-template-columns: repeat(3, 1fr); }
.provider-grid.quartet { grid-template-columns: repeat(4, 1fr); }

.provider-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.provider-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.provider-logo-img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) brightness(1.5);
}

.provider-item:hover .provider-logo-img {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

.provider-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.8;
}

.provider-item.large {
    padding: 2.5rem;
}

.provider-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.provider-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 3rem 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Responsive for Providers */
@media (max-width: 1024px) {
    .provider-grid.quartet,
    .provider-grid.trio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .provider-grid.duo,
    .provider-grid.quartet,
    .provider-grid.trio,
    .provider-grid.duo-inner {
        grid-template-columns: 1fr;
    }
    
    .providers-main-title {
        font-size: 2rem;
    }
}
