:root {
    --bg-color: #fdfbf7;
    --primary-color: #d4a373;
    --secondary-color: #606c38;
    --accent-color: #283618;
    --text-color: #2c1810;
    --text-muted: #5e4b3e;
    --white: #ffffff;
    --gold: #e9c46a;
    
    --font-serif: "Playfair Display", serif;
    --font-sans: "Outfit", sans-serif;
    
    --container-width: 1200px;
    --section-spacing: 120px;
    --nav-height: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(212, 163, 115, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
}

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

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.4);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(15px);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-links a {
    color: var(--text-color);
    text-shadow: none;
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--text-color);
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 0;
}

.hero-date {
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 5px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 10px;
    background: linear-gradient(to bottom, var(--white), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-motto {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: var(--gold);
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 163, 115, 0.1);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Pilar Grid */
.pilar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.pilar-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 108, 56, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.latar-belakang {
    position: relative;
    background-image: url("https://www.transparenttextures.com/patterns/leaf.png");
}

.pilar-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.pilar-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Program Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.program-card {
    background: var(--accent-color);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.program-card:hover {
    background: var(--secondary-color);
}

.program-time {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 10px;
    font-family: var(--font-sans);
}

/* Sponsor Section */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .pilar-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Animation Classes */
.reveal, .reveal-hero {
    opacity: 0;
}
