/* =========================
   ROOT
========================= */

:root {
    --red: #dc2626;
    --red-light: #ef4444;

    --blue: #2563eb;
    --blue-light: #3b82f6;

    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}


/* =========================
   SCROLL PROGRESS
========================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    z-index: 9999;

    transform-origin: left center;
    transform: scaleX(0);

    background: linear-gradient(
        90deg,
        var(--red),
        var(--red-light),
        var(--blue-light),
        var(--blue)
    );

    animation: progress linear both;
    animation-timeline: scroll(root);
}

@keyframes progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}


/* =========================
   BACKGROUND GLOW
========================= */

.glow {
    position: fixed;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);
    opacity: 0.12;

    pointer-events: none;
    z-index: -1;
}

.glow-red {
    background: var(--red);

    top: -150px;
    left: -150px;

    animation: redParallax linear both;
    animation-timeline: scroll(root);
}

.glow-blue {
    background: var(--blue);

    right: -150px;
    top: 500px;

    animation: blueParallax linear both;
    animation-timeline: scroll(root);
}

@keyframes redParallax {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(700px);
    }
}

@keyframes blueParallax {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-500px);
    }
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(220, 38, 38, 0.22),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(37, 99, 235, 0.25),
            transparent 35%
        ),
        var(--dark);
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.08);

    animation: heroCircle 12s linear infinite;
}

.hero::after {
    content: "";

    position: absolute;

    width: 900px;
    height: 900px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.04);
}

@keyframes heroCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================
   HERO CONTENT
========================= */

.hero-content {
    width: min(1100px, 90%);

    text-align: center;

    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;

    padding: 9px 18px;

    border-radius: 100px;

    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.06);

    color: #cbd5e1;

    font-size: 12px;
    letter-spacing: 2px;

    margin-bottom: 25px;

    animation: heroFade 1s ease both;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 100px);

    line-height: 0.95;

    font-weight: 800;

    letter-spacing: -4px;

    margin-bottom: 35px;

    background:
        linear-gradient(
            90deg,
            #dc2626,
            #ef4444,
            #f87171,
            #60a5fa,
            #3b82f6,
            #2563eb,
            #3b82f6,
            #60a5fa,
            #f87171,
            #ef4444,
            #dc2626
        );

    background-size: 400% 100%;
    background-position: 0% 50%;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation:
        smoothGradient 12s linear infinite,
        titleAppear 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 span {
    display: inline;
}

.hero-description {
    max-width: 650px;

    margin: auto;

    color: #94a3b8;

    font-size: 18px;
    line-height: 1.8;

    animation: heroFade 1s 0.3s ease both;
}

.scroll-indicator {
    margin-top: 70px;

    color: #64748b;

    font-size: 13px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    animation: heroFade 1s 0.7s ease both;
}

.scroll-indicator span {
    width: 22px;
    height: 36px;

    border: 1px solid #64748b;

    border-radius: 20px;

    position: relative;
}

.scroll-indicator span::after {
    content: "";

    position: absolute;

    width: 4px;
    height: 7px;

    border-radius: 10px;

    background: var(--red);

    top: 7px;
    left: 50%;

    transform: translateX(-50%);

    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes smoothGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* =========================
   MAIN
========================= */

main {
    position: relative;
    padding-top: 60px;
}


/* =========================
   TIMELINE
========================= */

.scroll-line {
    position: absolute;

    top: 120px;
    bottom: 350px;

    left: 50%;

    width: 2px;

    transform: translateX(-50%);

    background: #e2e8f0;

    z-index: 0;
}

.scroll-line-fill {
    width: 100%;
    height: 100%;

    transform-origin: top;
    transform: scaleY(0);

    background: linear-gradient(
        180deg,
        var(--red),
        var(--blue)
    );

    animation: lineGrow linear both;
    animation-timeline: scroll(root);
}

@keyframes lineGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}


/* =========================
   SECTION
========================= */

.section {
    width: min(1200px, 92%);

    margin: 0 auto;

    min-height: 80vh;

    display: flex;

    align-items: center;

    position: relative;

    z-index: 1;
}


/* =========================
   NOMOR TIMELINE
========================= */

.section-number {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    border: 3px solid var(--red);

    color: var(--dark);

    font-size: 12px;
    font-weight: 800;

    z-index: 10;

    box-shadow:
        0 0 0 8px var(--light);
}


/* =========================
   CARD
========================= */

.card {
    width: calc(50% - 65px);

    padding: 55px;

    background: rgba(255,255,255,0.94);

    border: 1px solid #e2e8f0;

    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(15,23,42,0.08);

    backdrop-filter: blur(12px);
}


/* =========================
   SCROLL ANIMATION CARD
========================= */

.reveal {
    animation:
        cardScroll linear both;

    animation-timeline: view();

    animation-range:
        entry 0%
        exit 100%;
}

@keyframes cardScroll {
    0% {
        opacity: 0;

        transform:
            translateY(120px)
            scale(0.88);
    }

    25% {
        opacity: 0.7;

        transform:
            translateY(45px)
            scale(0.96);
    }

    45% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

    70% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translateY(-100px)
            scale(0.94);
    }
}


/* =========================
   POSISI KIRI / KANAN
========================= */

.reveal-left {
    margin-right: auto;
    transform-origin: right center;
}

.reveal-right {
    margin-left: auto;
    transform-origin: left center;
}


/* =========================
   CARD CONTENT
========================= */

