html {
    scroll-behavior: smooth;
}

body {
    margin: 0%;
    /*ensures content displays all the way to user's browser*/
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

* {
    /* all elements on the page */
    box-sizing: border-box;
    /* This creates a box with a border within which we will place most of our text */
}

h1 {
    text-transform: uppercase;
    text-align: center;
    margin-top: 2%;
    /*adds margin above*/
}

h1:hover {
    transform: scale(1.1);
    /* This makes the h1 increase slightly in size when hovered over */
    transition: transform 1s;
    /* This makes the transform effect last 1 second */
}

img {
    display: block;
    /* By specifying block display we can ensure our images are able to be centered */
    margin-left: auto;
    /* In combination with "margin-right: auto" this centers all images */
    margin-right: auto;
}

p:hover {
    transform: scale(1.01);
    /* This makes the paragraphs increase slightly in size when hovered over */
    transition: transform 1s;
    /* This makes the transform effect last 1 second */
}

a {
    color: rgb(65, 65, 199);
    /* Links will appear in this color */
    text-decoration: none;
    /* Overwrites the default underline of links */
    cursor: pointer;
}

/*Navbar styling*/

.Navbar {
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgb(252, 251, 251);
}

/* Navbar links */
.Navbar a {
    float: left;
    display: block;
    color: rgb(64, 63, 63);
    padding: 14px 16px;
    text-decoration: none;
    font-size: 15px;
    text-align: center;
    position: relative;
}

.Navbar a:hover {
    background-color: rgb(255, 196, 112);
    color: rgb(81, 76, 76);
    font-weight: bold;
}

.Navbar a.active {
    background-color: rgb(255, 196, 112);
}

/*End of Navbar styling*/

/*Home section background image and text styling*/

#homeimage {
    position: fixed;
    left: 0%;
    right: 0%;
    bottom: 0%;
    z-index: -1;
    height: 105%;
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
}

/*Apply a gradient color over the image */
.Home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(206, 131, 2, 0.5), rgba(0, 0, 0, 0));
}

.Opening_Text {
    padding: 20px;
    position: relative;
    -webkit-animation: moveImageText 5.75s;
    animation: moveImageText 5.75s;
    margin-top: 120px;
}

@keyframes moveImageText {
    from {
        top: -40vw;
    }

    to {
        top: 0vw
    }
}

#hello-text {
    color: #FFC470;
    margin-top: 8%;
    font-size: 90px;
}

#introduction-text {
    text-align: center;
    color: #FFC470;
}

/*On hover the text above the background image will be slightly bigger */
#introduction-text:hover {
    transition: transform 2s;
    transform: scale(1.1);
}

/*End of Home section background image styling*/


/* Projects section styling */

#Projects {
    width: 100%;
    padding: 100px;
    padding-top: 3%;
    background-color: #fefefe;
    margin-top: 30%;
}

.projects-separator {
    width: 80px;
    height: 4px;
    background-color: rgb(255, 196, 112);
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 20px;
    border-radius: 2px;
}

#Projects h1 {
    padding-top: 0;
    padding-bottom: 50px;
    font-size: 48px;
}

.project-item {
    width: 100%;
    margin-bottom: 80px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-item h3 {
    font-size: 36px;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 0;
    color: #333;
    text-transform: none;
}

.project-item h3:hover {
    transform: none;
}

.tech-stack {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    padding-left: 0;
}

.project-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    padding: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-item img:hover {
    transform: scale(1.02);
}

.project-description {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin: 30px 0;
    text-align: left;
    padding: 0;
}

.project-links {
    margin-top: 25px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.project-link {
    font-size: 18px;
    color: rgb(65, 65, 199);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0;
}

.project-link:hover {
    color: rgb(255, 196, 112);
    text-decoration: underline;
}

/* Hide old column styles */
.Column_projects_1,
.Column_projects_2 {
    display: none;
}

/* End of Projects section styling */

/* About section styling */

#About {
    width: 100%;
    /* This ensures the column takes up half of the page width */
    padding: 100px;
    background-color: #fefefe;
    /* Sets the background color of the columns with class Column_1 */
}

#About h1 {
    padding-top: 0;
    padding-bottom: 50px;
    font-size: 48px;
}

#About img:hover {
    transition: transform 1s;
    /* Transition lasts 1 second */
    transform: scale(1.1);
    /* Image is increased slightly when hovered over */
    filter: grayscale(7%);
}

.Column_about_1,
.Column_about_2 {
    width: 50%;
    /* This ensures the column takes up half of the page width */
    height: auto;
    /* This sets the height of the column to auto */
    background-color: white;
}

.Column_about_1 {
    float: right;
}

.Column_about_2 {
    float: left;
}

.Column_about_1 img {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    padding-top: 70px;
    border-radius: 300px;
    max-width: 65%;
    /* Ensures all images stay within the width of their container */
    height: auto;
    /* Sets the height of all images */
    filter: grayscale(20%);
}

