
/* =================================
   GLOBAL STYLING
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --background: #080710;
    --card: #13111f;
    --purple: #a855f7;
    --light-purple: #c084fc;
    --white: #ffffff;
    --gray: #a5a1b5;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    scroll-margin-top: 90px;
}


/* =================================
   NAVIGATION BAR
================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 7, 16, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.navbar {
    min-height: 80px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    color: white;
}

.logo span,
footer h3 span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 27px;
}

.nav-links a {
    color: #d4d0df;
    font-size: 13px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--light-purple);
}

.nav-btn {
    border: 1px solid var(--purple);
    padding: 10px 19px;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--purple);
}


/* =================================
   HOME SECTION
================================= */

.home {
    min-height: 90vh;
    padding: 90px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
}

.home::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: #7e22ce;
    filter: blur(180px);
    opacity: 0.12;
    top: 10%;
    left: -150px;
    pointer-events: none;
}

.home-content {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid #302444;
    border-radius: 30px;
    font-size: 11px;
    color: #d8c6ee;
    margin-bottom: 30px;
}

.green-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

.intro {
    color: var(--light-purple);
    letter-spacing: 5px;
    font-size: 13px;
    margin-bottom: 12px;
}

.home h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
}

.home h1 span {
    background: linear-gradient(
        90deg,
        #c084fc,
        #9333ea,
        #e879f9
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.home h2 {
    font-size: 18px;
    font-weight: 500;
    color: #e4d7f5;
    margin-bottom: 20px;
}

.home h2 span {
    color: var(--light-purple);
}

.description {
    color: var(--gray);
    line-height: 1.9;
    font-size: 14px;
    max-width: 520px;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 32px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background: linear-gradient(
        120deg,
        #9333ea,
        #c084fc
    );
    color: white;
    box-shadow: 0 5px 25px #9333ea33;
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px #9333ea66;
}

.secondary-btn {
    border: 1px solid #7545a5;
    color: white;
}

.secondary-btn:hover {
    background: #251338;
    transform: translateY(-4px);
}

.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.social-icons a {
    font-size: 13px;
    color: #b8a6cf;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--light-purple);
}


/* =================================
   PROFILE IMAGE
================================= */

.home-image {
    width: 350px;
    height: 430px;
    position: relative;
    flex-shrink: 0;
}

.image-glow {
    position: absolute;
    inset: 10%;
    background: #9333ea;
    filter: blur(90px);
    opacity: 0.45;
}

.image-border {
    position: absolute;
    inset: 0;
    padding: 7px;
    border-radius: 170px 170px 30px 30px;
    background: linear-gradient(
        145deg,
        #e879f9,
        #9333ea,
        #3b0764
    );
    box-shadow: 0 0 45px #9333ea44;
}

.image-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 165px 165px 25px 25px;
    display: block;
}

.floating-card {
    position: absolute;
    bottom: 25px;
    left: -55px;
    background: #1b1728;
    border: 1px solid #6b3a91;
    border-radius: 12px;
    padding: 13px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 35px #00000066;
}

.floating-card span {
    font-size: 25px;
}

.floating-card h4 {
    font-size: 12px;
}

.floating-card p {
    font-size: 10px;
    color: var(--gray);
}


/* =================================
   COMMON SECTION HEADINGS
================================= */

.section {
    padding: 100px 10%;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading > p {
    color: var(--light-purple);
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 700;
}

.section-heading h2 span {
    color: var(--light-purple);
}


/* =================================
   ABOUT SECTION
================================= */

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e9d5ff;
}

.about-text p {
    font-size: 13px;
    line-height: 2;
    color: var(--gray);
    margin-bottom: 17px;
}

.education-card {
    padding: 35px;
    background: linear-gradient(
        145deg,
        #1c1529,
        #100d19
    );
    border: 1px solid #462b61;
    border-radius: 15px;
    transition: 0.3s;
}

.education-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.card-label {
    color: var(--light-purple);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.education-card h3 {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.education-card > p:not(.card-label) {
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 8px;
}

.education-line {
    height: 1px;
    background: #49365c;
    margin: 25px 0;
}

.education-details {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--light-purple);
    font-size: 12px;
}


/* =================================
   SKILLS SECTION
================================= */

.skills-section,
.achievements-section {
    background: #0d0b16;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: #151220;
    border: 1px solid #292036;
    border-radius: 12px;
    text-align: center;
    padding: 28px 15px;
    transition: 0.3s;
}

.skill-card:hover {
    border-color: var(--purple);
    background: #21152e;
    transform: translateY(-7px);
    box-shadow: 0 10px 30px #9333ea22;
}

.skill-card span {
    font-size: 32px;
}

.skill-card h3 {
    font-size: 16px;
    margin: 13px 0 5px;
}

.skill-card p {
    color: var(--gray);
    font-size: 11px;
}


/* =================================
   PROJECTS SECTION
================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: linear-gradient(
        145deg,
        #191426,
        #0e0c17
    );
    border: 1px solid #332542;
    padding: 30px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: 0.35s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple);
    box-shadow: 0 15px 35px #9333ea22;
}

.project-number {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff12;
}

.project-icon {
    font-size: 35px;
    margin-bottom: 22px;
}

.project-card h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.9;
    min-height: 90px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.project-tags span {
    background: #2b1940;
    color: #d8b4fe;
    padding: 6px 11px;
    border-radius: 5px;
    font-size: 10px;
}

.project-link {
    display: inline-block;
    color: var(--light-purple);
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.project-link:hover {
    color: white;
}


/* =================================
   ACHIEVEMENTS SECTION
================================= */

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.achievement-card {
    padding: 30px;
    text-align: center;
    background: #171321;
    border: 1px solid #30243f;
    border-radius: 13px;
    transition: 0.3s;
}

.achievement-card:hover {
    border-color: var(--purple);
    transform: translateY(-7px);
}

.achievement-card span {
    font-size: 40px;
}

.achievement-card h3 {
    font-size: 16px;
    margin: 18px 0 12px;
    color: #e9d5ff;
}

.achievement-card p {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.8;
}


/* =================================
   CONTACT SECTION
================================= */

.contact-section {
    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            #30104e44,
            transparent 70%
        );
}

.contact-description {
    color: var(--gray);
    font-size: 14px;
    max-width: 500px;
    line-height: 1.9;
    margin: -25px auto 35px;
}

.contact-socials {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 35px;
}

.contact-socials a {
    font-size: 13px;
    color: #c4b5fd;
    transition: 0.3s;
}

.contact-socials a:hover {
    color: white;
}


/* =================================
   FOOTER
================================= */

footer {
    text-align: center;
    padding: 35px 15px;
    background: #0d0b16;
    border-top: 1px solid #241a30;
}

footer h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

footer p {
    font-size: 12px;
    color: var(--gray);
    line-height: 2;
}

footer .copyright {
    color: #756b84;
    margin-top: 8px;
}


/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 20px 5%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home {
        padding: 70px 6%;
        gap: 35px;
    }

    .home-image {
        width: 290px;
        height: 370px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid,
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 12px 18px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-btn {
        display: none;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 7%;
    }

    .home-content {
        width: 100%;
    }

    .home h1 {
        font-size: 45px;
    }

    .home h2 {
        font-size: 15px;
    }

    .description {
        margin: auto;
    }

    .home-buttons,
    .social-icons {
        justify-content: center;
    }

    .home-image {
        width: 250px;
        height: 320px;
        margin-bottom: 15px;
    }

    .floating-card {
        left: -25px;
        bottom: 15px;
    }

    .section {
        padding: 75px 7%;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .projects-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .project-card p {
        min-height: auto;
    }

    .education-details {
        flex-direction: column;
    }

    .contact-socials {
        gap: 20px;
    }

}
