:root {
    --bg-color: #0a0a0a;
    --text-main: #ffffff;
    --accent: #f0f0f0;
    --loader-bg: #0a0a0a;
    --loader-accent: #6366f1;
    --loader-text: #ffffff;
    --loader-subtle: rgba(255, 255, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}



* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px; /* Space for fixed navbar */
}

/* SCROLL ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    z-index: 1000;
    animation: navbarSlideDown 0.8s ease-out;
}

nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
}

nav.scrolled .nav-inner {
    padding: 0.85rem 1.5rem;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

nav .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

nav .nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

nav .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

nav .logo:hover {
    color: #ff784f;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav .nav-links li {
    list-style: none;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--text-main);
    opacity: 0.75;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.15rem 0;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.35rem;
    left: 0;
    width: 0;
    height: 2px;
    background: #3f9dff;
    transition: width 0.3s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    opacity: 1;
    color: #3f9dff;
}

nav .nav-links a:hover::after,
nav .nav-links a.active::after {
    width: 100%;
}

nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f6bff, #8b3dff);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(79, 107, 255, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

nav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(79, 107, 255, 0.28);
}

.hero {     
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    padding: 5rem 5%; 
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-overlay {
    display: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-pretitle {
    font-size: 1rem;
    color: #8b8b8b;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out both;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.typing-text {
    white-space: pre-line;
    display: inline-block;
    color: #ffffff;
    text-align: left;
}

.typing-text::after {
    content: '|';
    display: inline-block;
    margin-left: 0.2rem;
    animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-content h1 span {
    color: #c1b7b3;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 9rem;
    letter-spacing: -0.07em;
    animation: fadeInUp 1s ease-out 0.55s both;
}

.hero-description {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-certificate-stack {
    position: absolute;
    right: 5%;
    bottom: 5rem;
    z-index: 2;
    display: grid;
    gap: 1rem;
    transform: translateZ(0);
    pointer-events: none;
}

.certificate-card {
    width: 250px;
    min-height: 140px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: none;
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: cardFloat 1.2s ease-out both;
}

.certificate-card.card-1 {
    transform: rotate(-3deg);
    animation-delay: 0.2s;
}

.certificate-card.card-2 {
    transform: rotate(2deg);
    animation-delay: 0.35s;
}

.certificate-card.card-3 {
    transform: rotate(-1deg);
    animation-delay: 0.5s;
}

.certificate-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #ffb577;
    text-transform: uppercase;
}

.certificate-card strong {
    display: block;
    margin: 1rem 0 0.8rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.certificate-card p {
    font-size: 0.95rem;
    color: #c2c2c2;
    line-height: 1.6;
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}


/* Animasi Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* SKILLS SECTION */
.skills-section {
    background: transparent;
    margin: 0 auto;
    padding: 4rem 5rem 5rem 5rem;
    text-align: center;
    border: none;
    border-radius: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.skills-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.skills-title span {
    color: #ff784f;
}
.skills-desc {
    color: #bdbdbd;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.skill-card {
    background: #23243a;
    border-radius: 16px;
    padding: 2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
    min-width: 140px;
}
.skill-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}
.skill-card:hover .skill-icon {
    transform: scale(1.2);
}
.skill-card::after {
    content: attr(data-skill);
    position: absolute;
    bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.skill-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}
.skill-card.active {
    background: #3a3d5c;
    box-shadow: 0 0 20px rgba(255, 120, 79, 0.3);
}
.skill-card.active::after {
    opacity: 1;
    transform: translateY(0);
}

/* MARQUEE ANIMATION */
.skills-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
    display: flex;
    gap: 2rem;
    animation: marquee 20s linear infinite;
    width: max-content;
}
.marquee-content .skill-card {
    min-width: 180px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* PROJECTS SECTION */
.projects-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}
.projects-title span {
    color: #ff784f;
}
.projects-desc {
    text-align: center;
    color: #bdbdbd;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.project-card {
    background: #181926;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 120, 79, 0.2);
    border-color: #ff784f;
}
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}
.project-info {
    padding: 1.5rem;
}
.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.project-info p {
    color: #bdbdbd;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.project-tags span {
    background: #23243a;
    color: #ff784f;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}


@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skills-section {
        padding: 2rem 1.5rem 2rem 1.5rem;
        margin: 0 1rem;
        border: none;
        border-radius: 20px;
    }
}
@media (max-width: 900px) {
    .skills-marquee {
        width: 100%;
        padding: 0;
    }
    .marquee-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        animation: none;
        transform: none;
    }
    .skill-card {
        min-width: auto;
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 600px) {
    .skills-section {
        padding: 2rem 1rem 2rem 1rem;
        margin: 0 0.5rem;
    }
    .skill-card {
        padding: 1.2rem 0.8rem;
    }
}
/* ABOUT SECTION */
.about-section {
    padding: 6rem 3%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* Animated Card Container */
.about-card-wrap {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 85vmin;
    height: 65vmin;
    margin: 2rem auto;
    border: 8px solid;
    border-image: linear-gradient(
            -50deg,
            #bcafab,
            #0a0a0a,
            #8e5949,
            #0a0a0a,
            #ff784f,
            #f6c0c0,
            #c4a096
        )
        1;
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
}

.about-overlay {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 120, 79, 0.15), rgba(10, 10, 10, 0.8));
    transition: 0.4s ease-in-out;
    z-index: 1;
}

