* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    height: 100%;
}
/* NAVIGATION BAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 8px 20px;
    z-index: 9999;
    position: relative;
}
.navbar .logo img {
    height: 60px;
    width: auto;
    max-height: fit-content;
}
.top_nav {
    display: flex;
    list-style: none;
    margin-right: 10px;
    padding: 0;
}
.top_nav li {
    margin: 0;
    padding: 0;
}
.top_nav li a {
    display: block;
    text-decoration: none;
    color: #023047;
    font-size: 18px;
    padding: 12px 20px;
}
.top_nav li a:hover {
    background-color: #1b4965;
    color: white;
}
.menu_button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1b4965;
    cursor: pointer;
}
@media (max-width: 600px) {
    .top_nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #f8f9fa;
    }

    .top_nav li {
        width: 100%;
        text-align: center;
    }

    .top_nav.show {
        display: flex;
    }

    .menu_button {
        display: block;
    }
}
/* HOMEPAGE */
.homepage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 12%;
    padding-left: 12%;
    padding-bottom: 60px;
    background-color: #1b4965;
    height: 690px;
}
.homepage_text {
    max-width: 50%;
}
.homepage_text h1 {
    font-size: 50px;
    color: white;
}
.homepage_text p {
    font-size: 25px;
    color: white;
}
.homepage button {
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 5px;
}
.contact_me {
    background-color: #cae9ff;
    border: 2px solid #cae9ff;
    color: black;
}
.my_works {
    background-color: #1b4965;
    border: 2px solid #cae9ff;
    color: white;
}
.my_works:hover {
    background-color: #cae9ff;
    color: black;
}
.homepage_image {
    position: relative;
    width: 450px;
    height: 450px;
}
.about_me_homepage{
    padding: 60px;
    background: #f8f9fa;   
    text-align: center;
    
}
.about_me_homepage p{
    color: black;
}
.about_me_homepage h2{
    margin-top: -15px;
    font-size: 30px;
    color: #023047;
    text-align: center;
}
.image_container {
    position: relative;
    width: 100%;
    max-width: 800px; 
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #cae9ff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.image_container img {
    width: 98%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}
@media (max-width: 768px) {
    .homepage {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 30px;
    }
    .homepage_text {
        max-width: 100%;
        margin-top: -5px; 
    }
    .homepage_text h1 {
        margin-top: 0;
        padding-top: 30px;
    }
    .homepage_image {
        margin-bottom: 0px;
    }
    .image_container {
        max-width: 350px; 
    }
}


/*Homepage skills*/
.homepage_skills {
    text-align: center;
    padding: 50px;

}
.homepage_skills h2{
    margin-top: -15px;
    font-size: 30px;
    color: #023047;
    margin-left: 19px;
}
.skills_content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px;
}
.skills {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
    color: black;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}
