
@import url(
    'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap'
);


/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    scroll-margin-top: 90px;
}


/* =========================================================
   NAVBAR
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-bottom: 1px solid #eeeeee;

    z-index: 9999;
}

.navbar {
    width: min(1180px, 92%);
    height: 78px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Playfair Display", serif;

    font-size: 30px;
    font-weight: 700;

    color: #172033;
}

.logo span,
.footer-logo span {
    color: #7657e8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;

    font-size: 14px;
    font-weight: 600;

    color: #4b5563;

    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #7657e8;

    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #7657e8;
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    padding: 150px 0 100px;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(118, 87, 232, 0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8f7ff 100%
        );
}

.hero-container {
    width: min(1180px, 92%);

    margin: auto;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 80px;
}


/* HERO TEXT */

.hero-subtitle {
    color: #7657e8;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 4px;

    margin-bottom: 12px;
}

.hero h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 6vw, 76px);

    line-height: 1.1;

    color: #172033;

    margin-bottom: 15px;
}

.hero h1 span {
    color: #7657e8;
}

.hero h2 {
    font-size: clamp(20px, 3vw, 27px);

    line-height: 1.4;

    color: #343d52;

    margin-bottom: 22px;
}

.hero-description {
    max-width: 620px;

    color: #697386;

    font-size: 16px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 32px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 25px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.primary-btn {
    color: #ffffff;

    background: #7657e8;

    box-shadow: 0 12px 30px rgba(118, 87, 232, 0.25);
}

.primary-btn:hover {
    background: #6043d2;

    transform: translateY(-3px);

    box-shadow: 0 18px 35px rgba(118, 87, 232, 0.32);
}

.secondary-btn {
    color: #7657e8;

    border: 1.5px solid #7657e8;

    background: transparent;
}

.secondary-btn:hover {
    color: white;
    background: #7657e8;

    transform: translateY(-3px);
}


/* SOCIAL */

.hero-social {
    display: flex;

    gap: 25px;

    margin-top: 35px;
}

.hero-social a {
    color: #687184;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s;
}

.hero-social a:hover {
    color: #7657e8;
}


/* =========================================================
   PROFILE IMAGE
========================================================= */

.hero-image-container {
    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/*
    Decorative large circle behind image
*/

.image-decoration {
    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    background: #7657e8;

    opacity: 0.08;

    transform: translate(20px, 20px);
}


/*
    Outer decorative border
*/

.profile-image-wrapper {
    position: relative;

    width: 390px;
    height: 390px;

    padding: 10px;

    border-radius: 50%;

    /*
        Gradient border
    */

    background: linear-gradient(
        135deg,
        #7657e8,
        #c4b7ff,
        #7657e8
    );

    box-shadow:
        0 25px 70px rgba(118, 87, 232, 0.25),
        0 0 0 12px rgba(118, 87, 232, 0.05);

    z-index: 2;
}


/*
    Actual photo

    object-fit: cover keeps the image
    perfectly inside the circle.
*/

.profile-image {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    object-position: center;

    border: 5px solid #ffffff;

    background: #eeeeee;
}


/*
    Small floating information card
*/

.floating-card {
    position: absolute;

    right: 0;
    bottom: 45px;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 18px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    box-shadow: 0 15px 45px rgba(25, 25, 50, 0.12);

    animation: floating 3s ease-in-out infinite;
}

.floating-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f0edff;

    font-size: 20px;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 13px;
}

.floating-card small {
    color: #7a8190;

    font-size: 11px;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* =========================================================
   COMMON SECTION
========================================================= */

.section {
    width: min(1180px, 92%);

    margin: auto;

    padding: 110px 0;
}

.gray-section {
    width: 100%;

    max-width: none;

    padding-left: 4%;
    padding-right: 4%;

    background: #f8f8fc;
}

.section-heading {
    text-align: center;

    margin-bottom: 65px;
}

.section-heading p {
    color: #7657e8;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;

    font-size: 44px;

    line-height: 1.2;

    margin-top: 8px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-container {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

    align-items: center;
}


/* About Image */

.about-image-box {
    position: relative;

    width: 100%;

    max-width: 420px;

    margin: auto;

    padding: 10px;

    border-radius: 25px;

    background: linear-gradient(
        135deg,
        #7657e8,
        #d8d0ff
    );

    box-shadow:
        0 25px 60px rgba(118, 87, 232, 0.18);
}

.about-image-box::before {
    content: "";

    position: absolute;

    inset: -12px;

    border: 1px solid #7657e8;

    border-radius: 30px;

    opacity: 0.2;

    z-index: -1;
}

.about-image-box img {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    object-position: center;

    border-radius: 18px;

    border: 4px solid #ffffff;
}


/* About Content */

.about-label {
    display: inline-block;

    color: #7657e8;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.about-content h3 {
    font-family: "Playfair Display", serif;

    font-size: 39px;

    line-height: 1.25;

    margin-bottom: 22px;
}

.about-content > p {
    color: #6d7585;

    margin-bottom: 16px;

    font-size: 15px;
}


/* About Details */

.about-details {
    margin-top: 30px;

    display: grid;

    gap: 15px;
}

.detail-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.detail-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f0edff;

    font-size: 19px;
}

.detail-item small,
.detail-item strong {
    display: block;
}

.detail-item small {
    color: #858b98;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.detail-item strong {
    color: #263044;

    font-size: 14px;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-container {
    width: min(1180px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.skill-card {
    padding: 35px 28px;

    background: #ffffff;

    border: 1px solid #ececf2;

    border-radius: 16px;

    text-align: center;

    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);

    border-color: #d5ccff;

    box-shadow:
        0 20px 50px rgba(40, 30, 80, 0.08);
}

.skill-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-weight: 800;

    font-size: 16px;
}

.html-icon {
    background: #fff0eb;
    color: #e44d26;
}

.css-icon {
    background: #edf4ff;
    color: #1572b6;
}

.js-icon {
    background: #fffbe6;
    color: #b39b00;
}

.c-icon {
    background: #edf1ff;
    color: #3949ab;
}

.cpp-icon {
    background: #f0edff;
    color: #7657e8;
}

.db-icon {
    background: #eaf8f2;
    color: #18865b;
}

.skill-card h3 {
    font-size: 18px;

    margin-bottom: 10px;
}

.skill-card p {
    color: #7a8190;

    font-size: 13px;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-container {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 50px rgba(30, 30, 60, 0.1);
}

.project-image {
    height: 210px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 65px;
}

.project-one {
    background: linear-gradient(
        135deg,
        #edeaff,
        #dcd5ff
    );
}

.project-two {
    background: linear-gradient(
        135deg,
        #e9f4ff,
        #d6eaff
    );
}

.project-three {
    background: linear-gradient(
        135deg,
        #fff2df,
        #ffe3b5
    );
}

.project-content {
    padding: 27px;
}

.project-number {
    color: #7657e8;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}

.project-content h3 {
    font-size: 20px;

    margin: 7px 0 10px;
}

.project-content p {
    color: #7a8190;

    font-size: 13px;

    margin-bottom: 18px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;
}

.project-tags span {
    padding: 5px 10px;

    color: #7657e8;

    background: #f1efff;

    border-radius: 5px;

    font-size: 10px;

    font-weight: 700;
}

.project-link {
    color: #7657e8;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   EDUCATION
========================================================= */

.education-container {
    position: relative;

    width: min(850px, 100%);

    margin: auto;
}

.education-line {
    position: absolute;

    left: 31px;
    top: 35px;
    bottom: 35px;

    width: 2px;

    background: #dcd7f8;
}

.education-card {
    position: relative;

    display: flex;

    gap: 25px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(30, 30, 60, 0.05);
}

.education-icon {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #7657e8;

    color: white;

    font-size: 25px;

    z-index: 2;
}

.education-content span {
    color: #7657e8;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}

.education-content h3 {
    font-size: 22px;

    margin: 7px 0 10px;
}

.education-content p {
    color: #747c8c;

    font-size: 14px;
}

.education-content small {
    display: block;

    color: #999;

    margin-top: 10px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-container {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

    align-items: start;
}

.contact-content h3 {
    font-family: "Playfair Display", serif;

    font-size: 40px;

    margin-bottom: 15px;
}

.contact-content > p {
    color: #737b8b;

    font-size: 15px;

    max-width: 480px;
}

.contact-details {
    margin-top: 30px;

    display: grid;

    gap: 18px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.contact-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f0edff;

    color: #7657e8;

    font-size: 19px;
}

.contact-item small,
.contact-item strong {
    display: block;
}

.contact-item small {
    color: #8a909c;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.contact-item strong {
    font-size: 14px;
}


/* CONTACT FORM */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 15px;

    padding: 35px;

    background: #f8f8fc;

    border: 1px solid #eeeeee;

    border-radius: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid #dedee7;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 13px;

    transition: 0.3s;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #7657e8;

    box-shadow:
        0 0 0 3px rgba(118, 87, 232, 0.08);
}

.contact-form button {
    border: none;

    cursor: pointer;

    width: fit-content;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 55px 20px;

    background: #151a2a;

    color: white;

    text-align: center;
}

.footer-container {
    width: min(1180px, 92%);

    margin: auto;
}

.footer-logo {
    font-family: "Playfair Display", serif;

    font-size: 30px;

    font-weight: 700;
}

.footer-container > p {
    color: #9da3b2;

    font-size: 13px;

    margin-top: 5px;
}

.footer-social {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-top: 22px;
}

.footer-social a {
    color: #aeb4c2;

    font-size: 13px;

    transition: 0.3s;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-line {
    width: 100%;

    height: 1px;

    background: #2d3344;

    margin: 30px 0 20px;
}

.footer-container > small {
    color: #737b8c;

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .nav-links {
        gap: 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 60px;
    }

    .hero-description {
        margin: auto;
    }

    .hero-buttons,
    .hero-social {
        justify-content: center;
    }

    .hero-image-container {
        min-height: 430px;

        order: -1;
    }

    .profile-image-wrapper {
        width: 330px;
        height: 330px;
    }

    .image-decoration {
        width: 365px;
        height: 365px;
    }

    .floating-card {
        right: 10%;
    }

    .about-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-image-box {
        max-width: 360px;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .navbar {
        height: auto;

        padding: 18px 0;

        flex-direction: column;

        gap: 15px;
    }

    .nav-links {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px 18px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding-top: 170px;
    }

    .hero-container {
        width: 90%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: center;
    }

    .btn {
        width: 100%;

        max-width: 260px;
    }

    .hero-image-container {
        min-height: 350px;
    }

    .profile-image-wrapper {
        width: 270px;
        height: 270px;

        padding: 8px;
    }

    .profile-image {
        border-width: 4px;
    }

    .image-decoration {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        right: 0;

        bottom: 5px;

        padding: 10px 12px;
    }

    .floating-icon {
        width: 35px;
        height: 35px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .about-content h3,
    .contact-content h3 {
        font-size: 32px;
    }

    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;

        padding: 25px;
    }

    .education-line {
        display: none;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-social {
        gap: 15px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 40px;
    }

    .profile-image-wrapper {
        width: 235px;
        height: 235px;
    }

    .image-decoration {
        width: 260px;
        height: 260px;
    }

    .floating-card {
        transform: scale(0.85);
    }
}
