/* ==========================
   RESET
========================== */

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

:root {
    --background: #080d18;
    --card: #101a2b;
    --blue: #54a8ff;
    --cyan: #64e1d2;
    --white: #edf4ff;
    --gray: #9aabc4;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
}


/* ==========================
   NAVBAR
========================== */

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;

    background: rgba(8, 13, 24, 0.95);

    border-bottom: 1px solid #243044;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(5, 9, 18, 0.98);
    box-shadow: 0 5px 20px #0005;
}

.navbar {
    max-width: 1500px;
    margin: auto;
    padding: 20px 7.5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.logo span {
    color: var(--blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: #b5c3d8;
    font-size: 17px;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
}


/* ==========================
   HOME SECTION
========================== */

.hero {
    min-height: 100vh;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 60px;

    padding: 130px 9.8% 75px;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(40, 120, 220, 0.20),
            transparent 35%
        ),
        var(--background);
}


/* HOME TEXT */

.hero-content {
    flex: 1;
    max-width: 720px;

    animation: fadeIn 1.2s ease;
}

.hero-content h4 {
    color: var(--cyan);
    font-size: 18px;
    letter-spacing: 5px;
    margin-bottom: 35px;
}

.hero-content h1 {
    font-size: clamp(48px, 5vw, 82px);
    line-height: 1.1;
    margin-bottom: 35px;

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--cyan)
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-content h2 {
    font-size: 29px;
    margin-bottom: 25px;
}

.hero-content p {
    color: var(--gray);
    font-size: 19px;
    max-width: 650px;
    margin-bottom: 35px;
}


/* BUTTON */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;

    background: linear-gradient(
        90deg,
        #3188e8,
        #39c9c0
    );

    color: #08111d;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px #3188e855;
}

.btn-outline {
    display: inline-block;
    padding: 14px 30px;

    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 10px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--cyan);
    color: #08111d;
}


/* ==========================
   FOTO PROFIL
========================== */

.hero-image {
    flex: 0 0 38%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.image-frame {
    width: 350px;
    height: 430px;

    padding: 8px;

    border-radius: 25px;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--cyan)
    );

    box-shadow: 0 0 45px rgba(84, 168, 255, 0.3);

    transform: rotate(3deg);

    transition: 0.4s;

    position: relative;
    z-index: 2;
}

.image-frame:hover {
    transform: rotate(0deg) scale(1.04);
}

.image-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 35%;

    display: block;

    border-radius: 19px;
}

.image-decoration {
    position: absolute;

    width: 350px;
    height: 430px;

    border: 2px solid var(--cyan);
    border-radius: 25px;

    transform: rotate(-5deg);
    opacity: 0.4;
}


/* ==========================
   SECTION TITLE
========================== */

section:not(.hero) {
    padding: 100px 10%;
    text-align: center;
}

.section-title span {
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: bold;
}

.section-title h2 {
    font-size: 36px;
    color: var(--blue);
    margin: 10px 0 35px;
}


/* ==========================
   ABOUT
========================== */

.about {
    background: var(--card);
}

.about-content {
    max-width: 800px;
    margin: auto;
}

.about-content p {
    color: #b5c3d8;
    font-size: 17px;
}

.skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.skill {
    padding: 10px 20px;

    color: #c8e4ff;
    background: #54a8ff12;

    border: 1px solid #54a8ff55;
    border-radius: 30px;
}


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

.education-container {
    max-width: 800px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.education-card {
    padding: 30px;

    background: var(--card);
    border: 1px solid #243650;
    border-radius: 15px;

    transition: 0.3s;
}

.education-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
}

.education-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.education-card h3 {
    color: var(--cyan);
    margin-bottom: 10px;
}

.education-card h4 {
    margin-bottom: 10px;
}

.education-card p {
    color: var(--gray);
}

.education-card span {
    display: block;
    color: var(--blue);
    margin-top: 15px;
}


/* ==========================
   PROJECTS
========================== */

.projects {
    background: var(--card);
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    text-align: left;

    padding: 30px;

    background: #17253a;
    border: 1px solid #263a55;
    border-radius: 15px;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
}

.project-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

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

.project-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.project-card span {
    font-size: 13px;
    color: var(--blue);
}


/* ==========================
   CONTACT
========================== */

.contact p {
    color: var(--gray);
    max-width: 650px;
    margin: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}


/* ==========================
   FOOTER
========================== */

footer {
    padding: 25px;
    text-align: center;

    background: #050912;
    color: #8496af;

    border-top: 1px solid #1e2b40;
}


/* ==========================
   ANIMATION
========================== */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================
   RESPONSIVE MOBILE
========================== */

@media (max-width: 850px) {

    .hero {
        gap: 30px;
        padding-left: 7%;
        padding-right: 7%;
    }

    .image-frame,
    .image-decoration {
        width: 270px;
        height: 340px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .navbar {
        padding: 18px 7%;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        color: white;
        border: 1px solid #34445d;
        border-radius: 8px;
        padding: 7px 12px;
        font-size: 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
        gap: 15px;
    }

    .nav-menu.open {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 130px 7% 70px;
    }

    .hero-content h4 {
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 43px;
        margin-bottom: 20px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-frame,
    .image-decoration {
        width: 230px;
        height: 285px;
    }

    section:not(.hero) {
        padding: 70px 7%;
    }

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

    .section-title h2 {
        font-size: 29px;
    }

}
