
/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #253047;
    line-height: 1.7;
}

section {
    padding: 85px 8%;
}

section h2 {
    font-size: 32px;
    color: #14213d;
    text-align: center;
    margin-bottom: 45px;
}

/* ===== Navigation ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5%;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 27px;
    cursor: pointer;
    color: #14213d;
}

/* ===== Homepage ===== */
#home {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: #f5f8ff;
    padding: 80px 8%;
}

.home-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.home-text {
    flex: 1;
}

.welcome-text {
    color: #2563eb;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-text h1 {
    color: #14213d;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.2;
    margin-bottom: 15px;
}

.home-text h2 {
    color: #344054;
    font-size: 25px;
    margin-bottom: 15px;
}

#typing-text {
    color: #2563eb;
}

.home-skills {
    color: #667085;
    font-weight: 600;
    margin-bottom: 20px;
}

.intro {
    max-width: 650px;
    color: #596579;
    font-size: 16px;
    margin-bottom: 28px;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.secondary-btn,
.resume-btn,
.social-btn {
    background: white;
    color: #14213d;
    border: 1px solid #d0d5dd;
}

.btn:hover {
    transform: translateY(-3px);
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn:hover,
.resume-btn:hover,
.social-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.home-photo {
    flex: 0 0 320px;
    display: flex;
    justify-content: center;
}

.home-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 8px 30px rgba(20,33,61,0.12);
}

/* ===== About ===== */
#about {
    background: white;
    text-align: center;
}

#about p {
    max-width: 850px;
    margin: 15px auto;
    color: #596579;
    font-size: 16px;
}

/* ===== Education ===== */
#education {
    background: #f8fafc;
}

.education-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.education-card {
    flex: 1 1 280px;
    max-width: 350px;
    padding: 28px;
    background: white;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    transition: 0.3s;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16,24,40,0.07);
}

.education-card h3 {
    color: #14213d;
    font-size: 18px;
    margin-bottom: 16px;
}

.education-card p {
    color: #596579;
    font-size: 14px;
    margin-bottom: 8px;
}

/* ===== Skills ===== */
#skills {
    background: white;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-category {
    padding: 25px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    transition: 0.3s;
}

.skill-category:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #2563eb;
    font-size: 17px;
    margin-bottom: 15px;
}

.skill-category p {
    color: #596579;
    font-size: 14px;
    margin: 8px 0;
}

/* ===== Experience ===== */
#experience {
    background: #f8fafc;
}

.experience-card {
    max-width: 850px;
    margin: auto;
    padding: 32px;
    background: white;
    border: 1px solid #e4e7ec;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
}

.experience-card h3 {
    color: #14213d;
    font-size: 21px;
    margin-bottom: 8px;
}

.date {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-card p,
.experience-card li {
    color: #596579;
    font-size: 15px;
}

.experience-card ul {
    padding-left: 22px;
    margin-top: 15px;
}

.experience-card li {
    margin-bottom: 8px;
}

/* ===== Projects ===== */
#projects {
    background: white;
}

.project-container,
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(16,24,40,0.04);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16,24,40,0.09);
}

.project-certificate {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 18px;
}

.project-card h3 {
    color: #14213d;
    font-size: 19px;
    margin-bottom: 10px;
}

.project-type {
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
}

.project-card p {
    color: #596579;
    font-size: 14px;
    margin-bottom: 12px;
}

.project-date {
    font-weight: 600;
}

/* ===== Responsibility ===== */
#responsibility {
    background: #f8fafc;
}

.responsibility-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.responsibility-card {
    flex: 1 1 280px;
    max-width: 400px;
    padding: 28px;
    background: white;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.responsibility-card h3 {
    color: #14213d;
    margin-bottom: 12px;
}

.responsibility-card p {
    color: #596579;
}

/* ===== Certificates ===== */
#certificates {
    background: white;
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.certificate-card {
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    transition: 0.3s;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16,24,40,0.07);
}

.certificate-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.certificate-card h3 {
    color: #14213d;
    font-size: 17px;
    margin-bottom: 10px;
}

.certificate-card p {
    color: #596579;
    font-size: 14px;
    margin-bottom: 8px;
}

/* ===== Contact ===== */
#contact {
    background: #f5f8ff;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.contact-container p {
    color: #596579;
    font-size: 15px;
}

.contact-container a {
    color: #2563eb;
    text-decoration: none;
}

.contact-container a:hover {
    text-decoration: underline;
}

/* ===== Back to Top ===== */
#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #14213d;
    color: white;
    font-size: 23px;
    cursor: pointer;
    z-index: 1000;
}

#backToTop:hover {
    background: #2563eb;
}

/* ===== Tablet ===== */
@media (max-width: 1000px) {
    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-photo {
        flex-basis: 260px;
    }

    .home-photo img {
        width: 250px;
        height: 250px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    section {
        padding: 65px 6%;
    }

    section h2 {
        font-size: 27px;
        margin-bottom: 30px;
    }

    nav {
        justify-content: flex-end;
        flex-wrap: wrap;
        padding: 15px 6%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
        gap: 15px;
    }

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

    .nav-links a {
        font-size: 14px;
    }

    #home {
        padding: 60px 6%;
    }

    .home-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .home-text {
        text-align: center;
    }

    .home-buttons {
        justify-content: center;
    }

    .home-photo {
        flex: auto;
    }

    .home-photo img {
        width: 210px;
        height: 210px;
    }

    .project-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .certificates-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .home-text h2 {
        font-size: 20px;
    }

    .btn {
        padding: 11px 15px;
        font-size: 13px;
    }
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-card {
    background-color: #f1f5f9;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    padding: 12px 20px;
    flex: 1 1 200px;
}

.skill-card h3 {
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 8px;
}

.skill-card p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Improvements */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.nav-links a {
    margin-left: 0;
    white-space: nowrap;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links.active {
        display: flex;
    }
}
.nav-links a.active {
    color: #2563eb;
    font-weight: 700;
}

/* Home Section Layout Fix */

#home {
    width: 100%;
    min-height: 90vh;
    overflow: hidden;
}

.home-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-text {
    flex: 1;
    min-width: 0;
}

.home-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    display: block;
    width: 280px;
    height: 280px;
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.home-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-buttons .btn {
    margin: 0;
}

@media (max-width: 768px) {
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-image {
        flex: none;
    }

    .home-buttons {
        justify-content: center;
    }
}

/* Footer Styling */

footer {
    width: 100%;
    background-color: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 25px 15px;
    font-size: 14px;
    line-height: 1.8;
}

footer p {
    margin: 5px 0;
}

footer p:first-child {
    font-weight: 600;
    color: #ffffff;
}

footer p:last-child {
    font-size: 13px;
    color: #94a3b8;
}

