* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/*  BODY  */
body {
    background-color: #f0f4f8;
    color: #333333;
}

/*  HEADER  */
header {
    background-color: #1a1a2e;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #f4a825;
    letter-spacing: 2px;
}

/*  NAV  */
nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid white;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #f4a825;
    color: #1a1a2e;
    border-color: #f4a825;
}

/*  HOME SECTION  */
#Home {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

#Home h2 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

#Home p {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#Home img {
    display: block;
    margin: 30px auto;
    width: 260px;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #f4a825;
}

/*  BUTTONS  */
.btn,
.resume-btn,
.certi-view {
    display: inline-block;
    padding: 10px 28px;
    background-color: #f4a825;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid #f4a825;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover,
.resume-btn:hover,
.certi-view:hover {
    background-color: #1a1a2e;
    color: #f4a825;
    border-color: #f4a825;
}

/*  ABOUT SECTION  */
#About {
    background-color: #eaf0fb;
    padding: 60px 20px;
    text-align: center;
}

#About h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 10px;
    margin-top: 40px;
}

#About h2:first-child {
    margin-top: 0;
}

#About p {
    font-size: 16px;
    color: #555555;
    max-width: 750px;
    margin: 0 auto 16px auto;
}

.resume-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.download-btn {
  background-color: #28a745;
}

#About .resume-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 40px auto;
}

#About div {
    background-color: #ffffff;
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 12px auto;
    max-width: 700px;
    text-align: center;
    transition: box-shadow 0.3s;
}

#About div:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #f4a825;
}

#About div h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

#About div p {
    font-size: 14px;
    margin-bottom: 4px;
}

#About .certi-view {
    display: block;
    width: fit-content;
    margin: 12px auto 0 auto;
    font-size: 14px;
    padding: 8px 22px;
}

/* Skills / Language tags */
#About ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 10px auto 30px auto;
    max-width: 700px;
}

#About ul li {
    background-color: #1a1a2e;
    color: #f4a825;
    border: 1px solid #f4a825;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

#About ul li:hover {
    background-color: #f4a825;
    color: #1a1a2e;
}

/*  PROJECTS SECTION  */
#Projects {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

#Projects h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.Project-card {
    background-color: #f9f9f9;
    border: 1px solid #dde3ee;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: left;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.Project-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #f4a825;
}

.Project-card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.Project-card p {
    font-size: 14px;
    color: #555555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.Project-card a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1a1a2e;
    color: #f4a825;
    border: 2px solid #f4a825;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.Project-card a:hover {
    background-color: #f4a825;
    color: #1a1a2e;
}

/*  CONTACT SECTION  */
#Contact {
    padding: 60px 20px;
    background-color: #eaf0fb;
    text-align: center;
}

#Contact h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

#Contact p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 10px;
}

#Contact p a {
    color: #1a1a2e;
    font-weight: bold;
    text-decoration: none;
}

#Contact p a:hover {
    color: #f4a825;
    text-decoration: underline;
}

#Contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 30px auto 0 auto;
    background-color: #ffffff;
    border: 1px solid #d0d8e8;
    border-radius: 12px;
    padding: 36px 30px;
}

#Contact form label {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 6px;
    align-self: flex-start;
}

#Contact form input,
#Contact form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background-color: #f9f9f9;
    outline: none;
    transition: border-color 0.3s;
}

#Contact form input:focus,
#Contact form textarea:focus {
    border-color: #f4a825;
}

#Contact form textarea {
    min-height: 120px;
    resize: vertical;
}

#Contact form button {
    width: 100%;
    padding: 12px;
    background-color: #f4a825;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #f4a825;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#Contact form button:hover {
    background-color: #1a1a2e;
    color: #f4a825;
}

/*  FOOTER  */
footer {
    background-color: #1a1a2e;
    color: #aaaaaa;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/*  BACK TO TOP  */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 18px;
    background-color: #f4a825;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s;
}

#backToTop:hover {
    background-color: #1a1a2e;
    color: #f4a825;
    border: 2px solid #f4a825;
}

/*  TABLET (max-width: 768px)  */
@media (max-width: 768px) {

    header h1 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    nav a {
        font-size: 13px;
        margin: 0 8px;
        padding: 5px 12px;
    }

    #Home h2 {
        font-size: 26px;
    }

    #Home p {
        font-size: 16px;
    }

    #Home img {
        width: 200px;
        height: 270px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .Project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    #About h2,
    #Projects h2,
    #Contact h2 {
        font-size: 24px;
    }
}

/*  MOBILE (max-width: 480px)  */
@media (max-width: 480px) {

    header h1 {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        font-size: 12px;
        margin: 0;
        padding: 5px 10px;
    }

    #Home {
        padding: 40px 16px;
    }

    #Home h2 {
        font-size: 22px;
    }

    #Home p {
        font-size: 15px;
    }

    #Home img {
        width: 170px;
        height: 220px;
    }

    #About,
    #Projects,
    #Contact {
        padding: 40px 16px;
    }

    #About div {
        padding: 16px 14px;
    }

    .Project-card {
        padding: 18px 16px;
    }

    #Contact form {
        padding: 24px 16px;
    }

    #Contact form input,
    #Contact form textarea {
        font-size: 13px;
    }

    #backToTop {
        font-size: 12px;
        padding: 8px 14px;
        bottom: 16px;
        right: 16px;
    }
}
