
/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Global Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #0b1020;
    color: #ffffff;
}

/* Navigation Bar */
header {
    background: #11182b;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #29314a;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.logo span {
    color: #a78bfa;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #a78bfa;
}

/* Home Section */
.home {
    min-height: 90vh;
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-content {
    max-width: 650px;
}

.welcome {
    color: #a78bfa;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 20px;
}

.home h1 {
    font-size: 45px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.home h1 span {
    color: #a78bfa;
}

.home h2 {
    font-size: 27px;
    color: #c5c9d8;
    margin-bottom: 20px;
}

.home-content p {
    color: #aeb5c8;
    line-height: 1.8;
}

.home-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: #8b73e8;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #7056d1;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #8b73e8;
}

.btn-outline:hover {
    background: #8b73e8;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #c5b6ff;
    text-decoration: none;
    font-weight: 600;
}

.social-links a:hover {
    color: white;
}

/* Profile Image */
.home-image img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 160px 160px 20px 20px;
    border: 6px solid #8b73e8;
    box-shadow: 0 0 35px #8b73e855;
}

/* Common Section Styling */
.section {
    padding: 90px 8%;
}

.heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 45px;
}

.heading span {
    color: #a78bfa;
}

/* About Section */
.about {
    background: #11182b;
}

.about-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.about-content p {
    color: #b7bfd1;
    font-size: 17px;
    line-height: 2;
}

/* Education Section */
.education-box {
    max-width: 650px;
    margin: auto;
    padding: 35px;
    background: #171f36;
    border: 1px solid #393f60;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.education-box:hover {
    transform: translateY(-5px);
    border-color: #a78bfa;
}

.education-box h3 {
    color: #a78bfa;
    font-size: 24px;
    margin-bottom: 10px;
}

.education-box h4 {
    margin-bottom: 20px;
}

.education-box p {
    color: #b7bfd1;
    margin: 10px 0;
}

/* Skills Section */
.skills {
    background: #11182b;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-box {
    background: #171f36;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #303a57;
    transition: 0.3s;
}

.skill-box:hover {
    transform: translateY(-7px);
    border-color: #a78bfa;
}

.skill-box h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.skill-box p {
    color: #d0d4e2;
    margin: 8px 0;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-box {
    padding: 30px;
    background: #171f36;
    border-radius: 12px;
    border: 1px solid #303a57;
    transition: 0.3s;
}

.project-box:hover {
    transform: translateY(-7px);
    border-color: #a78bfa;
}

.project-box h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.project-box p {
    color: #b7bfd1;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-box span {
    display: inline-block;
    background: #29234a;
    color: #c5b6ff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
}

/* Contact Section */
.contact {
    background: #11182b;
}

.contact-box {
    max-width: 700px;
    margin: auto;
    background: #171f36;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #303a57;
}

.contact-box p {
    margin: 18px 0;
    color: #c5c9d8;
    overflow-wrap: anywhere;
}

.contact-box a {
    color: #a78bfa;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #080d19;
    color: #929bb1;
    font-size: 13px;
    line-height: 2;
}

/* Responsive Design */
@media (max-width: 900px) {

    .home {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-buttons,
    .social-links {
        justify-content: center;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-image img {
        width: 260px;
        height: 330px;
    }
}

@media (max-width: 600px) {

    header {
        padding: 18px 5%;
    }

    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .home {
        padding: 55px 5%;
    }

    .home h1 {
        font-size: 32px;
    }

    .home h2 {
        font-size: 22px;
    }

    .section {
        padding: 65px 5%;
    }

    .heading {
        font-size: 29px;
    }

    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .home-buttons {
        flex-wrap: wrap;
    }

    .contact-box {
        padding: 22px;
    }
}
