:root{
--main-color:#ff4c4c;      /* merah default */
--text-color:#ffffff;      /* putih */
--bg-color:#000000;        /* background */
--secondary-text:#cccccc;  /* abu soft */
--card-bg:#111111;
--particle-bg:#000000;
--filter-border:#333333;
--filter-active-text:#ffffff;
--progress-bg:#1a1a1a;   /* dark mode */
--footer-border:rgba(255,255,255,0.1);
transition: --bg-color 3s ease, --text-color 3s ease, --main-color 3s ease;


}

/* LIGHT MODE */

body.light-mode{
--main-color:#2563eb;     /* biru */
--text-color:#000000;     /* hitam */
--bg-color:#f3f4f6;       /* abu abu */
--secondary-text:#444444;
--card-bg:#f5f5f5;
--particle-bg:#e5e7eb;
--filter-border:#cfcfcf;
--progress-bg:rgb(125, 125, 125);   /* abu agak gelap di light mode */
--footer-border:rgba(0,0,0,0.1);
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}


body{
font-family:'Poppins',sans-serif;
background:var(--bg-color);
color:var(--text-color);
padding-top:80px;
}

/* ================= NAVBAR ================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    z-index: 100;
}

/* Container Logo + Icon */
.logo-wrapper {
    display: flex;
    align-items: center; 
    cursor: pointer;
    text-decoration: none;
    color: inherit; 
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color); /* Warna merah/biru */
    text-decoration: none;
}

#theme-toggle i {
    font-size: 18px;
    color: var(--main-color); /* Ikon ikut warna main-color */
    transition: 0.3s ease;
}

/* Efek Hover Sedikit */
.logo-wrapper:hover i {
    filter: brightness(1.2);
}

/* Navigasi Desktop */
.navbar {
    display: flex;
    align-items: center;
    margin-left: auto; 
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: 0.3s;
}

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

/* Hamburger (Hanya muncul di Mobile) */
#menu-icon {
    display: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 20px;
}


/* ================= GLOBAL SECTION ================= */
section {
    padding: 100px 10%;
}

/* Berikan transisi ke body dan elemen-elemen utamanya */
body, 
header, 
.navbar, 
.navbar a, 
.logo, 
.home-content h1, 
.home-content h3, 
.section-title {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ================= HERO ================= */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    gap: 80px;
}

.home-img img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 50%;
    border: 4px solid var(--main-color);
}

.home-content h1 {
    font-size: 48px;
    font-weight: 700;
    align-items: flex-start;
}

.home-content span {
    color: var(--main-color);
}

.home-content h3 {
    font-size: 28px;
    margin: 15px 0;
    font-weight: 600;
}

.home-content p {
    max-width: 500px;
    font-size: 18px;
    color: var(--secondary-text);
}

/* ================= SOCIAL ================= */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-right: 15px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--main-color);
}

/* LIGHT MODE SOCIAL ICON */

body.light-mode .social-icons a{
    color:black;
}

body.light-mode .social-icons a:hover{
    color:var(--main-color);
}

/* ================= EDUCATION ================= */

.section-title {
    font-size: 40px;
    margin-bottom: 60px;
    color: #ffffff;
}

/* Wrapper untuk banyak education */
.education-wrapper {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Item per pendidikan */
.education-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Untuk zigzag */
.education-item.reverse {
    flex-direction: row-reverse;
}

.education-text {
    flex: 1;
}

.education-text h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--main-color); /* Nama sekolah merah */
}

.education-text h3{
    font-size:18px;
    margin-bottom:15px;
    color:var(--text-color);
}

.education-text p {
    color: var(--secondary-text);
    line-height: 1.7;
}

.education-img {
    flex: 1.2; /* bikin area foto lebih lebar dari text */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
}

.education-img img {
    width: 95%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.4s ease;
}

.education-img img:hover {
    transform: scale(1.05);
}

/* ================= SCROLL ANIMATION ================= */
.section-animate{
opacity:1 !important;
transform:none !important;
transition:none !important;
}

.section-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.projects {
    padding: 100px 10%;
}

.project-filter {
    margin-bottom: 40px;
}

