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

:root {
    color-scheme: dark;
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color:#00ffee;
    --accent-2: #4688ff;
    --accent-3: #a855f7;
    --grad-accent: linear-gradient(135deg, var(--main-color) 0%, #22d3ee 45%, var(--accent-2) 100%);
    --glass-bg: rgba(19,19,19,0.55);
    --glass-bg-strong: rgba(8,8,8,0.72);
    --glass-border: rgba(0,255,238,0.18);
    --glass-blur: 12px;
    --glow-sm: 0 0 8px;
    --glow-md: 0 0 20px;
    --glow-lg: 0 0 36px;
    --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
    --ease-soft: cubic-bezier(0.4,0,0.2,1);
    --t-fast: 0.25s;
    --t-med: 0.4s;
}

html {
    overflow-x: hidden;
    scrollbar-color: var(--main-color) var(--bg-color);
    background: var(--bg-color);
}
body {
    background: transparent;
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
}

/* Indikator fokus keyboard — wajib aksesibel */
:focus-visible {
    outline: 3px solid var(--main-color);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background-color: var(--main-color);
    color: #000;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0,0,0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.logo {
    font-size: 3rem;
    color:var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}
.logo span {
    text-shadow: 0 0 25px var(--main-color);
}
.navbar {
    font-size: large;
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom-color: transparent;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 3px;
    width: 0;
    background: var(--grad-accent);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--main-color);
    transition: width 0.3s var(--ease-out-expo);
    pointer-events: none;
}
.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.menu-button {
    font-size: 3.6rem;
    color: var(--main-color);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
    scroll-margin-top: 9rem;
}
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    position: relative;
}

.home-content {
    display:flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color:var(--main-color);
}
.logo span {
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
}
.home-content h1 {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-img {
    border-radius: 50%;
}
.home-img img {
    position: relative;
    top: 3rem;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: #000;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size:1.6rem;
    color:black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover {
    transform:scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.btn-group .btn-outline {
    background-color: #000;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group .btn-outline:hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: #000;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after{
    content:"";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}
@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words {
    0%,
    20%{
        content: "Security";
    }
    21%,
    40%{
        content: "CCTV Operator";
    }
    41%,
    60%{
        content: "Web Designer";
    }
    61%,
    80%{
        content: "Frontend Developer";
    }
    81%,
    100%{
        content: "wanna be Fullstack Developer";
    }
}
@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    80%,
    85%{
        width: calc(100% + 8px);

    }
}

/* Section Education */
.heading {
    font-size: clamp(3.2rem, 7vw, 8rem);
    text-align: center;
    margin: 5rem 0;
}
.education{
    padding: 100px 15px;
    background: var(--second-bg-color);
}
.education h2{
    margin-bottom: 5rem;
}
.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left:calc(50% - 1px);
}
.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(even){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(odd){
    padding-left: calc(50% + 30px);
}
.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 4rem;
    transition: 0.3s ease-in-out;
}

.timeline-content .btn-sm:hover,
.timeline-content .btn-sm:focus-visible {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3{
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}
.timeline-content p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}

/* section Experience */
.experience {
    background: var(--bg-color);
    color: black;
    padding: 4rem 2rem;
}
.experience .heading {
    color: white;
    text-align: center;
    margin: 7rem 0;
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.experience-box {
    background-color: var(--main-color);
    height: auto;
    border-radius: 2rem;
    border: 3px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    padding: 2rem;
}

.experience-box:hover {
    background: white;
    color: black;
    border: 3px solid var(--main-color);
    transform: scale(1.03);
}

.experience-box .experience-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
}

.experience-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
}

.experience-info .period {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000;
    margin-top: 0.5rem;
}

