* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 200vh;
    background: linear-gradient(135deg,
            #0f172a,
            #1e293b,
            #334155);
    color: white;
    overflow-x: hidden;
}

/* Glass Navbar */
.glass-navbar {
    margin: 15px auto;
    width: 95%;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

.glass-navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin-left: 15px;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
}

/* Garis animasi bawah menu */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 0%;
    height: 2px;

    background: #38bdf8;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);

    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-title span {
    color: #38bdf8;
}

.hero-subtitle {
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 550px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* BUTTON */
.btn-primary-custom {
    background: #38bdf8;
    color: white;
    border-radius: 50px;
    padding: 12px 28px;
    text-decoration: none;
    margin-right: 10px;
    transition: .3s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
}

.btn-outline-custom {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    padding: 12px 28px;
    text-decoration: none;
    transition: .3s;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* FOTO PROFIL */
.profile-wrapper {
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 400px;
    height: 400px;
    object-fit: cover;

    border-radius: 50%;

    border: 5px solid rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 50px rgba(56, 189, 248, 0.3);
}

/* Scroll Reveal Effect */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mouse Move Effect
.profile-image {
    transition: transform .2s ease;
} */

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);

    animation: ripple 0.6s linear;

    background: rgba(255, 255, 255, 0.4);
}

@keyframes ripple {

    to {
        transform: scale(4);
        opacity: 0;
    }

}


#loader {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #0f172a;
    z-index: 9999;

    transition: opacity .8s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    color: white;
    font-size: 3rem;
    letter-spacing: 8px;
    margin-bottom: 30px;
}

.loader-bar {
    width: 280px;
    height: 8px;

    border-radius: 20px;

    overflow: hidden;

    background: rgba(255, 255, 255, .1);
}

.loader-progress {
    height: 100%;
    width: 0%;

    background: #38bdf8;

    animation: loading 2.5s ease forwards;
}

.loader-text {
    margin-top: 15px;
    color: #94a3b8;
    letter-spacing: 2px;
}

@keyframes loading {

    from {
        width: 0%;
    }

    to {
        width: 100%;
    }

}


/* ABOUT SECTION */

.about-section {
    padding: 120px 0;
}

.section-title span {
    color: #38bdf8;
    font-weight: 600;
    letter-spacing: 2px;
}

.section-title h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 70px;
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
}

.about-image {
    width: 350px;
    height: 350px;

    object-fit: cover;

    border-radius: 25px;

    border: 1px solid rgba(255, 255, 255, .1);

    box-shadow:
        0 0 40px rgba(56, 189, 248, .15);

    transition: .4s;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-heading {
    color: white;
    font-size: 2rem;
    margin-bottom: 25px;
}

.about-text {
    color: #cbd5e1;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-skills {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.skill-item {

    padding: 15px;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, .05);

    border:
        1px solid rgba(255, 255, 255, .08);

    color: white;

    backdrop-filter: blur(10px);

    transition: .3s;
}

.skill-item:hover {

    transform: translateY(-5px);

    background:
        rgba(56, 189, 248, .1);
}

.about-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-card {
    flex: 1;
    min-width: 120px;

    padding: 20px;

    text-align: center;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #38bdf8;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: #cbd5e1;
    margin: 0;
}

.progress-container {
    width: 100%;
    height: 6px;

    margin-top: 15px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    overflow: hidden;

    opacity: 0;

    transition: .3s;
}

.progress-fill {
    width: 0%;
    height: 100%;

    background: #38bdf8;

    border-radius: 20px;

    transition: width 1s ease;
}

.progress-text {
    display: block;

    margin-top: 10px;

    color: #38bdf8;

    opacity: 0;

    transition: .3s;
}

.stat-card:hover .progress-container,
.stat-card:hover .progress-text {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 0 25px rgba(56, 189, 248, .25);

    border-color:
        rgba(56, 189, 248, .3);
}


/* PROJECT SECTION */

.projects-section {
    padding: 120px 0;
}

.project-card {

    height: 100%;

    border-radius: 25px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);

    transition: .4s;
}

.project-card:hover {

    transform: translateY(-10px);

    box-shadow:
        0 0 30px rgba(56, 189, 248, .2);
}

.project-image {

    width: 100%;
    height: 220px;

    object-fit: cover;

    transition: .5s;
}

.project-card:hover .project-image {

    transform: scale(1.05);
}

.project-content {

    padding: 25px;
}

.project-content h3 {

    color: white;
    margin-bottom: 15px;
}

.project-content p {

    color: #cbd5e1;
    line-height: 1.8;
}

.project-tech {

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}

.project-tech span {

    padding: 6px 14px;

    border-radius: 30px;

    background:
        rgba(56, 189, 248, .15);

    color: #38bdf8;

    font-size: .85rem;
}