.filter-btn{
    padding:8px 20px;
    margin-right:10px;
    border:1px solid var(--filter-border);
    background:var(--filter-bg);
    color:var(--filter-text);
    cursor:pointer;
    border-radius:20px;
    transition:0.3s;
}

.filter-btn.active,
.filter-btn:hover{
background:var(--main-color);
color:var(--filter-active-text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* paksa 3 kolom */
    gap: 30px;
}

.project-card{
    background:var(--card-bg);
    border-radius:15px;
    overflow:hidden;
    cursor:pointer;
    transition:0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--main-color);
}

.project-info p {
    font-size: 14px;
    color: var(--secondary-text);
}

.music-player {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0px;
    border-radius: 10px;
    width: fit-content;
    align-self: flex-start;

}

.music-player button {
    background: var(--main-color);
    margin-left: 2px;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    margin-left: 0px;
}

.music-player button:hover {
    transform: scale(1.1);
}

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

.song-title {
    font-size: 14px;
    color: white;
    font-weight: 600;
}

.music-info .artist-name {
    font-size: 13px;
    color: var(--main-color) !important; /* ARTIST MERAH */
}

.cover {
    width: 55px;
    height: 55px;
    object-fit: cover;
    margin-left: 80px; /* ini bikin agak berjarak */
}

.current-activity {
    padding: 100px 10%;
}

.section-title {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 60px;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}

.activity-row.reverse {
    flex-direction: row-reverse;
}

.activity-image img {
    width: 450px;
    min-height: 200px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.4s ease;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}

.activity-row.reverse {
    flex-direction: row-reverse;
}

.activity-image3 img {
    width: 450px;
    min-height: 200px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.4s ease;
}

.activity-image1 img {
    width: 450px;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.4s ease;
}

.activity-image2 img {
    width: 500px;
    min-height: 200px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.4s ease;
}

.activity-image4 img {
    width: 500px;
    min-height: 200px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.4s ease;
}


.activity-image img:hover {
    transform: scale(1.05);
}

.activity-image3 img:hover {
    transform: scale(1.05);
}

.activity-image2 img:hover {
    transform: scale(1.05);
}

.activity-image1 img:hover {
    transform: scale(1.05);
}

.activity-image4 img:hover {
    transform: scale(1.05);
}

.activity-text {
    max-width: 500px;
}

.activity-text h3{
    font-size:28px;
    margin-bottom:15px;
    color:var(--text-color);
}

.activity-text p {
    color: var(--secondary-text);
    line-height: 1.8;
}

.spotify-section{
    text-align:center;
    padding:100px 20px;
}

.spotify-title{
    font-size:32px;
    margin-bottom:40px;
}

.spotify-embed-container{
    display:flex;
    justify-content:center;   /* supaya tetap di tengah */
    align-items:center;
    gap:30px;
    flex-wrap:wrap;           /* supaya kalau layar kecil turun ke bawah */
}

.spotify-embed-container iframe{
    max-width:500px;
    width:100%;
}

/* SECTION */
.cert-section {
    padding: 100px 10%;
    color: white;
}



/* WRAPPER (untuk arrow absolute) */
.carousel-wrapper {
    position: relative;
}

/* CAROUSEL */
.cert-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.cert-carousel::-webkit-scrollbar {
    display: none;
}

/* ITEM (sekarang bisa jadi <a>) */
.cert-item {
    min-width: 280px;
    flex-shrink: 0;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-6px);
}

.cert-title {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 60px;
}

/* IMAGE */
.cert-item img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 10px;
    transition: 0.3s ease;
}

.cert-item h3{
    font-size:16px;
    margin-bottom:5px;
    font-weight:600;
    letter-spacing:0.3px;
    color:var(--text-color);

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* SUB TEXT */
.cert-item p {
    font-size: 14px;
    color: var(--secondary-text);
}

.swipe-hint{
    text-align:center;
    font-size:20px;
    color:var(--text-color);
    margin-top:50px;
    margin-bottom:30px;
    letter-spacing:1px;
    opacity:0.8;
}

.cert-image-wrapper {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
}

.view-icon {
    font-size: 40px;
    color: white;
}

.cert-image-wrapper:hover .overlay {
    opacity: 1;
}

.cert-image-wrapper:hover img {
    transform: scale(1.05);
}

.eye-icon {
    font-size: 20px;
}



.cert-image-wrapper:hover .overlay-content {
    transform: translateY(0);
}



#particles-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -100;
    top: 0;
    left: 0;
    background-color:var(--particle-bg);
}