.skills p{
    color: black;
    font-weight: 300;
}
.skills h4 {
    color: #023047;
    font-weight: 800;
}
@media (max-width: 992px) {
    .skills_content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .skills_content {
        grid-template-columns: repeat(1, 1fr);
    }
}
.homepage_contact {
    text-align: center;
    padding: 30px 2px;
    background-color: #cae9ff;
    color: #003049;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.homepage_contact p {
    color: #023047;
    font-size: 16px;
    margin-bottom: 15px;
}
.contact_button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #023047;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s ease;
}
.contact_button:hover {
    background-color: #1b4965;
}
.homepage_reachout {
    text-align: center;
    padding: 40px 20px;
    background: #00b4d8;
    color: white;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 900px; 
    width: 90%; 
}
.homepage_reachout h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.homepage_reachout p {
    font-size: 16px;
    margin-bottom: 20px;
}
.homepage_reachout button {
    background-color: #023047;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}
.homepage_reachout button:hover {
    background-color: #8ecae6;
    color: black;
}
@media (max-width: 768px) {
    .homepage_reachout {
        padding: 30px 15px;
    }
    .homepage_reachout h2 {
        font-size: 24px;
    }
    .homepage_reachout p {
        font-size: 14px;
    }
    .homepage_reachout button {
        padding: 10px 15px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .homepage_reachout {
        padding: 25px 10px;
    }
    .homepage_reachout h2 {
        font-size: 20px;
    }
    .homepage_reachout p {
        font-size: 13px;
    }
    .homepage_reachout button {
        padding: 8px 12px;
        font-size: 13px;
    }
}
.Container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
}
.homepage_project {
    text-align: center;
    padding: 50px;
}
.homepage_project h2 {
    margin-top: -15px;
    font-size: 30px;
    color: #023047;
}
.view_more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1b4965;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}
.Container > div {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color: black;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}
.Container > div:hover {
    border: 2px solid #003049;
}
.Container img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
}
p {
    font-size: 14px;
    margin-top: 8px;
    font-weight: bold;
}
.Container p {
    color: black;
}
@media (max-width: 600px) {
    .Container {
        grid-template-columns: 1fr;
    }
    .homepage_contact,
    .homepage_project {
        padding: 30px;
    }
    .homepage_contact h2 {
        font-size: 24px;
    }
    .homepage_contact p {
        font-size: 14px;
    }
    .contact_button {
        padding: 10px 16px;
        font-size: 14px;
    }
    .view_more {
        padding: 8px 15px;
        font-size: 14px;
    }
}
@media (min-width: 601px) and (max-width: 1023px) {
    .Container {
        grid-template-columns: repeat(2, 1fr);
    }
    .homepage_contact {
        max-width: 600px;
    }
}
@media (min-width: 1024px) {
    .Container {
        grid-template-columns: repeat(3, 1fr); 
    }
}
/*ABOUT PAGE*/
.about {
    text-align: center;
    padding: 60px;
    background-color: #1b4965;
}
.about h2 {
    color: white;
    font-size: 30px;
    margin-top: -10px;
}
.about p {
    font-size:18px;
    max-width: 800px;
    margin: 0 auto 20px;
    color: white;
    font-weight: 400;
}
.skills_section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
}
.skills_section h3 {
    font-size: 30px;
    color: black;
    margin-bottom: 25px;
}
.skills_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    justify-content: center;
    max-width: 1100px;
    margin: auto;
    padding: 20px; 
}
.skilled {
    background: white;
    padding: 25px; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s ease-in-out;
}
.skilled:hover {
    border: 3px solid #003049;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}
.skilled img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}
.skilled h4 {
    font-size: 18px;
    font-weight: bold;
    color: #1b4965;
    margin-bottom: 12px;
}
.skilled p {
    font-size: 14px;
    color: black;
    font-weight: 300;
}
@media (min-width: 1024px) {
    .skills_container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
.interests_section h3{
    text-align: center;
    font-size: 30px;
    color: #023047;
    margin-bottom: 20px;
}
.interests_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.interesting {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 280px;
}
.interesting p{
    color: black;
    font-weight: 300;
}
.interesting h4{
    font-size: 18px;
    color: #1b4965;
    margin-bottom: 12px;
    font-weight: bold;
}
.interesting:hover {
    border-bottom: solid 3px #023047;
}
.interesting img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .interests_container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .interests_container {
        grid-template-columns: 1fr; 
    }
}

/* PORTFOLIO PAGE */
.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 70px;
    padding: 20px;
    justify-content: center;
    flex: 1;
}
.portfolio_title h2{
    font-size: 30px;
    margin-bottom: 25px;
    text-align: center;
    color: #023047;
}
.project {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.project:hover {
    transform: scale(1.05);
}

.project img, .project video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.project button {
    background-color: #023047;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.project button:hover {
    background-color: #006994;
}
@media (max-width: 1024px) {
    .portfolio {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        margin-bottom: 70px;
    }
}
@media (max-width: 768px) {
    .portfolio {
        grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
        margin-bottom: 60px;
    }
}
@media (max-width: 650px) {
    .portfolio {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        margin-bottom: 70px;
        gap: 20px;
        max-width: 400px;
    }
}


/* FOOTER PAGE */
footer {
    width: 100%;
    max-width: 100%;
    background-color: #023047;
    color: #fff;
    padding: 12px;
    text-align: center;
    position: relative;
}

.footer_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}
footer p {
    font-size: 14px;
    margin: 10px 0;
    color: white;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul.social_media {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

ul.social_media li {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

ul.footer_policy li a[href='/terms-of-service'] {
    color: white; 
}

ul.footer_policy li a[href='/terms-of-service']:hover {
    color: #ff4500;
}
ul.footer_policy li a[href='/privacy-policy'] {
    color: white; 
}

ul.footer_policy li a[href='/privacy-policy']:hover {
    color: #ff4500;
}
.icon {
    width: 30px;  
    height: 30px;
    margin-right: 8px; 
}
ul.footer_policy {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}
ul.footer_policy li {
    margin: 0 15px;
}

/* CONTACT PAGE */
.contact {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
}
.contact_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: auto;
}
.contact_form {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding-right: 18px;
}
.contact_form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}
.contact_form input, 
.contact_form textarea {
    width: 96%;
    padding: 10px;
    margin-top: 5px;
    padding-right: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.contact_form button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #023047;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.contact_form button:hover {
    background-color: #1b4965;
}
.contact_info {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.contact_info h3 {
    text-align: center;
}
.contact_info p {
    font-weight: 300;
}
.contact_info span {
    font-weight: bold;
}
@media (max-width: 768px) {
    .contact_container {
        flex-direction: column;
        align-items: center;
    }
    .contact_form, .contact_info {
        width: 90%;
    }
}

