/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f4f9ff;
    color: #16345c;
    overflow-x: hidden;
    transition: 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================
   BACKGROUND
========================= */

.bg-decoration {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: -1;
}

.decoration-1 {
    width: 300px;
    height: 300px;
    background: #cce5ff;
    top: -100px;
    left: -100px;
    opacity: .6;
}

.decoration-2 {
    width: 350px;
    height: 350px;
    background: #dceeff;
    right: -150px;
    bottom: -100px;
    opacity: .7;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    z-index: 1000;

    top: 18px;
    left: 50%;
    transform: translateX(-50%);

    width: min(930px, calc(100% - 32px));

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 11px 15px;

    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(150, 195, 240, .3);

    border-radius: 50px;

    box-shadow:
        0 10px 35px rgba(62, 133, 207, .12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;

    font-weight: 700;
    color: #12365f;
}

.logo span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    background: #dcebff;
    color: #3889e8;

    border-radius: 50%;

    font-size: 20px;
}

.navbar nav {
    display: flex;
    gap: 5px;
}

.navbar nav a {
    padding: 9px 15px;
    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    color: #4d6b8d;

    transition: .25s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
    background: #e5f1ff;
    color: #2679da;
}

.theme-btn {
    border: none;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #3e8bea;
    color: white;

    cursor: pointer;

    font-size: 16px;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 720px;

    width: min(1200px, 100%);

    margin: auto;

    padding: 140px 50px 70px;

    display: grid;
    grid-template-columns: 45% 55%;

    align-items: center;

    position: relative;
}


/* hero blue shape */

.hero::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 420px;

    left: -250px;
    top: 100px;

    background: linear-gradient(
        135deg,
        #d7ebff,
        #b9dbff
    );

    border-radius: 50%;
    z-index: -1;

    filter: blur(1px);
}


/* PHOTO */

.hero-image {
    position: relative;

    width: 440px;
    height: 520px;

    display: flex;
    align-items: end;
    justify-content: center;
}

.image-bg {
    position: absolute;

    width: 390px;
    height: 470px;

    bottom: 0;

    background: linear-gradient(
        160deg,
        #d5eaff,
        #a9d3ff
    );

    border-radius: 48% 48% 25px 25px;
}

.hero-image img {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    z-index: 2;

    filter: drop-shadow(
        0 20px 20px rgba(36, 101, 166, .15)
    );
}


/* floating hearts */

.floating-heart {
    position: absolute;

    color: #438fe9;

    font-size: 35px;

    z-index: 4;

    animation: floating 3s ease-in-out infinite;
}

.heart-1 {
    top: 100px;
    left: 35px;
}

.heart-2 {
    right: 25px;
    bottom: 130px;
    animation-delay: 1s;
}

@keyframes floating {

    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

}


/* HERO TEXT */

.hero-content {
    padding-left: 20px;
}

.hello {
    font-family: "Pacifico", cursive;
    font-size: 32px;

    color: #327ed5;

    margin-bottom: 5px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 76px);

    line-height: .98;

    letter-spacing: -3px;

    color: #12345b;
}

.hero h1 span {
    color: #3989e8;
}

.role {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-top: 22px;

    padding: 10px 18px;

    border-radius: 30px;

    background: white;

    border: 1px solid #d8e9fb;

    color: #245d96;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 7px 25px rgba(54, 126, 203, .08);
}

.hero-description {
    max-width: 580px;

    margin-top: 20px;

    color: #65809f;

    font-size: 16px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 14px 22px;

    border-radius: 30px;

    font-size: 14px;
    font-weight: 700;

    transition: .25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.primary {
    background: #3989e8;
    color: white;

    box-shadow: 0 10px 25px rgba(57, 137, 232, .25);
}

.btn.secondary {
    background: white;
    color: #245d96;

    border: 1px solid #d8e9fb;
}


/* =========================
   GENERAL SECTION
========================= */

.section {
    width: min(1080px, calc(100% - 40px));

    margin: 0 auto 80px;
}

.section-heading {
    margin-bottom: 25px;
}

.section-tag {
    display: inline-flex;

    padding: 7px 14px;

    border-radius: 30px;

    background: #e2f0ff;
    color: #3284df;

    font-size: 13px;
    font-weight: 700;
}

.section h2 {
    margin-top: 10px;

    font-size: clamp(32px, 4vw, 44px);

    letter-spacing: -1.5px;

    color: #153b65;
}

.section-heading p,
.projects-header p,
.contact-content p {
    margin-top: 6px;
    color: #718aa5;
}


/* =========================
   ABOUT
========================= */

.about {
    display: grid;

    grid-template-columns: 230px 1fr 280px;

    gap: 35px;

    padding: 28px;

    background: rgba(255, 255, 255, .82);

    border: 1px solid #e2effb;

    border-radius: 30px;

    box-shadow:
        0 20px 60px rgba(67, 130, 191, .08);
}

.about-image {
    position: relative;

    height: 270px;

    background: #dceeff;

    border-radius: 24px;

    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.image-label {
    position: absolute;

    bottom: 12px;
    left: 50%;

    transform: translateX(-50%);

    padding: 9px 18px;

    border-radius: 30px;

    background: #3989e8;
    color: white;

    font-size: 12px;
    font-weight: 700;
}

.about-content p {
    margin-top: 14px;

    color: #647f9e;

    line-height: 1.7;
    font-size: 14px;
}

.about-info {
    padding: 20px;

    background: #eaf4ff;

    border-radius: 23px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 18px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: white;
    color: #3786df;

    font-size: 18px;
}

.info-item small {
    display: block;

    color: #7891aa;

    font-size: 11px;
}

.info-item strong {
    display: block;

    margin-top: 2px;

    color: #244b72;

    font-size: 12px;
}


/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 13px;
}

.skill-card {
    padding: 20px 10px;

    text-align: center;

    background: white;

    border: 1px solid #e0edf9;

    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(59, 126, 188, .06);

    transition: .3s ease;
}

.skill-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(55, 135, 224, .13);
}

