/* Global Reset & Font Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", sans-serif;
    background-color: #F5F5F7;
    color: #1C1C1E;
    line-height: 1.6;
    padding: 20px;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    border-radius: 12px;
    margin-bottom: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: #1C1C1E;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-links li a:hover {
    color: #007AFF;
}

.resume-btn {
    background-color: #007AFF;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.resume-btn:hover {
    background-color: #0056d8;
}

/* Hamburger styles (mobile only) */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        background-color: #f1f1f1;
        border-radius: 8px;
    }

    .hamburger span {
        height: 3px;
        width: 25px;
        background: #1C1C1E;
        border-radius: 2px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
        text-align: right;
        gap: 14px;
        width: max-content;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .resume-btn {
        padding: 8px 12px;
        border-radius: 6px;
    }
}

main {
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Layout */
section {
    padding: 50px 20px;
}

h1, h2, h4 {
    color: #000;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Paragraphs */
p {
    font-size: 17px;
    margin-bottom: 16px;
}

/* ABOUT Section */
#about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

#about #text {
    max-width: 600px;
}

#about #image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* EDUCATION Section */
#education div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

#education figure {
    flex-shrink: 0;
}

#education img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

#education .year {
    flex-shrink: 0;
    text-align: right;
    width: 80px;
    color: #555;
}

#education p {
    flex: 1;
    margin-bottom: 5px;
}

/* SKILLS Section */
#skills {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.skill-box {
    flex: 1 1 calc(20% - 20px);
    background-color: #fff;
    padding: 10px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    transition: all 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.skill-box strong {
    display: block;
    font-size: 16px;
    color: #1C1C1E;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .skills-row {
        flex-direction: column;
        align-items: center;
    }

    .skill-box {
        width: 90%;
        flex: none;
    }
}

/* PROJECTS Section */
.project {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* EXPERIENCE Section */
.experience {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.experience:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* CONTACT Section */
#contact {
    text-align: center;
}

#contact a {
    display: inline-block;
    margin: 10px 14px;
    text-decoration: none;
    font-weight: 500;
    color: #007AFF;
    font-size: 17px;
    transition: color 0.3s;
}

#contact a:hover {
    color: #0056D8;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #EFEFF1;
    color: #555;
    margin-top: 50px;
    font-size: 16px;
    border-radius: 14px;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Typography & Layout Tweaks */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    #about {
        flex-direction: column;
    }

    #about #image img {
        width: 160px;
        height: 160px;
    }

    #education div {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    #education .year {
        text-align: center;
        width: auto;
    }

    #education img {
        width: 60px;
        height: 60px;
    }

    .project, .experience {
        padding: 16px;
    }

    #contact a {
        display: block;
        margin: 12px 0;
        font-size: 16px;
    }

    main {
        padding: 0 10px;
    }

    footer {
        font-size: 14px;
        padding: 20px 10px;
    }
}