.project-buttons {

    display: flex;
    gap: 12px;

    margin-top: 25px;
}

.project-btn {

    padding: 10px 20px;

    border-radius: 50px;

    background: #38bdf8;

    color: white;

    text-decoration: none;
}

.project-btn-outline {

    padding: 10px 20px;

    border-radius: 50px;

    border: 1px solid rgba(255, 255, 255, .15);

    color: white;

    text-decoration: none;
}

/* CV SECTION */

.cv-section {
    padding: 120px 0;
}

.cv-container {

    overflow: hidden;

    border-radius: 25px;

    border: 1px solid rgba(255, 255, 255, .1);

    backdrop-filter: blur(10px);

    background: rgba(255, 255, 255, .05);

    padding: 20px;
}


/* Skills Section */
.skills-section {
    padding: 120px 0;
}

.skill-card {

    padding: 30px;

    border-radius: 25px;

    background: rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .08);

    backdrop-filter: blur(10px);

    height: 100%;
}

.skill-card h3 {

    color: white;

    margin-bottom: 30px;
}

.skill-item {

    margin-bottom: 25px;
}

.skill-info {

    display: flex;

    justify-content: space-between;

    color: white;

    margin-bottom: 8px;
}

.skill-bar {

    height: 10px;

    border-radius: 20px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, .08);
}

.skill-progress {
    width: 0;
    height: 100%;

    border-radius: 20px;

    background: linear-gradient(90deg,
            #38bdf8,
            #0ea5e9);
    transition: width 2s ease-in-out;
}

.skill-progress {
    position: relative;
    overflow: hidden;
}

.skill-progress::after {

    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 50px;
    height: 100%;

    background:
        rgba(255, 255, 255, .4);

    filter: blur(10px);

    animation:
        shine 2s infinite;
}

@keyframes shine {

    from {
        left: -100%;
    }

    to {
        left: 120%;
    }

}

/* Contact Section */

.contact-section {
    padding: 120px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {

    display: flex;
    align-items: center;
    gap: 20px;

    padding: 20px;

    border-radius: 20px;

    background: rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .08);

    backdrop-filter: blur(10px);

    transition: .4s;
}

.contact-card:hover {

    transform: translateX(10px);

    border-color: rgba(56, 189, 248, .4);

    box-shadow:
        0 0 20px rgba(56, 189, 248, .15);
}

.contact-card i {

    font-size: 1.8rem;

    color: #38bdf8;
}

.contact-card h5 {

    color: white;
    margin: 0;
}

.contact-card p {

    margin: 0;
    color: #cbd5e1;
}

.contact-form {

    display: flex;
    flex-direction: column;

    gap: 20px;

    padding: 30px;

    border-radius: 25px;

    background: rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .08);

    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {

    padding: 15px;

    border: none;

    outline: none;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, .08);

    color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {

    color: #94a3b8;
}

.contact-btn {

    border: none;

    padding: 15px;

    border-radius: 50px;

    background: #38bdf8;

    color: white;

    font-weight: 600;

    transition: .3s;
}

.contact-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 0 20px rgba(56, 189, 248, .4);
}

/* =========================
   FOOTER
========================= */

.footer {

    padding: 80px 0 40px;

    background:
        rgba(255, 255, 255, .03);

    border-top:
        1px solid rgba(255, 255, 255, .08);
}

.footer-content {

    text-align: center;
}

.footer-logo {

    color: white;

    font-size: 2rem;

    margin-bottom: 15px;
}

.footer-text {

    color: #94a3b8;

    max-width: 600px;

    margin: auto;
}

.footer-social {

    margin-top: 30px;

    display: flex;

    justify-content: center;

    gap: 20px;
}

.footer-social a {

    width: 50px;
    height: 50px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    color: white;

    background:
        rgba(255, 255, 255, .05);

    border:
        1px solid rgba(255, 255, 255, .08);

    transition: .4s;
}

.footer-social a:hover {

    transform: translateY(-5px);

    color: #38bdf8;

    border-color: #38bdf8;

    box-shadow:
        0 0 20px rgba(56, 189, 248, .25);
}

.footer-divider {

    width: 100%;
    height: 1px;

    margin: 35px 0;

    background:
        rgba(255, 255, 255, .08);
}

.copyright {

    color: #64748b;

    margin: 0;
}

/* =========================
   BACK TO TOP
========================= */

#backToTop{

    position:fixed;

    right:30px;
    bottom:30px;

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    background:#38bdf8;

    color:white;

    font-size:1.2rem;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:.4s;

    z-index:999;
}

#backToTop.show{

    opacity:1;
    visibility:visible;
}

#backToTop:hover{

    transform:translateY(-5px);

    box-shadow:
    0 0 20px rgba(56,189,248,.5);
}