.Column_about_2 p {
    text-align: left;
    font-size: 20px;
    color: #444;
    line-height: 1.6;
}

.Column_about_2 h2 {
    font-size: 28px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.Column_about_2 li {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
}

/* This inserts something after the elements with class "Row" */
.Row:after {
    content: "";
    /* By leaving this blank, we are allowing the footer (covered lower down) 
    to be displayed - removing it makes the footer overwrite a column */
    display: table;
    /* The display property specifies the type of display behavior; 
    the table value tells the browser to treat the element as a table */
    clear: both;
    /* This clears any other elements from floating on the left or the 
    right of an element */
}

/* End of About section styling */

/* Social media icons styling */

.social-media-icons {
    margin-top: 40px;
}

.social-media-icons a {
    text-decoration: none;
    color: #000;
    font-size: 24px;
}

.icons {
    margin: 0 15px;
}

.social-media-icons a:hover {
    color: #0073b1;
    /* LinkedIn color */
}

.social-media-icons a:hover .fa-instagram {
    color: #E4405F;
    /* Instagram color */
}

.social-media-icons a:hover .fa-github {
    color: #5f5e5e;
    /* GitHub color */
}

.social-media-icons a:hover .fa-vimeo {
    color: #1ab7ea;
    /* Vimeo color */
}

.social-media-icons a:hover .fa-file-pdf {
    color: #8792d8;
    /* File color */
}

/* End of social media icons styling */

/*Contact form styling*/

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
    background-color: rgb(255, 196, 112);
    color: rgb(81, 76, 76);
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 110px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 15px;
}

/* The popup form - hidden by default */
.form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
}

/* Add styles to the form container */
.form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