.skill-icon {
    width: 48px;
    height: 48px;

    margin: auto;

    display: grid;
    place-items: center;

    border-radius: 14px;

    font-size: 12px;
    font-weight: 800;
}

.html {
    background: #ffe4d7;
    color: #e96528;
}

.css {
    background: #dff0ff;
    color: #2275c7;
}

.js {
    background: #fff6c9;
    color: #b89b00;
}

.php {
    background: #e6e3ff;
    color: #6662ae;
}

.mysql {
    background: #dff8ff;
    color: #147c9c;
}

.python {
    background: #fff2c9;
    color: #3873a6;
}

.git {
    background: #ffe2dc;
    color: #e64f35;
}

.figma {
    background: #f0e4ff;
    color: #8c4ed1;
}

.vscode {
    background: #dff4ff;
    color: #2178ba;
}

.linux {
    background: #eeeeee;
    color: #333;
}

.skill-card h3 {
    margin-top: 10px;

    font-size: 13px;

    color: #264d75;
}

.skill-card span {
    display: block;

    margin-top: 4px;

    color: #8aa0b7;

    font-size: 10px;
}


/* =========================
   PROJECTS
========================= */

.projects {
    padding: 30px;

    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #e7f4ff,
        #d7ecff
    );

    border: 1px solid #cce5fb;
}

.projects-header {
    margin-bottom: 25px;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* =========================
   PROJECT CARD
========================= */

.project-card {
    overflow: hidden;

    border-radius: 22px;

    background: rgba(255, 255, 255, .82);

    border: 1px solid #d7e9f9;

    position: relative;

    transition: .3s ease;

    box-shadow:
        0 8px 25px rgba(59, 126, 188, .06);
}

.project-card:hover {
    transform: translateY(-7px);

    background: white;

    box-shadow:
        0 18px 40px rgba(55, 135, 224, .13);
}


/* =========================
   PROJECT IMAGE
========================= */

.project-image {
    position: relative;

    width: 100%;
    height: 200px;

    overflow: hidden;

    background: #dceeff;
}

.project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}


/* NUMBER */

.project-number {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .9);

    color: #3989e8;

    font-size: 11px;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(50, 120, 190, .1);
}


/* =========================
   PROJECT CONTENT
========================= */

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;

    margin-bottom: 8px;

    color: #3989e8;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;
}

.project-content h3 {
    margin: 0;

    font-size: 19px;

    color: #264d75;
}

.project-content p {
    margin-top: 9px;

    color: #7894b0;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================
   TECHNOLOGY TAGS
========================= */

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 15px;
}

.project-tech span {
    padding: 6px 9px;

    border-radius: 8px;

    background: #eaf4ff;

    color: #3989e8;

    font-size: 9px;

    font-weight: 700;
}


/* =========================
   PROJECT LINK
========================= */

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 18px;

    color: #3989e8;

    font-size: 12px;

    font-weight: 700;

    transition: .25s ease;
}

.project-link:hover {
    gap: 11px;

    color: #216fc5;
}


/* =========================
   RESPONSIVE PROJECTS
========================= */

@media (max-width: 900px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 210px;
    }

}

/* =========================
   CONTACT
========================= */

.contact {
    padding: 30px;

    background: white;

    border: 1px solid #e0edf9;

    border-radius: 30px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.social-grid {
    display: grid;

    grid-template-columns: repeat(4, 120px);

    gap: 10px;
}

.social-card {
    min-height: 110px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #f5faff;

    border: 1px solid #e0edf9;

    transition: .3s ease;
}

.social-card:hover {
    transform: translateY(-6px);

    background: #eaf5ff;
}

.social-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: white;

    color: #3989e8;

    font-size: 17px;
    font-weight: 800;

    box-shadow: 0 5px 15px rgba(50, 120, 190, .08);
}

.social-card strong {
    margin-top: 8px;

    font-size: 11px;

    color: #345b81;
}

.social-card span {
    margin-top: 3px;

    color: #8ca3b9;

    font-size: 9px;
}


/* =========================
   FOOTER
========================= */

footer {
    width: min(1080px, calc(100% - 40px));

    margin: 0 auto 30px;

    text-align: center;

    position: relative;
}

.footer-line {
    width: 110px;
    height: 2px;

    margin: auto auto 15px;

    background: #a9cfee;
}

footer p {
    color: #829bb4;

    font-size: 11px;
}

footer strong {
    color: #4d7eae;
}

.top-btn {
    position: absolute;

    right: 0;
    bottom: -5px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: #3989e8;

    color: white;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(52, 130, 220, .25);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .navbar nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 120px;
    }

    .hero-image {
        width: 320px;
        height: 380px;

        margin: auto;
    }

    .image-bg {
        width: 290px;
        height: 350px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .role {
        margin-left: auto;
        margin-right: auto;
    }

    .about {
        grid-template-columns: 200px 1fr;
    }

    .about-info {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 600px) {

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-image {
        width: 280px;
        height: 340px;
    }

    .image-bg {
        width: 250px;
        height: 315px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 14px;
    }

    .about {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .about-image {
        width: 180px;
        margin: auto;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects {
        padding: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        width: 100%;

        grid-template-columns: repeat(2, 1fr);
    }

    .social-card {
        width: 100%;
    }

    .top-btn {
        position: static;

        margin-top: 20px;
    }

}