.about-overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15vmin;
    height: 100%;
    padding: 0.5rem 0 0 0.5rem;
    border: 3px solid;
    border-image: linear-gradient(
            to bottom,
            #ff784f 5%,
            #0a0a0a 35% 65%,
            #ff784f 95%
        )
        0 0 0 100%;
    transition: 0.3s ease-in-out 0.2s;
    z-index: 1;
}

.about-overlay-content h1 {
    font-size: 3.5vmin;
    text-align: center;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-overlay-content p {
    font-size: 1.5vmin;
    text-align: center;
    color: #ff784f;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-image-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vmin;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
    overflow: hidden;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.5s ease;
}

.about-profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-inset {
    max-width: 50%;
    margin: 0.25em 1em 1em 0;
    border-radius: 0.25em;
    float: left;
    border: 2px solid #ff784f;
}

.about-dots {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 70px;
    height: 4vmin;
    transition: 0.3s ease-in-out 0.3s;
}

.about-dot {
    width: 1rem;
    height: 1rem;
    background: #ff784f;
    border: 1px solid var(--text-main);
    border-radius: 50%;
    transition: 0.3s ease-in-out 0.3s;
}

.about-text-content {
    display: grid;
    position: absolute;
    top: 0;
    right: 0;
    width: 60vmin;
    height: 100%;
    padding: 3vmin 4vmin;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 1px 1px 15px 0 rgba(0 0 0 / 0.4);
    overflow-y: scroll;
    color: #0a0a0a;
}

.about-text-content p {
    font-size: max(10pt, 2.5vmin);
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: linear-gradient(135deg, rgba(255, 120, 79, 0.1), rgba(99, 102, 241, 0.1));
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 120, 79, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 120, 79, 0.2);
    border-color: #ff784f;
}

.skill-item h3 {
    font-size: 1.2rem;
    color: #ff784f;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Hover Effects */
.about-card-wrap:hover .about-overlay {
    transform: translateX(-60vmin);
}

.about-card-wrap:hover .about-image-content {
    width: 30vmin;
}

.about-card-wrap:hover .about-overlay-content {
    border: none;
    transition-delay: 0.2s;
    transform: translateX(60vmin);
}

.about-card-wrap:hover .about-dots {
    transform: translateX(1rem);
}

.about-card-wrap:hover .about-dots .about-dot {
    background: var(--text-main);
}

/* Animations and timing delays */
.animate {
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48);
    animation-fill-mode: backwards;
}

/* Pop In */
.pop {
animation-name: pop;
}

@keyframes pop {
0% {
opacity: 0;
transform: scale(0.5, 0.5);
}
100% {
opacity: 1;
transform: scale(1, 1);
}
}

/* Slide In */
.slide {
animation-name: slide;
}

@keyframes slide {
0% {
opacity: 0;
transform: translate(4em, 0);
}
100% {
opacity: 1;
transform: translate(0, 0);
}
}

/* Slide Left */
.slide-left {
animation-name: slide-left;
}

@keyframes slide-left {
0% {
opacity: 0;
transform: translate(-40px, 0);
}
100% {
opacity: 1;
transform: translate(0, 0);
}
}

.slide-up {
animation-name: slide-up;
}