.experience-info p {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Section Testimonials */
.testimonials{
    background: var(--second-bg-color);
}
.testimonials-box{
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.testimonials .heading{
    margin-bottom: 5rem;
}
.testimonials-box img{
    width: 15rem;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.wrapper{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3rem;
}
.testimonial-item{
    min-height: 550px;
    max-width: 450px;
    background:rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(238,238,238,0.2);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 30px 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    color: white;
    transition: 0.4s ease-in-out;
}
.testimonial-item:hover{
    border: 3px solid var(--main-color);
    transform: translateY(-10px)scale(1.03);
    box-shadow: 0 0 50px var(--main-color);
}
.testimonial-item h2{
    font-size: 2.8rem;
}
.testimonial-item p{
    font-size: 1.3rem;
}
.star{
    color: gold;
    font-size: 2rem;
}

/* Avatar inisial pengganti foto testimoni yang salah/duplikat */
.avatar-mono {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: var(--main-color);
    color: #000;
    font-size: 4.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

/* Label hanya untuk screen reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-hint {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #9ca3af;
}
/* Section Contact */
.contact{
    background-color: var(--bg-color);
}
.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact form .btn{
    margin-top: 2rem;
}
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;   
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}

/* media */
@media(max-width:1285px){
    html{
        font-size: 55%;
    }
    .experience-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(2,1fr);
        margin: 0 5rem;
    }
    .testimonials .wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:991px){
    header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .timeline-items::before{
        left: 7px;
    }
    .timeline-item:nth-child(even){
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd){
        padding-left: 37px;
    }
    .timeline-dot{
        left: 0;
    }
    .experience{
        padding-bottom: 7rem;
    }
    .testimonials .wrapper{
        grid-template-columns: repeat(1,1fr);
    }
    .contact form{
        flex-direction: column;
    }
    .footer{
        padding: 2rem 3%;
    }
}

@media(max-width:895px){
    .menu-button{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background-color: rgba(0,0,0,0.8);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        border-top: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        transition: opacity 0.3s var(--ease-soft), visibility 0.3s, transform 0.3s var(--ease-out-expo);
        pointer-events: none;
    }
    .navbar.active{
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 8rem;
        margin-top: 3rem;
    }
    .home-content p{
        max-width: 600px;
        margin: 0 auto;
    }
    .home-img img{
        width: 56vw;
    }
    .experience h2{
        margin-bottom: 3rem;
    }
    .experience-container{
        grid-template-columns: repeat(1,1fr);
    }
    .btn-group{
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .btn-group .btn{
        text-align: center;
    }
}

/* ============================================================
   CYBER COMMAND: Control-Room HUD — upgrade visual futuristik
   ============================================================ */

/* ---------- Background FX layers ---------- */
.bg-aurora {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    inset: -10%;
    background: radial-gradient(closest-side at 18% 22%, rgba(0,255,238,.10), transparent 72%),
                radial-gradient(closest-side at 82% 68%, rgba(70,136,255,.10), transparent 72%);
    animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
    0%   { transform: translate3d(-3%,-2%,0) scale(1); }
    50%  { transform: translate3d(2%,1.5%,0) scale(1.08); }
    100% { transform: translate3d(3%,-2%,0) scale(1.03); }
}
.bg-grid {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    background-image: linear-gradient(rgba(0,255,238,.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,255,238,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(closest-side at 50% 30%, #000, transparent 92%);
    mask-image: radial-gradient(closest-side at 50% 30%, #000 0%, transparent 92%);
}
.bg-noise {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bagian yang harus tembus menunjukkan aurora di belakangnya */
.experience {
    background: transparent;
}
.contact {
    background-color: transparent;
}

/* ---------- Hero FX (dot melayang) ---------- */
.hero-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--main-color);
    box-shadow: 0 0 8px var(--main-color), 0 0 16px var(--main-color);
    opacity: .7;
    animation: dotFloat var(--d, 10s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes dotFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-26px); }
}

/* ---------- Hero photo: ring berputar + sonar ---------- */
.home-img {
    position: relative;
    border-radius: 50%;
}
.img-ring {
    position: relative;
    top: 3rem;
    border-radius: 50%;
    padding: 10px;
}
.img-ring::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(from 0deg, var(--main-color), var(--accent-2), var(--accent-3), var(--main-color));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    filter: drop-shadow(0 0 10px rgba(0,255,238,0.6));
    animation: ringRotate 7s linear infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.img-ring::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    animation: sonarPing 4s ease-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}
@keyframes sonarPing {
    0%        { transform: scale(1); opacity: .7; }
    70%, 100% { transform: scale(1.4); opacity: 0; }
}
.img-ring img {
    position: relative;
    top: 0;
    width: 32vw;
    height: 32vw;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
    z-index: 2;
}

/* ---------- Badge "6+ Tahun Pengalaman" ---------- */
.badge {
    position: absolute;
    bottom: 8%;
    left: -6%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.7rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 4rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-md) rgba(0,255,238,0.18);
    animation: floatY 5s ease-in-out infinite;
}
.badge .dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--main-color);
    box-shadow: var(--glow-md) var(--main-color);
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---------- Hero entrance (preload) — hanya saat JS aktif ---------- */
html.js body.preload .home-content > *,
html.js body.preload .home-img {
    animation: riseUp .8s var(--ease-out-expo) backwards;
}
html.js body.preload .home-content > *:nth-child(1) { animation-delay: .05s; }
html.js body.preload .home-content > *:nth-child(2) { animation-delay: .1s; }
html.js body.preload .home-content > *:nth-child(3) { animation-delay: .15s; }
html.js body.preload .home-content > *:nth-child(4) { animation-delay: .2s; }
html.js body.preload .home-content > *:nth-child(5) { animation-delay: .25s; }
html.js body.preload .home-img { animation-name: zoomIn; animation-delay: .35s; }
@keyframes riseUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(.86); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Header: menyusut saat scroll ---------- */
.header {
    transition: padding 0.4s var(--ease-soft), background 0.4s var(--ease-soft),
                box-shadow 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft);
}
.header.scrolled {
    padding-block: 1.8rem;
    background: rgba(8,8,8,0.82);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 1px 0 rgba(0,255,238,0.08);
}

.logo span {
    animation: logoGlow 3.5s ease-in-out infinite;
}
@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 12px var(--main-color); }
    50%      { text-shadow: 0 0 12px var(--main-color), 0 0 36px var(--main-color), 0 0 60px var(--main-color); }
}