.cursor {
    display: inline-block;
    margin-left: 3px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.stats-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 120px 0;
    text-align: center;

    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.stats-section.show {
    opacity: 1;
    transform: translateY(0);
}

.stat-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.counter{
    font-size:60px;
    font-weight:bold;
    color:var(--main-color);
}

.stat-label {
    font-size: 20px;
    color: var(--secondary-text);
}

.stat-box:not(:last-child)::after {
    content: "";
    height: 30px;
    width: 1px;
    background: rgba(255,255,255,0.2);
    margin-left: 40px;
}

.home-img{
    position: relative;
}

.skill-card{
    position:absolute;
    padding:8px 18px;
    border-radius:12px;
    font-size:14px;
    font-weight:600;
    color:white;

    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(10px);

    box-shadow:0 10px 25px rgba(0,0,0,0.3);

    white-space:nowrap;
    transition:opacity .4s ease, transform 6s ease-in-out;
}

.fade-out{
    opacity:0;
}

/* posisi awal */
#card1{
    top: 0;
    left: 40px;
}

#card2{
    top: 80px;
    right: -20px;
}

#card3{
    bottom: 0;
    left: -20px;
}

#card4{
    bottom: 0;
    right: 20px;
}

/* animasi fade */
.fade-out{
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-in{
    opacity: 1;
    transition: opacity 0.4s ease;
}

.footer{
    padding:20px 20px;
    text-align:center;
    background:var(--card-bg);
    margin-top:80px;
    border-top:1px solid var(--footer-border);
}

.footer p{
    color:var(--secondary-text);
    font-size:14px;
    margin-top:15px;
}

.footer-socials{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom:15px;
}

.footer-socials a{
    font-size:24px;
    color:var(--text-color);
    transition:0.3s;
}

.footer-socials a:hover{
    color:var(--main-color);
    transform:translateY(-3px);
}

.project-card.hidden-force {
    display: none !important;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;  
    margin-bottom: 20px;  
    width: 100%;     
}

.show-btn{
    background-color:transparent;
    color:white;
    padding:10px 30px;
    border:1px solid rgba(255,255,255,0.2);
    border-radius:50px;
    cursor:pointer;
    font-size:14px;
    transition:all 0.3s ease;
}

.show-btn:hover{
    background-color:white;
    color:black;
}

body.light-mode .show-btn{
    color:black;
    border:1px solid rgba(0,0,0,0.2);
}

body.light-mode .show-btn:hover{
    background-color:black;
    color:white;
}

.footer-cv {
    margin-top: 25px;
    text-align: center;
}

.cv-btn {
    display: inline-block;
    padding: 7px 30px;
    background: var(--main-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cv-btn:hover {
    background: #ffffff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 76, 76, 0.4);
}


nav a.cv-nav-btn:hover {
    color: white;
}

.cv-nav-btn {
    background-color: var(--main-color);
    color: white !important; 
    padding: 2px 20px !important;
    border-radius: 20px; 
    margin-left: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--main-color);
}

.cv-nav-btn:hover {
    background-color: transparent;
    color: var(--main-color) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(255, 76, 76, 0.3);
}

/* ============== TECH STACK ============== */

.tech-stack{
    padding:120px 10%;
}

.tech-container{
    max-width:900px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:30px;
}

.tech-info{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
    font-weight:600;
}

/* BAR BACKGROUND */

.progress-bar{
    width:100%;
    height:12px;
    background:var(--progress-bg);
    border-radius:50px;
    overflow:hidden;
}

/* PROGRESS */

.progress{
    height:100%;
    width:0;
    border-radius:50px;
    position:relative;
    background:linear-gradient(90deg,#8A2BE2,#6A5ACD);
    overflow:hidden;
    transition:width 1.8s ease;
}

/* WAVE EFFECT */

.progress::before{
    content:"";
    position:absolute;
    width:200%;
    height:200%;
    top:-50%;
    left:-50%;
    background:rgba(255,255,255,0.15);
    border-radius:40%;
    animation:wave 4s linear infinite;
}

@keyframes wave{

0%{
transform:rotate(0deg);
}

100%{
transform:rotate(360deg);
}

}

/* UJUNG BAR GERAK MAJU MUNDUR */

.progress::after{
    content:"";
    position:absolute;
    right:-6px;
    top:50%;
    transform:translateY(-50%);
    width:12px;
    height:12px;
    border-radius:50%;
    background:#a855f7;
    box-shadow:0 0 10px #a855f7;
    animation:tipMove 2.5s ease-in-out infinite;
}

@keyframes tipMove{

0%{
transform:translate(-2px,-50%);
}

50%{
transform:translate(2px,-50%);
}

100%{
transform:translate(-2px,-50%);
}

}

.skill-category{
    margin-top:40px;
    margin-bottom:10px;
    font-size:22px;
    font-weight:700;
    color:var(--text-color);
    position:relative;
}

.skill-category::after{
    content:"";
    display:block;
    width:900px;
    height:2px;
    background:var(--text-color);
    margin-top:6px;
    border-radius:5px;
}

/* HERO BUTTONS */

.hero-buttons{
    display:flex;
    gap:16px;
    margin-top:25px;
}

/* BUTTON BASE */

.hero-btn{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 24px;
    border-radius:10px;
    font-weight:600;
    font-size:16px;
    text-decoration:none;
    transition:0.25s ease;
}

/* PRIMARY BUTTON */

.hero-btn.primary{
    background:white;
    color:black;
}

.hero-btn.primary:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* SECONDARY BUTTON */

.hero-btn.secondary{
    background:rgba(255,255,255,0.15);
    color:white;
}

.hero-btn.secondary:hover{
    background:rgba(255,255,255,0.25);
}

/* LIGHT MODE BUTTON FIX */

body.light-mode .hero-btn.primary{
    background:black;
    color:white;
}

body.light-mode .hero-btn.secondary{
    background:rgba(0,0,0,0.1);
    color:black;
    border:1px solid rgba(0,0,0,0.2);
}

body.light-mode .hero-btn.secondary:hover{
    background:rgba(0,0,0,0.2);
}

@media (max-width:768px){

section{
padding:80px 20px;
}

header{
padding:15px 20px;
}

nav a{
margin-left:15px;
font-size:14px;
}

.home{
flex-direction:column;
text-align:center;
gap:40px;
}

.project-grid{
grid-template-columns:1fr;
}

.stats-section{
flex-direction:column;
gap:30px;
}

.education-item,
.education-item.reverse{
flex-direction:column;
}



}

/* ================= CERTIFICATE CAROUSEL ================= */

.carousel-wrapper{
position:relative;
}

.carousel-wrapper .arrow{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:28px;
color:white;
cursor:pointer;
display:flex;
}

.arrow.left{
left:-40px;
}

.arrow.right{
right:-40px;
}

:root {
    --primary-futuristic: #ffffff;
    --error-color: #ff0033;
    --bg-loader: #000000;
}

#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-loader);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

/* HUD & Scanlines */

.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

.loader-content {
    text-align: center;
    color: var(--primary-futuristic);
    width: 320px;
    z-index: 2;
}

#welcome-text {
    font-size: 1.2rem;
    letter-spacing: 5px;
    margin: 20px 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--primary-futuristic);
}

.loading-bar {
    width: 100%; height: 4px;
    background: rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loading-percentage {
    margin-top: 15px;
    font-size: 16px;  
}

#progress-fill {
    height: 100%; width: 0%;
    background: var(--primary-futuristic);
    box-shadow: 0 0 15px var(--primary-futuristic);
    transition: width 0.1s linear;
}

.terminal-logs {
    height: 100px;
    font-size: 9px;
    text-align: left;
    overflow: hidden;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 10px;
    opacity: 0.8;
}

.log-line { margin-bottom: 2px; white-space: nowrap; }

/* Error State */
.error-mode {
    --primary-futuristic: var(--error-color) !important;
}


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


.mobile-slide-hint{
display:none;
}

/* ================= HAMBURGER DEFAULT (DESKTOP) ================= */

#menu-icon{
display:none;
}

