
/* GENERAL SETTINGS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #090b14;
    color: white;
}

html {
    scroll-padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 90px 8%;
}

span {
    color: #a18aff;
}


/* NAVBAR */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0d1020;
    border-bottom: 1px solid #25283b;
}

.navbar {
    min-height: 75px;
    padding: 15px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 27px;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: #d0d0dd;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #a18aff;
}

.nav-links .contact-btn {
    padding: 10px 18px;
    border: 1px solid #a18aff;
    border-radius: 25px;
}

.mobile-menu {
    display: none;
}


/* HOME SECTION */

.home {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    background:
        radial-gradient(circle at 80% 40%,
        rgba(126, 98, 230, 0.15),
        transparent 35%);
}

.home-content {
    max-width: 650px;
}

.welcome {
    color: #a18aff;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 20px;
}

.home-content h1 {
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.3;
    margin-bottom: 15px;
}

.home-content h1 span {
    background: linear-gradient(90deg, #a18aff, #5bd9c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-content h3 {
    font-size: 23px;
    margin-bottom: 18px;
    color: #5bd9c7;
}

.intro {
    color: #b2b5c7;
    line-height: 1.9;
    max-width: 570px;
    font-size: 15px;
}

.home-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 6px;
    background: linear-gradient(100deg, #9c83ff, #5bd9c7);
    color: #080b13;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px #9c83ff40;
}

.btn.outline {
    background: transparent;
    border: 1px solid #a18aff;
    color: white;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    color: #5bd9c7;
    font-size: 14px;
}

.social-links a:hover {
    color: #a18aff;
}


/* PROFILE IMAGE */

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}

.image-border {
    width: 330px;
    height: 420px;
    padding: 9px;
    border-radius: 180px 180px 25px 25px;
    background: linear-gradient(140deg, #a18aff, #5bd9c7);
    box-shadow: 0 0 50px #a18aff35;
    transform: rotate(2deg);
    transition: 0.4s;
}

.image-border:hover {
    transform: rotate(0deg) scale(1.03);
}

.image-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 175px 175px 20px 20px;
}


/* COMMON SECTION HEADING */

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title p {
    color: #a18aff;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 38px;
}

.section-title h2 span {
    color: #5bd9c7;
}


/* ABOUT SECTION */

.about {
    background: #0e1220;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 55px;
}

.about-image {
    flex: 0 0 300px;
    height: 370px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 15px;
    border: 2px solid #a18aff;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.about-text p {
    color: #b4b7c8;
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 14px;
}

.personal-info {
    margin-top: 22px;
    padding: 18px;
    background: #171c2d;
    border-left: 3px solid #a18aff;
    border-radius: 5px;
}

.personal-info p {
    margin-bottom: 9px;
}


/* SKILLS SECTION */

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    text-align: center;
    padding: 30px 20px;
    background: #131827;
    border: 1px solid #292e43;
    border-radius: 12px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #a18aff;
    box-shadow: 0 10px 30px #a18aff15;
}

.skill-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #282444;
    color: #a18aff;
    font-size: 22px;
    font-weight: 700;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.skill-card p {
    color: #aeb2c5;
    font-size: 13px;
}


/* PROJECTS SECTION */

.projects {
    background: #0e1220;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    padding: 30px;
    background: #171c2d;
    border: 1px solid #292e43;
    border-radius: 12px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #5bd9c7;
}

.project-number {
    color: #5bd9c7;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.project-card p {
    color: #b3b6c8;
    line-height: 1.8;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.tags span {
    background: #292444;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #c5baff;
}


/* EDUCATION SECTION */

.education-card {
    max-width: 750px;
    margin: auto;
    padding: 35px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #171c2d;
    border: 1px solid #35304f;
    border-radius: 12px;
    transition: 0.3s;
}

.education-card:hover {
    border-color: #a18aff;
    transform: translateY(-5px);
}

.education-icon {
    font-size: 35px;
    color: #5bd9c7;
}

.education-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.education-card h4 {
    color: #a18aff;
    margin-bottom: 10px;
}

.education-card p {
    color: #b3b6c8;
    margin: 8px 0;
    font-size: 14px;
}

.education-card span {
    font-size: 13px;
}


/* CONTACT SECTION */

.contact {
    background: #0e1220;
}

.contact-container {
    max-width: 850px;
    margin: auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: #171c2d;
    border-radius: 15px;
    border: 1px solid #292e43;
}

.contact-text h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.contact-text p {
    color: #b3b6c8;
    line-height: 1.8;
    font-size: 14px;
}

.contact-details p {
    color: #c6c8d5;
    font-size: 13px;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.contact-details a {
    color: #5bd9c7;
}

.contact-details a:hover {
    color: #a18aff;
}


/* FOOTER */

footer {
    text-align: center;
    padding: 35px 15px;
    background: #080a12;
    border-top: 1px solid #25283b;
}

footer h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

footer p {
    color: #aeb2c5;
    font-size: 12px;
    margin: 8px;
}

footer a {
    display: inline-block;
    margin-top: 12px;
    color: #5bd9c7;
    font-size: 13px;
}


/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 12px;
    }

    section {
        padding: 75px 5%;
    }

    .home {
        gap: 25px;
    }

    .image-border {
        width: 280px;
        height: 370px;
    }

    .about-content {
        gap: 30px;
    }
}

@media (max-width: 700px) {

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
        position: relative;
        color: #a18aff;
        cursor: pointer;
    }

    .mobile-menu summary {
        list-style: none;
        border: 1px solid #a18aff;
        padding: 8px 12px;
        border-radius: 6px;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-links {
        position: absolute;
        right: 0;
        top: 45px;
        width: 180px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: #171c2d;
        border: 1px solid #35304f;
        border-radius: 10px;
    }

    .mobile-links a {
        color: white;
        font-size: 14px;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 55px;
    }

    .home-content {
        width: 100%;
    }

    .home-content h1 {
        font-size: 35px;
    }

    .home-buttons,
    .social-links {
        justify-content: center;
    }

    .home-image {
        min-width: 0;
    }

    .image-border {
        width: 250px;
        height: 320px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        flex-basis: auto;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .education-card {
        padding: 22px;
    }
}

@media (max-width: 420px) {

    .skills-container {
        grid-template-columns: 1fr;
    }

    .home-content h1 {
        font-size: 30px;
    }

    .home-content h3 {
        font-size: 19px;
    }

    .intro {
        font-size: 13px;
    }

    .home-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}