@keyframes slide-up {
0% {
opacity: 0;
transform: translateY(3em);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

.delay-1 {
animation-delay: 0.3s;
}
.delay-2 {
animation-delay: 0.6s;
}
.delay-3 {
animation-delay: 0.9s;
}
.delay-4 {
animation-delay: 1.2s;
}
.delay-5 {
animation-delay: 1.5s;
}
.delay-6 {
animation-delay: 1.8s;
}
.delay-7 {
animation-delay: 2.1s;
}
.delay-8 {
animation-delay: 2.4s;
}

/* CONTACT SECTION */
.contact-section {
width: 100vw;
padding: 5rem 5%;
display: flex;
justify-content: center;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.contact-card {
    background: #ffffff;
    color: #000000;
    padding: 3rem;
    border-radius: 40px;
    width: 300%;
    max-width: none;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card stack animation for contact section */
.contact-section .contact-card {
    position: relative;
}

.contact-section .contact-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 35px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.contact-section .contact-card::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    border-radius: 30px;
    z-index: -2;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.contact-section .contact-card.animate-in::before {
    opacity: 0.6;
    transform: scale(1) translateY(-5px);
}

.contact-section .contact-card.animate-in::after {
    opacity: 0.3;
    transform: scale(1) translateY(-10px);
}

/* Floating animation for stack cards */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.01);
    }
}

.contact-section .contact-card.animate-in::before {
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: 0.2s;
}

.contact-section .contact-card.animate-in::after {
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: 0.4s;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

.contact-header p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.contact-email {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #ff784f;
    text-decoration: underline;
    transform: translateY(-2px);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.1;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #000;
    display: flex;
    justify-content: space-between;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    border-color: transparent;
    text-shadow: 0 0 10px currentColor,
                 0 0 20px currentColor,
                 0 0 30px currentColor;
}

/* Glowing Animation */
@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                    0 0 10px rgba(255, 255, 255, 0.3),
                    0 0 15px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                    0 0 30px rgba(255, 255, 255, 0.6),
                    0 0 40px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                    0 0 10px rgba(255, 255, 255, 0.3),
                    0 0 15px rgba(255, 255, 255, 0.2);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
    100% {
        transform: translateY(-2px) scale(1);
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Individual Social Media Button Effects */
.link-btn[href*="github"]:hover {
    background: linear-gradient(135deg, #24292e, #0366d6);
    color: #fff;
    animation: glowing 2s ease-in-out infinite, pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(3, 102, 214, 0.6),
                0 0 40px rgba(3, 102, 214, 0.4),
                0 0 60px rgba(3, 102, 214, 0.2);
}

.link-btn[href*="instagram"]:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #f77737);
    color: #fff;
    animation: glowing 2s ease-in-out infinite, pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(131, 58, 180, 0.6),
                0 0 40px rgba(253, 29, 29, 0.4),
                0 0 60px rgba(247, 119, 55, 0.2);
}

.link-btn[href*="linkedin"]:hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: #fff;
    animation: glowing 2s ease-in-out infinite, pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.6),
                0 0 40px rgba(0, 160, 220, 0.4),
                0 0 60px rgba(0, 119, 181, 0.2);
}

/* Active/Click Effect */
.link-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Ripple Effect on Click */
.link-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.link-btn:active::before {
    width: 300px;
    height: 300px;
    animation: ripple 0.6s ease-out;
}

/* Enhanced Hover States */
.link-btn {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.link-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
}

/* Text Glow Effect */
.link-btn:hover {
    text-shadow: 0 0 10px currentColor,
                 0 0 20px currentColor,
                 0 0 30px currentColor;
}

/* Social Media Icons Enhancement */
.link-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.link-btn:hover::after {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .link-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    
    .link-btn[href*="github"]:hover,
    .link-btn[href*="instagram"]:hover,
    .link-btn[href*="linkedin"]:hover {
        animation: glowing 2s ease-in-out infinite;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.contact-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 5%;
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2rem 5%;
        min-height: 85vh;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-pretitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 200px;
        text-align: center;
    }
    
    .hero-scroll {
        bottom: 1rem;
    }
    
    nav.scrolled {
        padding: 1rem 3%;
    }
    nav {
        padding: 1.5rem 3%;
    }
}

/* Page Loader Container */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Loader Container */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 300px;
    width: 100%;
    padding: 2rem;
}

/* Loader Logo */
.loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid var(--loader-subtle);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(1.2);
}

/* Loader Text */
.loader-text {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--loader-text);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    animation: titleGlow 2s ease-in-out infinite;
}

.loader-subtitle {
    font-size: 0.9rem;
    color: var(--loader-subtle);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Progress Bar */
.loader-progress {
    width: 100%;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--loader-accent), #8b3dff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progressShine 2s ease-in-out infinite;
}

.progress-percentage {
    font-size: 0.85rem;
    color: var(--loader-subtle);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Loading Dots */
.loader-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--loader-accent);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Logo Pulse Animation */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

/* Title Glow Animation */
@keyframes titleGlow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
}

/* Progress Shine Animation */
@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Dot Bounce Animation */
@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Loader Responsive */
@media (max-width: 480px) {
    .loader-container {
        padding: 1.5rem;
        max-width: 250px;
    }
    
    .loader-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .loader-title {
        font-size: 1.5rem;
    }
    
    .loader-subtitle {
        font-size: 0.8rem;
    }
    
    .progress-bar {
        height: 2px;
    }
    
    .loader-dots span {
        width: 6px;
        height: 6px;
    }
}

