/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: Arial, sans-serif;
    color: #17243a;
    background: #ffffff;
    line-height: 1.6;
}

header {
    background: white;
    border-bottom: 1px solid #e5eaf3;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation */
.navbar {
    min-height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
}

.logo {
    font-size: 25px;
    font-weight: bold;
}

.logo span {
    color: #4f67e8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #17243a;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4f67e8;
}

.menu-toggle {
    display: none;
    font-size: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Home Section */
.hero {
    min-height: 550px;
    padding: 70px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: linear-gradient(120deg, #f4f6ff, #ffffff);
}

.hero-content {
    max-width: 600px;
}

.subtitle {
    color: #4f67e8;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: 60px;
    margin: 10px 0;
}

.hero h2 {
    color: #4f67e8;
    margin-bottom: 20px;
}

.hero-content p {
    color: #64748b;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background: #4f67e8;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    margin: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #354cc7;
    transform: translateY(-3px);
}

.btn.secondary {
    background: white;
    color: #4f67e8;
    border: 1px solid #4f67e8;
}

/* Profile */
.hero-image {
    text-align: center;
    padding: 35px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    min-width: 250px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7187f6, #9b72d8);
    color: white;
    font-size: 45px;
    font-weight: bold;
    display: grid;
    place-items: center;
    margin: auto auto 20px;
}

/* Common Section */
.section {
    padding: 75px 8%;
    text-align: center;
}

.section-title {
    font-size: 35px;
    margin-bottom: 35px;
}

.light {
    background: #f5f7fc;
}

/* About */
.about-box {
    max-width: 850px;
    margin: auto;
    padding: 30px;
    background: white;
    border: 1px solid #e5eaf3;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.about-box p {
    color: #64748b;
    font-size: 17px;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5eaf3;
    transition: 0.3s;
}

.skill-card h3 {
    color: #4f67e8;
    margin-bottom: 10px;
}

.skill-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    padding: 30px 20px;
    background: white;
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    transition: 0.3s;
}

.project-card h3 {
    color: #4f67e8;
    margin-bottom: 12px;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Education */
.education-card {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5eaf3;
}

.education-card h3 {
    color: #4f67e8;
    margin-bottom: 10px;
}

/* Contact */
.contact-box {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: #f3f6ff;
    border-radius: 15px;
    text-align: left;
}

.contact-box p {
    padding: 8px;
    overflow-wrap: anywhere;
}

/* Footer */
footer {
    background: #17243a;
    color: white;
    text-align: center;
    padding: 22px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .navbar {
        padding: 15px 5%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 30px;
        gap: 15px;
        border-bottom: 1px solid #e5eaf3;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 55px 5%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .skills-container,
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {

    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 55px 5%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-image {
        width: 100%;
    }
}
