/* =========================================
   VARIABEL GLOBAL & RESET
========================================= */
:root {
    --bg-color: #09090B;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --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-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor override */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.hidden {
    display: none !important;
}

/* =========================================
   EFEK VISUAL: AURORA & CUSTOM CURSOR
========================================= */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.aurora-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.4;
    border-radius: 50%;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.aurora-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
}

.aurora-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    animation-delay: -5s;
}

.aurora-3 {
    top: 40%; left: 40%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

/* =========================================
   KOMPONEN GLASSMORPHISM & UTILITIES
========================================= */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 150%;
}

.text-gradient {
    background: linear-gradient(135deg, #FFF 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }

/* Tombol Premium */
.premium-btn, .outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.premium-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.premium-btn:hover {
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.outline-btn:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.2);
}

/* =========================================
   OPENING SCREEN
========================================= */
#opening-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.8s ease;
}

.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.intro-content {
    max-width: 800px;
    padding: 0 20px;
}

.welcome-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.typing-container {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    min-height: 40px;
    margin-bottom: 16px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.sub-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================
   MAIN CONTENT: HERO SECTION
========================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.hero-role {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--accent-purple);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.hero-desc {
    padding: 24px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-blue);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.profile-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.profile-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 60%);
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition-smooth);
}

.profile-img:hover {
    filter: grayscale(0%) contrast(100%);
}

.floating-card {
    position: absolute;
    bottom: 40px; left: -40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
}

.float-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* =========================================
   SECTION: INFO SINGKAT
========================================= */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60%; height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 20%;
    width: 60%;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* =========================================
   SECTION: TENTANG SAYA
========================================= */
.about-container {
    padding: 64px;
    position: relative;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.about-text p:last-child { margin-bottom: 0; }

/* =========================================
   SECTION: HOBI & MINAT
========================================= */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.hobby-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 16px;
    text-align: center;
}

.hobby-card i {
    font-size: 2rem;
    color: var(--accent-purple);
    transition: var(--transition-smooth);
}

.hobby-card:hover i {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.hobby-card span {
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

/* =========================================
   SECTION: GALERI
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.gallery-item {
    padding: 0;
    border-radius: 24px;
    aspect-ratio: 4/3;
    cursor: none;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 24px;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

/* =========================================
   SECTION: MEDIA SOSIAL
========================================= */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    justify-items: center;
}

.social-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
}

.social-card i { font-size: 1.5rem; }
.social-card span { font-weight: 600; }

.social-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
}

/* =========================================
   FOOTER
========================================= */
.glass-footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 48px 0;
    text-align: center;
    margin-top: 64px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-school {
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
}

.footer-divider {
    width: 40px; height: 2px;
    background: var(--glass-border);
    margin: 16px 0;
}

.footer-thanks {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================
   ANIMASI SCROLL & REVEAL
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpAnim 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-desc {
        border-left: none;
        border-top: 4px solid var(--accent-blue);
    }

    .hero-actions { justify-content: center; }
    
    .floating-card {
        bottom: -20px; left: 50%;
        transform: translateX(-50%);
    }

    .about-container { padding: 32px; }
    
    .cursor-glow { display: none; } /* Disable custom cursor on mobile/tablet */
    * { cursor: auto; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .hero-actions { flex-direction: column; }
    .info-grid { grid-template-columns: 1fr; }
}
/* =========================================
   KELAS TAMBAHAN UNTUK JS REVEAL (TYPING EFFECT)
========================================= */
.js-hidden {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.locked-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 200px;
    transition: transform 0.3s ease;
}

.locked-item:hover {
    transform: scale(1.05);
}

.lock-icon {
    font-size: 2rem;
    color: #a0a0a0;
}

.lock-text {
    font-size: 0.9rem;
    color: #a0a0a0;
}
