/* Font Styles */
@font-face {
    font-family: 'Just Me Again Down Here';
    src: url('fonts/JustMeAgainDownHere-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Serif', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    margin-bottom: 15px;
}

h1 {
    margin-bottom: 30px;
    font-size: 40px;
}

::selection {
    background-color: yellow;
}

/*------------------------------------------------------------------------------------*/
/* Landing Page Section */
.LandingPage {
    height: 100vh;
}

.Logo {
    user-select: none;
    position: absolute;
    color: #000000;
    font-size: 100vw;
    font-family: 'Just Me Again Down Here', sans-serif;
    font-weight: 400;
    line-height: 1;
    word-wrap: break-word;
    left: 60%;
    top: 35%;
    transform: translate(-50%, -50%);
}

.Name {
    z-index: 999;
    left: 50px;
    top: 60px;
    position: fixed;
    color: black;
    font-size: 15px;
    font-family: 'PT Serif', sans-serif;
    font-weight: 500;
    line-height: 25.60px;
    word-wrap: break-word;
    cursor: pointer;
}

.NavigationBar {
    user-select: none;
    z-index: 999;
    left: 250px;
    top: 60px;
    position: fixed;
    color: black;
    font-size: 12px;
    font-family: 'PT Serif', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

/* Separate each group of links */
.nav-group {
    margin-bottom: 10px;
}

.NavigationBar a {
    margin-right: 20px;
    text-decoration: none;
    color: grey;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.NavigationBar a:hover {
    transform: scale(1.3);
    color: black;
    text-decoration: underline;
    background-color: yellow;
}

/*------------------------------------------------------------------------------------*/
/* Introduction Section */
#introduction {
    display: flex;
    flex-direction: column;
    color: black;
    font-size: 20px;
    font-family: 'PT Serif', sans-serif;
    justify-content: center;
    align-items: flex-start;
    height: calc(100vh - 50px);
    /* Adjust height to account for the navbar */
    text-align: left;
    padding-left: 30vw;
    /* Adjust left padding as necessary */
    padding-right: 30vw;
    /* Adjust left padding as necessary */
}

#introduction img {
    user-select: none;
    max-width: auto;
    height: 35px;
    border-radius: 40%;
}

.wave {
    display: inline-block;
    animation: wave-animation 1.5s infinite;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(0deg); }
    60% { transform: rotate(20deg); }
    80% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/*------------------------------------------------------------------------------------*/
/* Projects Section */
.Projects {
    padding: 50px 20px;
    text-align: center;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    /* Ensure that the card has a minimum height */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    /* Smooth transitions */
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    /* Stretch cards to equal height */
}

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

.project img {
    width: 100%;
    /* Ensure image fills the container */
    height: auto;
    display: block;
    /* Remove gaps below images caused by inline-block behavior */
    border-radius: 10px;
}

.project-title {
    padding-top: 10px;
}

.project-description {
    color: grey;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
    opacity: 1;
}

.highlight-link {
    color: grey;
    text-decoration: underline;
    transition: font-weight 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.highlight-link:hover {
    font-weight: semi-bold;
    background-color: yellow;
}

/*------------------------------------------------------------------------------------*/
/* Creativity section styling */
.Creativity {
    background-color: #f5f5f5;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 90%;
}

/* iFrame container styling for responsiveness */
.Creativity iframe {
    border: 3px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive grid for iframes */
.Creativity {
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

/*------------------------------------------------------------------------------------*/
/* Contact Section */
.Contact {
    padding: 80px 20px;
    margin-bottom: 50px;
    background-color: #fff;
    text-align: center;
}

.Email {
    margin-bottom: 30px;
}

.EmailTitle {
    margin-bottom: 10px;
    color: #222;
}

.EmailContent {
    font-weight: bold;
    font-size: 25px;
    transition: color 0.3s ease-in-out;
    background-color: yellow;
}

.EmailContent:hover {
    text-decoration: underline;
}

.MessageText {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.ContactIcons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.ContactIcons a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.ContactIcons a img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/*------------------------------------------------------------------------------------*/
/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .Logo {
        font-size: 170vw;
        left: 55%;
        top: 50%;
    }

    .Projects {
        padding: 30px 10px;
    }

    #project {
        grid-template-columns: 1fr;
    }

    .Contact {
        padding: 30px 10px;
    }

    #introduction {
        height: auto;
        /* Let the height adjust automatically on small screens */
        padding-top: 20px;
        /* Reduce padding for smaller screens */
        font-size: 20px;
        /* Adjust font size for smaller screens */
        padding: 40px;
    }
    
        .Creativity iframe {
            width: 90%; /* Adjust width for smaller screens */
        }

}

@media (max-width: 480px) {

    .Logo {
        font-size: 190vw;
        left: 50%;
        top: 50%;
    }
}

/* Styles for the hamburger menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle .bar {
    background: black;
    height: 2px;
    width: 15px;
    margin: 2px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Transform bars into an 'X' when menu is open */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Animated menu */
@media (max-width: 768px) {
    .Name {
        position: static; /* This makes it flow normally with the document */
        padding: 10px;
        margin-top: 50px;
        margin-left: 20px;
    }
    .NavigationBar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        text-align: left;
        padding-top: 60px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
    }

    .NavigationBar a {
        display: block;
        padding: 15px 30px;
        font-size: 18px;
        color: white;
        text-decoration: none;
        transition: background 0.3s ease;
    }

    .NavigationBar a:focus {
        text-decoration: underline;
    }

    .NavigationBar a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Change text color and background when the menu is open */
.menu-toggle.open + .NavigationBar a {
    color: white;
}

    /* Show menu when active */
    .NavigationBar.open {
        left: 0;
    }

    /* Show the menu button */
    .menu-toggle {
        display: flex;
    }
}