/* ---------- General ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #333333;
    line-height: 1.6;
}


/* ---------- Header ---------- */

header {
    background: #222222;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin-bottom: 4px;
}


/* ---------- Navigation ---------- */

nav {
    display: flex;
    justify-content: center;
    gap: 30px;

    padding: 16px 20px;

    background: white;
    border-bottom: 1px solid #dddddd;

    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: #2563eb;
}


/* ---------- Main ---------- */

main {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
}


/* ---------- Shared Sections ---------- */

section {
    background: white;
    margin-bottom: 40px;
    padding: 60px 40px;
    border-radius: 10px;
    scroll-margin-top: 80px;
}

section h2 {
    margin-bottom: 15px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    max-width: 700px;
    font-size: 2.2rem;
    line-height: 1.2;
}

.section-heading > p:last-child {
    max-width: 750px;
}

.section-label {
    margin-bottom: 12px;

    color: #2563eb;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ---------- Hero ---------- */

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    min-height: calc(100vh - 230px);
    padding: 60px;

    background: #eef6ff;
    border-radius: 18px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-content {
    flex: 1;
}

.hero-label {
    margin-bottom: 12px;

    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h2 {
    max-width: 700px;
    margin-bottom: 20px;

    font-size: 3rem;
    line-height: 1.15;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 28px;

    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.primary-button,
.secondary-button {
    display: inline-block;

    padding: 12px 22px;
    border-radius: 6px;

    text-decoration: none;
    font-weight: bold;
}

.primary-button {
    background: #222222;
    color: white;
}

.secondary-button {
    border: 2px solid #222222;
    color: #222222;
}

.primary-button:hover {
    background: #3a3a3a;
}

.secondary-button:hover {
    background: #222222;
    color: white;
}

.hero-image {
    flex: 0 0 280px;
}

.hero-image img {
    display: block;

    width: 100%;
    height: 340px;

    object-fit: cover;
    border-radius: 14px;
}


/* ---------- About ---------- */

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-heading {
    flex: 1;
}

.about-heading h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.about-text {
    flex: 1.4;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* ---------- Experience ---------- */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.experience-card {
    padding: 25px;

    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.experience-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.experience-years {
    margin-bottom: 10px;

    color: #2563eb;
    font-weight: bold;
}

.experience-companies {
    margin-top: 15px;

    color: #555555;
    font-size: 0.95rem;
    font-weight: 600;
}


/* ---------- Projects ---------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    padding: 25px;

    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.project-type {
    margin-bottom: 8px;

    color: #2563eb;
    font-size: 0.9rem;
    font-weight: bold;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.project-card p {
    line-height: 1.7;
}

.project-features {
    margin-top: 15px;
    padding-left: 22px;
    list-style-position: outside;
}

.project-features li {
    margin-bottom: 6px;
    padding-left: 2px;
    line-height: 1.5;
}

.project-features li:last-child {
    margin-bottom: 0;
}


/* ---------- Skills ---------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-group {
    padding: 25px;

    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.skill-group h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.skill-group ul {
    padding-left: 20px;
}

.skill-group li {
    margin-bottom: 6px;
}


/* ---------- Contact ---------- */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.contact-heading h2 {
    margin-bottom: 18px;

    font-size: 2.2rem;
    line-height: 1.2;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    padding: 22px;

    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.contact-card h3 {
    margin-bottom: 8px;
}


/* ---------- Footer ---------- */

footer {
    background: #222222;
    color: white;
    padding: 35px 5%;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-content h2 {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: #93c5fd;
}

.footer-copyright {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;

    border-top: 1px solid #444444;

    text-align: center;
    font-size: 0.9rem;
}
/* ---------- Responsive Design ---------- */

@media (max-width: 900px) {

    main {
        width: 92%;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        gap: 35px;
        padding: 50px 35px;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        flex: none;
        width: 280px;
        max-width: 100%;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}


@media (max-width: 650px) {

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    nav {
        gap: 15px;
        padding: 14px 10px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.9rem;
    }

    main {
        width: 94%;
        margin: 25px auto;
    }

    section {
        padding: 40px 22px;
        margin-bottom: 25px;
    }

    #hero {
        padding: 40px 22px;
        border-radius: 12px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        width: 230px;
    }

    .hero-image img {
        height: 280px;
    }

    .about-heading h2,
    .section-heading h2,
    .contact-heading h2 {
        font-size: 1.8rem;
    }

    .skills-grid,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .experience-card,
    .project-card,
    .skill-group,
    .contact-card {
        padding: 20px;
    }

    footer {
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
.project-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;

    background: #222222;
    color: white;

    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.project-link:hover {
    background: #2563eb;
}
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}