:root {
    --primary-gold: #FFD700;
    --deep-blue: #001F3F;
    --accent-blue: #0074D9;
    --bg-black: #000000;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    /* Prevent text selection and copy */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-content {
    text-align: center;
    width: 200px;
}

.loader-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

.loader-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-gold);
    transition: width 0.1s linear;
}

.loader-percent {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    pointer-events: auto;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.logo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-daftar-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg-black);
    background: var(--primary-gold);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
}

.nav-daftar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
}

.menu-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.hamburger {
    width: 24px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-white);
    transition: transform 0.3s ease;
}

/* --- Fullscreen Menu --- */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s ease;
}

.fullscreen-menu.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin-bottom: 2rem;
    overflow: hidden;
}

.menu-link {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-link:hover {
    color: var(--primary-gold);
    transform: skewX(-5deg) scale(1.05);
}

.menu-footer {
    position: absolute;
    bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4rem;
    color: var(--text-gray);
}

.menu-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.menu-socials a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero-scroll {
    height: 160vh;
    position: relative;
    background: var(--bg-black);
    overflow: clip; /* Prevent horizontal scroll issues */
}

.canvas-container {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#sequence-canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.step {
    height: 100vh; /* Each milestone takes one full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.active {
    opacity: 1;
    transform: translateY(0);
}

.text-center { text-align: center; width: 100%; }
.text-left { text-align: left; width: 100%; }
.text-right { text-align: right; width: 100%; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--primary-gold);
    margin-top: 1.5rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

.slogan {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
}

/* --- Content Wrapper --- */
.content-wrapper {
    position: relative;
    z-index: 10;
    background: var(--bg-black);
    /* Removed negative margin to prevent covering the sequence prematurely */
}

.section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-white);
}

/* --- About Section --- */
.reveal-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-gray);
}

.reveal-text span {
    color: var(--text-white);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.reveal-text span.active {
    opacity: 1;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.bento-item.large { grid-column: span 2; }
.bento-item.medium { grid-column: span 1; grid-row: span 1; }

.bento-inner {
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.bento-item:hover .bento-inner {
    transform: scale(0.98);
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.bento-tag {
    font-size: 0.7rem;
    font-weight: 800;
    background: var(--text-white);
    color: var(--bg-black);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

.bento-item:hover .bento-bg {
    opacity: 0.2;
}

.gold-gradient { background: linear-gradient(135deg, var(--primary-gold), #b8860b); }
.blue-gradient { background: linear-gradient(135deg, var(--accent-blue), var(--deep-blue)); }

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.bento-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Ekstrakurikuler Section --- */
.ekskul-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.ekskul-category {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, background 0.4s ease;
}

.ekskul-category:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.ekskul-cat-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.ekskul-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ekskul-item {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--text-white);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ekskul-item:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
    transform: scale(1.05);
}

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--text-gray);
}

/* --- Testimonial Section --- */
.testimonial-section {
    background: #050505;
    max-width: 100%;
    padding: 10rem 0;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 10%;
    text-align: center;
}

.testimonial-content p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-content .author {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    text-align: center;
    padding: 12rem 2rem;
    overflow: hidden;
}

.cta-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--deep-blue), #000, var(--primary-gold), #000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn-magnetic {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--text-white);
    color: var(--bg-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* --- Footer --- */
.footer {
    padding: 6rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.footer-brand p { color: var(--text-gray); max-width: 300px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-white); }
.footer-contact p { color: var(--text-gray); margin-bottom: 0.5rem; }

.footer-socials {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr; }
    .menu-footer { flex-direction: column; gap: 2rem; }
}
