/* -------------------------------------------------------------
 * PORTFOLIO STYLE SHEET - I GEDE RENDY GUNAWAN PRATAMA
 * Theme: Futuristic Technology + Glassmorphism + Modern Dark
 * Colors: Dark Navy (#071A3D), Navy Blue (#0B2A66), Electric Blue (#2563EB), Neon Lime (#DFFF00)
 * ------------------------------------------------------------- */

/* Reset & Root Variables */
:root {
    --bg-dark: #071A3D;
    --bg-navy: #0B2A66;
    --primary-blue: #2563EB;
    --bright-blue: #3155FF;
    --neon-lime: #DFFF00;
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --glass-bg: rgba(11, 42, 102, 0.35);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-glow: rgba(223, 255, 0, 0.15);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(223, 255, 0, 0.08) 0%, transparent 40%),
        linear-gradient(to bottom, #071A3D, #05132d);
    background-attachment: fixed;
}

/* 11. Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-lime), var(--primary-blue));
    z-index: 1001;
    box-shadow: 0 0 10px var(--neon-lime);
    transition: width 0.1s ease-out;
}

/* 14. Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--neon-lime);
    text-shadow: 0 0 20px rgba(223, 255, 0, 0.6);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--neon-lime);
    border-bottom-color: var(--primary-blue);
    margin: 0 auto 15px;
    animation: spin 1s infinite linear;
}

.loader-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Section Titles */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    display: inline-block;
    position: relative;
    letter-spacing: 1px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-lime), var(--primary-blue));
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(223, 255, 0, 0.5);
}

/* Glassmorphism Card Design */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(223, 255, 0, 0.4);
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.25), 0 0 15px var(--glass-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--bright-blue));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6), 0 0 15px rgba(223, 255, 0, 0.4);
    background: linear-gradient(135deg, var(--bright-blue), var(--neon-lime));
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    transform: scale(1.03);
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--neon-lime);
    color: var(--neon-lime);
    box-shadow: 0 0 15px rgba(223, 255, 0, 0.3);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(7, 26, 61, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--neon-lime);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-lime);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--neon-lime);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--neon-lime);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* 1. HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.badge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(223, 255, 0, 0.1);
    border: 1px solid var(--neon-lime);
    color: var(--neon-lime);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.hero-role .highlight {
    color: var(--neon-lime);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 24px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid var(--primary-blue);
    position: relative;
    z-index: 2;
}

.glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--neon-lime), var(--primary-blue));
    z-index: 1;
    opacity: 0.6;
    filter: blur(15px);
    transition: var(--transition-smooth);
}

.image-frame:hover .glow-ring {
    opacity: 0.9;
    filter: blur(22px);
}

/* Floating Tech Badges */
.floating-tech {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-navy);
    border: 1px solid var(--neon-lime);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: var(--neon-lime);
    z-index: 3;
    box-shadow: 0 0 15px rgba(223, 255, 0, 0.3);
    animation: floating 4s infinite ease-in-out;
}

.tech-1 { top: -20px; left: -20px; animation-delay: 0s; }
.tech-2 { bottom: 40px; right: -25px; animation-delay: 1.3s; }
.tech-3 { top: 50%; left: -30px; animation-delay: 2.6s; }

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* 2. ABOUT ME */
.about-card {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.about-icon {
    font-size: 3rem;
    color: var(--neon-lime);
    background: rgba(37, 99, 235, 0.2);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}

/* 3. BIODATA */
.biodata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.biodata-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.bio-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--neon-lime);
    flex-shrink: 0;
}

.bio-details {
    display: flex;
    flex-direction: column;
}

.bio-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bio-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

/* 4. HOBI */
.hobby-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hobby-card {
    padding: 40px;
}

.hobby-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hobby-icon {
    font-size: 2.5rem;
    color: var(--neon-lime);
    transition: var(--transition-smooth);
}

.hobby-card:hover .hobby-icon {
    transform: rotate(-10deg) scale(1.1);
}

.hobby-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.hobby-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.hobby-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--neon-lime);
}

/* 5. ALASAN */
.alasan-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    font-style: italic;
    color: #e2e8f0;
}

.alasan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.alasan-card {
    text-align: center;
    padding: 30px 20px;
}

.alasan-icon {
    font-size: 2.2rem;
    color: var(--neon-lime);
    margin-bottom: 15px;
}

.alasan-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.alasan-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 6. CITA-CITA */
.target-main {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neon-lime);
}

.target-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--neon-lime);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 10px;
    margin-bottom: 15px;
}

.target-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--neon-lime);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(223, 255, 0, 0.4);
}

.target-desc {
    font-size: 1.05rem;
    color: #e2e8f0;
}

.roadmap-heading {
    text-align: center;
    font-family: var(--font-heading);
    margin-bottom: 30px;
    color: var(--text-white);
}

.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    border: 2px solid var(--neon-lime);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--neon-lime);
    margin-bottom: 15px;
    box-shadow: 0 0 10px var(--neon-lime);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 7. GALERI */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 26, 61, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--neon-lime);
    gap: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    padding: 20px;
}

.gallery-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* LIGHTBOX MODAL */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 12px;
    border: 2px solid var(--neon-lime);
    box-shadow: 0 0 30px rgba(223, 255, 0, 0.3);
}

#lightbox-caption {
    margin-top: 15px;
    color: var(--text-white);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--neon-lime);
}

/* 8. KONTAK */
.contact-wrapper {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.social-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--neon-lime);
    background: rgba(37, 99, 235, 0.15);
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.social-icon.instagram { background: rgba(225, 48, 108, 0.2); color: #E1306C; }
.social-icon.linktree { background: rgba(67, 224, 98, 0.2); color: #43E062; }
.social-icon.email { background: rgba(37, 99, 235, 0.2); color: var(--neon-lime); }

.social-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.social-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-info strong {
    font-size: 0.95rem;
}

.email-btn-wrapper {
    margin-top: 20px;
}

/* 12. BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 990;
    border: 1px solid var(--neon-lime);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--neon-lime);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-lime);
}

/* 16. FOOTER */
.footer {
    background: #030d21;
    border-top: 1px solid var(--glass-border);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-tagline {
    font-style: italic;
    color: var(--neon-lime);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--neon-lime);
    transform: scale(1.2);
}

.footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
}

/* 9. SCROLL ANIMATION CLASSES (Intersection Observer) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* 15. RESPONSIVE DESIGN */
@media screen and (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        flex: initial;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(7, 26, 61, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: 0.4s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .image-frame {
        width: 260px;
        height: 330px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}