/* ===================================
   IMAGE MODAL STYLES
   =================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: #ff784f;
    background: rgba(255, 120, 79, 0.2);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* ===================================
   BODY LOADING STATE
   =================================== */

body.page-loading {
    overflow: hidden;
}

body.page-loading > *:not(#page-loader) {
    opacity: 0;
    visibility: hidden;
}

body.loaded > *:not(#page-loader) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* ===================================
   COMPREHENSIVE RESPONSIVE DESIGN
   =================================== */

/* Desktop Large (1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 6rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-card-wrap {
        width: 90vmin;
        height: 70vmin;
    }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-card-wrap {
        width: 80vmin;
        height: 60vmin;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    nav {
        width: calc(100% - 2rem);
        max-width: 1000px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-card-wrap {
        width: 75vmin;
        height: 55vmin;
        flex-direction: column;
    }
    
    .about-overlay {
        width: 100%;
        height: 40%;
    }
    
    .about-text-content {
        width: 100%;
        height: 60%;
        top: 40%;
    }
    
    .skills-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .marquee-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        animation: none;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    nav {
        width: calc(100% - 1rem);
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-brand .logo {
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 3%;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-card-wrap {
        width: 90vmin;
        height: 80vmin;
        flex-direction: column;
    }
    
    .about-overlay {
        width: 100%;
        height: 35%;
    }
    
    .about-text-content {
        width: 100%;
        height: 65%;
        top: 35%;
        padding: 2rem;
    }
    
    .marquee-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Large (480px - 599px) */
@media (max-width: 599px) and (min-width: 480px) {
    nav {
        width: calc(100% - 1rem);
        padding: 0.5rem 0.75rem;
    }
    
    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    .nav-brand .logo {
        font-size: 0.9rem;
    }
    
    .nav-icon {
        width: 2.2rem;
        height: 2.2rem;
    }
    
    .hero {
        padding: 1.5rem 3%;
        min-height: 75vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-card-wrap {
        width: 95vmin;
        height: 85vmin;
        flex-direction: column;
    }
    
    .about-overlay {
        width: 100%;
        height: 30%;
    }
    
    .about-text-content {
        width: 100%;
        height: 70%;
        top: 30%;
        padding: 1.5rem;
    }
    
    .about-text-content p {
        font-size: 0.9rem;
    }
    
    .marquee-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-card {
        padding: 1rem;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    nav {
        width: calc(100% - 0.5rem);
        padding: 0.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-brand .logo {
        font-size: 0.8rem;
    }
    
    .nav-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .hero {
        padding: 1rem 3%;
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        border-radius: 12px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-info p {
        font-size: 0.85rem;
    }
    
    .about-card-wrap {
        width: 98vmin;
        height: 90vmin;
        flex-direction: column;
        border-radius: 16px;
    }
    
    .about-overlay {
        width: 100%;
        height: 25%;
    }
    
    .about-text-content {
        width: 100%;
        height: 75%;
        top: 25%;
        padding: 1rem;
    }
    
    .about-text-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .marquee-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .skill-card {
        padding: 0.75rem;
        min-width: auto;
    }
    
    .skill-icon {
        width: 36px;
        height: 36px;
    }
}

/* Ultra Small Mobile (under 320px) */
@media (max-width: 319px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .about-card-wrap {
        width: 95vmin;
        height: 95vmin;
    }
    
    .marquee-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .hamburger-menu {
        width: 20px;
        height: 16px;
    }
    
    .hamburger-menu span {
        height: 1.5px;
    }
}

/* Hamburger Menu Responsive */
@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-inner {
        justify-content: space-between;
        padding: 1rem;
    }
    
    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 2rem;
        margin-top: 1rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.mobile-active li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .nav-links.mobile-active a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        color: var(--text-main);
        transition: all 0.3s ease;
        border-radius: 8px;
    }

    .nav-links.mobile-active a:hover {
        background: rgba(255, 120, 79, 0.1);
        color: #ff784f;
        transform: translateX(0);
    }

    .nav-links.mobile-active a::after {
        display: none;
    }

    /* Mobile Navigation Animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===================================
   HAMBURGER MENU STYLES
   =================================== */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Menu Active State */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Dropdown */
.nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.nav-links.mobile-active li {
    margin: 0.5rem 0;
    text-align: center;
}

.nav-links.mobile-active a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-links.mobile-active a:hover {
    color: #ff784f;
    transform: translateY(-2px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 2px solid rgba(255, 120, 79, 0.3);
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 120, 79, 0.1);
        border-color: rgba(255, 120, 79, 0.3);
        transform: translateX(0);
    }

    .nav-links a::after {
        display: none;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 90%;
        max-width: 300px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .hamburger-menu span {
        width: 20px;
        height: 2px;
    }
}