/* ---------- Button shine sweep ---------- */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: translateX(-120%) skewX(-18deg);
    transition: transform .6s var(--ease-out-expo);
    z-index: 1;
    pointer-events: none;
}
.btn:hover::after,
.btn:focus-visible::after {
    transform: translateX(320%) skewX(-18deg);
}
.btn:active {
    transform: scale(0.97);
}
.btn-auto-shine::after {
    animation: btnShine 4.5s ease-in-out 3s infinite;
    transform: translateX(-120%) skewX(-18deg);
}
@keyframes btnShine {
    0%, 65% { transform: translateX(-140%) skewX(-18deg); }
    85%, 100% { transform: translateX(340%) skewX(-18deg); }
}

/* ---------- Scroll reveal system ---------- */
[data-reveal] {
    transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}
html.js [data-reveal]:not(.in-view) {
    opacity: 0;
    transform: translateY(30px);
}
html.js [data-reveal="left"]:not(.in-view) {
    transform: translateX(-40px);
}
html.js [data-reveal="right"]:not(.in-view) {
    transform: translateX(40px);
}
html.js [data-reveal="zoom"]:not(.in-view) {
    transform: scale(0.92);
}
html.js [data-reveal].in-view {
    opacity: 1;
    transform: none;
}

/* ---------- Timeline: fill progres + dot ping + kartu kaca ---------- */
.timeline-fill {
    position: absolute;
    top: 0;
    left: calc(50% - 1px);
    width: 5px;
    height: 0;
    z-index: 1;
    background: repeating-linear-gradient(180deg, var(--main-color) 0 12px, transparent 12px 22px);
    box-shadow: 0 0 12px var(--main-color), 0 0 24px rgba(0,255,238,0.5);
    transition: height .12s linear;
    pointer-events: none;
}
.timeline-dot {
    position: relative;
}
.timeline-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--main-color);
    animation: dotPing 2.6s ease-out infinite;
    z-index: -1;
}
@keyframes dotPing {
    0%        { transform: scale(1); opacity: .9; }
    70%, 100% { transform: scale(2.4); opacity: 0; }
}
.timeline-content {
    background-color: rgba(8,8,8,0.72);
    position: relative;
    overflow: hidden;
}
.timeline-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(0,255,238,0.15), transparent);
    transform: translateX(-130%) skewX(-18deg);
    transition: transform .7s var(--ease-out-expo);
    pointer-events: none;
}
.timeline-content:hover::after,
.timeline-content:focus-within::after {
    transform: translateX(320%) skewX(-18deg);
}