.section-label {
    color: var(--red);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.card h2 {
    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 20px;
}

.section-intro {
    color: var(--gray);

    line-height: 1.8;

    max-width: 650px;

    margin-bottom: 35px;
}


/* =========================
   PROFILE
========================= */

.profile-info {
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;

    justify-content: space-between;

    gap: 25px;

    padding: 18px 0;

    border-bottom: 1px solid #e2e8f0;
}

.info-row span {
    color: var(--gray);
}

.info-row strong {
    text-align: right;
}


/* =========================
   HOBBY
========================= */

.hobby-content {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 30px;

    align-items: center;
}

.hobby-icon {
    width: 100px;
    height: 100px;

    border-radius: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;

    background:
        linear-gradient(
            135deg,
            rgba(220,38,38,0.1),
            rgba(37,99,235,0.1)
        );
}

.hobby-content h3 {
    font-size: 24px;

    margin-bottom: 10px;
}

.hobby-content p {
    color: var(--gray);

    line-height: 1.8;
}


/* =========================
   DREAM
========================= */

.dream-box {
    position: relative;

    overflow: hidden;

    padding: 45px;

    border-radius: 24px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #991b1b,
            #dc2626 45%,
            #2563eb
        );
}

.dream-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255,255,255,0.15);

    filter: blur(70px);

    right: -100px;
    top: -150px;
}

.dream-small {
    font-size: 11px;

    letter-spacing: 2px;

    opacity: 0.7;
}

.dream-box h3 {
    font-size: 42px;

    margin: 12px 0 15px;
}

.dream-box p {
    max-width: 650px;

    line-height: 1.8;

    color: rgba(255,255,255,0.85);
}


/* =========================
   TECHNOLOGY
========================= */

.technology-list {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.technology-card {
    display: grid;

    grid-template-columns: 60px 1fr;

    gap: 20px;

    padding: 22px;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    background: #ffffff;

    animation:
        techScroll linear both;

    animation-timeline: view();

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.technology-card:nth-child(1) {
    animation-range:
        entry 0%
        cover 35%;
}

.technology-card:nth-child(2) {
    animation-range:
        entry 10%
        cover 45%;
}

.technology-card:nth-child(3) {
    animation-range:
        entry 20%
        cover 55%;
}

.technology-card:hover {
    transform: translateX(10px);
    box-shadow:
        0 15px 30px rgba(15,23,42,0.08);
}

@keyframes techScroll {
    from {
        opacity: 0;

        transform:
            translateX(100px)
            scale(0.9);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }
}

.tech-number {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(220,38,38,0.12),
            rgba(37,99,235,0.12)
        );

    color: var(--blue);

    font-weight: 800;
}

.technology-card h3 {
    font-size: 20px;

    margin-bottom: 6px;
}

.technology-card p {
    color: var(--gray);

    line-height: 1.7;

    font-size: 14px;
}


/* =========================
   TARGET
========================= */

.target-section {
    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: var(--dark);

    margin-top: 100px;
}

.target-bg {
    position: absolute;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,0.35),
            transparent 65%
        );

    animation:
        targetParallax linear both;

    animation-timeline: scroll(root);
}

@keyframes targetParallax {
    from {
        transform:
            translateY(-250px)
            scale(0.8);
    }

    to {
        transform:
            translateY(250px)
            scale(1.3);
    }
}

.target-card {
    width: min(900px, 90%);

    padding: 70px;

    position: relative;

    z-index: 2;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 30px;

    background: rgba(255,255,255,0.05);

    backdrop-filter: blur(15px);

    color: white;

    animation:
        targetReveal linear both;

    animation-timeline: view();

    animation-range:
        entry 0%
        exit 100%;
}

@keyframes targetReveal {
    0% {
        opacity: 0;

        transform:
            translateY(150px)
            scale(0.8);
    }

    35% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

    70% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translateY(-120px)
            scale(0.9);
    }
}

.target-label {
    color: #60a5fa;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.target-card h2 {
    font-size: clamp(40px, 7vw, 75px);

    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.target-card h2 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--red),
            #f87171,
            #60a5fa,
            var(--blue)
        );

    background-size: 200% 100%;

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        smoothGradient 8s linear infinite;
}

.target-card p {
    max-width: 600px;

    margin: auto;

    color: #94a3b8;

    line-height: 1.8;
}

.target-line {
    width: 150px;
    height: 3px;

    background: rgba(255,255,255,0.1);

    margin: 40px auto 0;

    overflow: hidden;
}

.target-line span {
    display: block;

    width: 100%;
    height: 100%;

    transform-origin: left;

    transform: scaleX(0);

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--blue)
        );

    animation:
        targetLine linear both;

    animation-timeline: view();

    animation-range:
        entry 20%
        cover 60%;
}

@keyframes targetLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 20px;

    background: #020617;

    color: #64748b;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    font-size: 13px;
}

footer span {
    color: #94a3b8;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .scroll-line {
        display: none;
    }

    .section {
        min-height: auto;

        padding: 80px 0;
    }

    .section-number {
        display: none;
    }

    .card {
        width: 100%;

        padding: 35px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hobby-content {
        grid-template-columns: 1fr;
    }

    .hobby-icon {
        width: 80px;
        height: 80px;
    }

    .info-row {
        flex-direction: column;

        gap: 5px;
    }

    .info-row strong {
        text-align: left;
    }

    .dream-box {
        padding: 30px;
    }

    .dream-box h3 {
        font-size: 32px;
    }

    .target-card {
        padding: 45px 25px;
    }

    .target-card h2 {
        letter-spacing: -2px;
    }

    footer {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;
    }
}