/* Full-width input fields */
.form-container input,
.form-container textarea {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* When the inputs get focus, do this */
.form-container input:focus,
.form-container textarea:focus {
    background-color: #ddd;
    outline: none;
}

/* Set a style for the submit button */
.form-container .btn {
    background-color: rgb(255, 196, 112);
    color: rgb(81, 76, 76);
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 15px;
}

/* Add a darker yellow background color to the cancel button */
.form-container .cancel {
    background-color: rgb(250, 161, 35);
}

/* Add hover effects to buttons */
.form-container .btn:hover,
.open-button:hover {
    font-weight: bold;
    background-color: #f9b454;
}

/* Add hover effects to cancel button */
.form-container .cancel:hover {
    font-weight: bold;
    background-color: #f9970e;
}

/*End of Contact form styling*/

/* Footer styling */
footer {
    padding: 2%;
    /* This gives the footer padding that is equal to 2% of the width of the element's area */
    background-color: white;
    color: rgb(64, 63, 63);
}

footer p {
    font-size: 15px;
}

/* End of styling for footer element */

/* Modifications for different screen sizes: */

/* iPad devices (820px - 1024px) */
@media (min-width: 820px) and (max-width: 1024px) {
    #homeimage {
        display: none;
        visibility: hidden;
    }

    .Home::before {
        display: none;
    }

    .Opening_Text {
        -webkit-animation: none;
        animation: none;
        background: linear-gradient(to bottom, rgba(206, 131, 2, 0.5), rgba(0, 0, 0, 0));
    }

    #hello-text {
        font-size: 70px;
        color: rgb(64, 63, 63);
    }

    #introduction-text {
        font-size: 42px;
        color: rgb(64, 63, 63);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 1024px) {

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 23px;
    }

    .Navbar a {
        font-size: 16px;
    }

    .Home img {
        visibility: hidden;
    }

    .Home::before {
        width: 2%;
        height: 2%;
        background: white;
    }

    #Projects {
        padding: 60px 5%;
        padding-top: 40px;
        margin-top: 0;
    }

    .projects-separator {
        margin-top: 20px;
        margin-bottom: 15px;
        width: 60px;
        height: 3px;
    }

    #Projects h1 {
        font-size: 36px;
        padding-top: 0;
    }

    .project-item {
        padding: 30px;
        margin-bottom: 60px;
    }

    .project-item h3 {
        font-size: 28px;
    }

    .project-description {
        font-size: 18px;
    }

    #About {
        padding: 60px 5%;
    }

    #About h1 {
        font-size: 36px;
        padding-top: 0;
        padding-bottom: 30px;
    }

    .Column_about_1,
    .Column_about_2 {
        width: 100%;
        float: none;
    }

    .Column_about_1 img {
        padding-top: 30px;
        max-width: 70%;
    }

    .Column_about_2 h2 {
        font-size: 24px;
    }

    .Column_about_2 p,
    .Column_about_2 li {
        font-size: 18px;
    }

}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {

    h1 {
        font-size: 22px;
    }

    /* Remove navbar animation on mobile */
    .Navbar {
        -webkit-animation: none;
        animation: none;
        position: relative;
        top: 0;
    }

    .Opening_Text {
        -webkit-animation: none;
        animation: none;
        margin-top: 0;
        margin-bottom: 0;
        padding: 15px;
        padding-top: 30px;
        padding-bottom: 20px;
        background: linear-gradient(to bottom, rgba(206, 131, 2, 0.5), rgba(0, 0, 0, 0));
    }
    /* Hide regular nav links on mobile */
    .Navbar .nav-links {
        display: none;
    }

    /* Mobile navbar hamburger menu */
    .Navbar .icon {
        display: flex !important;
        visibility: visible !important;
        position: absolute !important;
        right: 15px !important;
        top: 10px !important;
        padding: 10px !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        background-color: rgb(252, 251, 251) !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        width: 30px !important;
        height: 30px !important;
        border: 2px solid rgb(64, 63, 63) !important;
        float: none !important;
        margin: 0 !important;
        opacity: 1 !important;
    }

    .Navbar .icon span {
        width: 25px !important;
        height: 3px !important;
        background-color: rgb(64, 63, 63) !important;
        border-radius: 3px !important;
        display: block !important;
        margin: 3px 0 !important;
    }

    .Navbar .icon:hover {
        background-color: rgb(255, 196, 112);
    }

    .Navbar .icon:hover span {
        background-color: rgb(81, 76, 76);
    }

    .Navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 48px;
        left: 0;
        background-color: rgb(252, 251, 251);
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    }

    .Navbar .nav-links.responsive {
        display: flex;
    }

    .Navbar .nav-links a {
        float: none;
        display: block;
        text-align: left;
        padding: 14px 16px;
        font-size: 15px;
    }

    .Navbar a:hover {
        background-color: rgb(255, 196, 112);
        color: rgb(81, 76, 76);
    }


    #hello-text {
        font-size: 36px;
        color: rgb(64, 63, 63);
    }

    #introduction-text {
        font-size: 24px;
        margin-top: 15%;
        color: rgb(64, 63, 63);
    }

    h2 {
        font-size: 26px;
    }

    #Projects {
        padding: 40px 20px;
        padding-top: 40px;
        margin-top: 0;
    }

    .projects-separator {
        margin-top: 20px;
        margin-bottom: 15px;
        width: 60px;
        height: 3px;
    }

    #Projects h1 {
        font-size: 32px;
        padding-top: 0;
        padding-bottom: 30px;
    }

    .project-item {
        padding: 25px;
        margin-bottom: 50px;
    }

    .project-item h3 {
        font-size: 24px;
    }

    .tech-stack {
        font-size: 16px;
    }

    .project-description {
        font-size: 16px;
    }

    .project-link {
        font-size: 16px;
    }

    #About {
        padding: 40px 20px;
    }

    #About h1 {
        font-size: 28px;
        padding-top: 0;
        padding-bottom: 20px;
    }

    .Column_about_1,
    .Column_about_2 {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    .Column_about_1 img {
        padding: 20px;
        padding-top: 20px;
        max-width: 80%;
        display: block;
        margin: 0 auto;
    }

    .Column_about_2 h2 {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .Column_about_2 p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .Column_about_2 li {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .social-media-icons {
        margin-top: 30px;
    }

    .social-media-icons a {
        font-size: 20px;
        margin-right: 15px;
    }

    .form-container {
        max-width: 100%;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    li {
        font-size: 16px;
    }

    .Navbar a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .Row p {
        text-align: left;
        font-size: 16px;
    }

    #introduction-text {
        font-size: 24px;
        margin-top: 15%;
        color: rgb(64, 63, 63);
    }

    #Projects {
        padding: 30px 15px;
        padding-top: 40px;
        margin-top: 0;
    }

    .projects-separator {
        margin-top: 20px;
        margin-bottom: 15px;
        width: 50px;
        height: 3px;
    }

    #Projects h1 {
        font-size: 28px;
        padding-top: 0;
    }

    .project-item {
        padding: 20px;
        margin-bottom: 40px;
    }

    .project-item h3 {
        font-size: 22px;
    }

    .tech-stack {
        font-size: 14px;
    }

    .project-description {
        font-size: 15px;
    }

    #About {
        padding: 30px 15px;
    }

    #About h1 {
        font-size: 24px;
        padding-top: 0;
        padding-bottom: 15px;
    }

    .Column_about_1,
    .Column_about_2 {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    .Column_about_1 img {
        padding: 15px;
        padding-top: 15px;
        max-width: 90%;
        display: block;
        margin: 0 auto;
    }

    .Column_about_2 h2 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .Column_about_2 p {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .Column_about_2 li {
        font-size: 15px;
        margin-bottom: 6px;
        line-height: 1.6;
    }

    .social-media-icons {
        margin-top: 25px;
        text-align: center;
    }

    .social-media-icons a {
        font-size: 18px;
        margin: 0 10px;
    }

    .open-button {
        font-size: 12px;
        padding: 10px;
    }

    .form-container {
        max-width: 100%;
    }

    footer p {
        font-size: 12px;
    }
}