/* ---------- Experience: icon chip + gradient border hover ---------- */
.experience-box {
    position: relative;
    border: 3px solid transparent;
    transition: opacity 0.7s var(--ease-soft),
                transform 0.7s cubic-bezier(0.16,1,0.3,1),
                background 0.4s var(--ease-soft),
                color 0.4s var(--ease-soft),
                border-color 0.4s var(--ease-soft),
                box-shadow 0.4s var(--ease-soft);
}
.experience-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 2rem;
    padding: 3px;
    background: var(--grad-accent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-soft);
    pointer-events: none;
}
.experience-box:hover::before {
    opacity: 1;
}
.experience-box:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 30px rgba(0,255,238,0.25);
}
.experience-icon {
    width: 5.6rem;
    height: 5.6rem;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.6rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(0,255,238,0.5);
    color: var(--main-color);
    font-size: 3rem;
    line-height: 1;
    box-shadow: var(--glow-sm) rgba(0,255,238,0.35);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-soft);
    z-index: 1;
    position: relative;
}
.experience-box:hover .experience-icon {
    transform: rotate(-6deg) scale(1.1);
    box-shadow: var(--glow-md) rgba(0,255,238,0.5);
}

/* ---------- Testimonials: kaca bernapas ---------- */
.testimonial-item {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    animation: borderBreath 6s ease-in-out infinite;
    transition: opacity 0.7s var(--ease-soft),
                transform 0.7s cubic-bezier(0.16,1,0.3,1),
                border-color 0.4s var(--ease-soft),
                box-shadow 0.4s var(--ease-soft);
}
.testimonial-item:hover {
    animation: none;
}
@keyframes borderBreath {
    0%, 100% { box-shadow: 0 0 8px rgba(0,255,238,0.15), 0 0 0 1px rgba(0,255,238,0.1); }
    50%      { box-shadow: 0 0 24px rgba(0,255,238,0.35), 0 0 0 3px rgba(0,255,238,0.14); }
}
.star {
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}

/* ---------- Contact: form kaca + focus neon ---------- */
.contact form {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: var(--glow-sm) rgba(0,255,238,0.12);
    max-width: 900px;
}
.contact form .input-box input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0,255,238,0.15), var(--glow-lg) rgba(0,255,238,0.35);
    background: rgba(19,19,19,0.9);
}
.contact form .input-box input:focus::placeholder,
.contact form textarea:focus::placeholder {
    opacity: 0.45;
}

/* ---------- Scroll top ---------- */
.scroll-top {
    position: fixed;
    right: 2.5rem;
    bottom: 2.5rem;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--main-color);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--glow-sm) rgba(0,255,238,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-out-expo), visibility 0.3s;
    z-index: 6;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.scroll-top:hover {
    color: #000;
    background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: var(--glow-md) var(--main-color);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 895px) {
    .header.scrolled { padding-block: 1.2rem; }
    .home-img img,
    .img-ring img { width: 56vw; height: 56vw; }
}

@media (max-width: 480px) {
    .badge { display: none; }
    .scroll-top { right: 1.6rem; bottom: 1.6rem; }
    .hero-dot { opacity: .5; }
}

@media (max-width: 991px) {
    .timeline-fill { left: 7px; }
}

/* Hormati preferensi pengguna terhadap animasi (vestibular / motion sensitivity) */
@media (prefers-reduced-motion: reduce) {
    .timeline-fill { height: 100% !important; }
    .img-ring::before,
    .img-ring::after,
    .hero-dot { animation: none !important; }
    .badge,
    .logo span { animation: none !important; }
    .btn-auto-shine::after { animation: none !important; }
    [data-reveal],
    .header,
    .scroll-top,
    .navbar { transition: none !important; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .text-animation span::before {
        content: "Frontend Developer";
    }
}

@media (min-width: 1286px) {
    .header { padding: 2rem 8% 2rem; }
    .logo { font-size: 2.4rem; }
    .navbar a { font-size: 1.4rem; margin-left: 2.6rem; }
    .menu-button { font-size: 2.6rem; }
}