:root {
    --primary-bg: #fff;
    --yellow: #f3c77c;
    --black-bg: #000000;
    --white-bg: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.5); /* Adjust the overlay color and opacity as needed */
}

@font-face{
    font-family: Adler;
    src:url(Adler.ttf);
}

h1, h2{
    font-family: Adler;
}

p{
    font-family: "Arial", serif;
}


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

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--black-bg);
    color: var(--primary-bg);
}

/* Cover Section */
.cover-section {
    position: absolute;
    top: 3;
    left: 0;
    width: 100%;
    height: 90%; /* 90% of the parent's height */
    background-image: url('../imgs/home-banner.gif');
    background-size: cover; /* Ensure the image covers the entire area */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0; /* Ensure it's behind other content */
}

/* More Button */
.cover-button {
    position: absolute;
    top: 59%; /* Adjust the top position as needed */
    left: 50%; /* Adjust the left position as needed */
    transform: translate(-50%, -50%); /* Center the button */
    z-index: 3; /* Ensure the button is above other content */
    transition: transform 0.3s ease; /* Smooth transition for the hover effect */
    margin-top: 10em;
}

.cover-button img {
    width: 170px; /* Adjust the width as needed */
    height: auto; /* Maintain the aspect ratio */
    cursor: pointer;
    animation: hoverAnimation 2s infinite; /* Add animation */
}

.cover-button:hover img {
    animation-play-state: paused; /* Pause animation on hover */
}

@keyframes hoverAnimation {
    0%, 100% {
        transform: translateY(0); /* Start and end at the original position */
    }
    50% {
        transform: translateY(-10px); /* Move up 10px at the midpoint */
    }
}

/* About Me Section */
.image img {
    margin-top: -02em;
    height: 100%;
    width: 20em;
    filter: grayscale(100%); /* Apply grayscale filter by default */
    transition: filter 2s ease, transform 2s ease; /* Slow down the transition effect for filter and transform */
    animation: wiggle 5s forwards; /* Play animation once and stop */
}

.image img:hover {
    filter: grayscale(0%); /* Remove grayscale filter on hover */
    animation: none; /* Stop wiggle animation on hover */
    transform: none; /* Ensure the image stays in its position */
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(.9deg); /* Reduce the degree of rotation */
    }
    40% {
        transform: rotate(-.9deg);
    }
    60% {
        transform: rotate(.9deg);
    }
    80% {
        transform: rotate(.9deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
}

.text {
    max-width: 33%; /* Adjust as needed */
    padding: 0 18px; /* Add some space between image and text */
    margin-top: 9em;
    color: black;
}

.text p {
    margin-left: 2em;
    padding-top: 1em;
    line-height: 1.35em;
    color: black;
}

/* Adjusted styles for the Learn More image */

h1, h2 {
    margin-left: 1.20em;
}

.about-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6em 0; /* Adjust padding as needed */
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
}

.photoid img {
    width: auto;
    height: 20em;
}

.text {
    max-width: 33%; /* Adjust as needed */
    padding: 0 18px; /* Add some space between image and text */
    margin-top: 9em;
}

.text p {
    margin-left: 2em;
    padding-top: 1em;
    line-height: 1.35em;
    color: black;
}

.text .learn-more-image {
    margin-left: 1.65em; /* Adjust margin as needed */
    margin-top: 2em;
    cursor: pointer;
    animation: hoverUpDown 2s infinite; /* Add hover up and down animation */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
    width: 9em;
}

.text .learn-more-image:hover {
    animation-play-state: paused; /* Pause animation on hover */
    transform: translateY(-2px); /* Subtle move up on hover */
}

@keyframes hoverUpDown {
    0%, 100% {
        transform: translateY(0); /* Start and end at the original position */
    }
    50% {
        transform: translateY(-3px); /* Move up 3px at the midpoint */
    }
}




/* Learn More Button */
.text .learn-more-image {
    margin-left: 1.65em; /* Adjust margin as needed */
    margin-top: 2em;
    cursor: pointer;
    animation: hoverUpDown 2s infinite; /* Add hover up and down animation */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
    width: 9em;
}

.text .learn-more-image:hover {
    animation-play-state: paused; /* Pause animation on hover */
    transform: translateY(-2px); /* Subtle move up on hover */
}

.text .learn-more-image:active {
    transform: translateY(2px); /* Move image down slightly on click */
}

@keyframes hoverUpDown {
    0%, 100% {
        transform: translateY(0); /* Start and end at the original position */
    }
    50% {
        transform: translateY(-3px); /* Move up 3px at the midpoint */
    }
}

/* Navigation Bar */
::-webkit-scrollbar {
    display: none;
}

#main {
    width: 100%;
    position: relative;
    background-color: var(--black-bg);
    overflow-x: hidden;
    min-height: 100%;
    font-family: Adler;
}

header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1; /* Ensure header is above the cover section */
}

.hamburger {
    display: none;
    padding: 0;
}

.hamburger-box {
    width: 30px;
}

.hamburger-inner::before {
    display: none;
}

.hamburger-inner,
.hamburger-inner::after {
    background: var(--primary-bg) !important;
    border-radius: 0px !important;
    height: 2px;
    width: 30px;
    transition-duration: 0.3s !important; /* Adjusted to 0.2s for faster appearance */
    transition-timing-function: ease-in-out !important;
}

#menu {
    display: flex;
    flex-direction: row;
    gap: 5%;
    align-items: center;
    justify-content: right;
    list-style: none;
    width: 100%;
    padding-inline: 20px;
    margin-top: 1em;
    position: relative;
}

#menu li {
    position: relative; /* Important for absolute positioning of hover image */
}

/* Navigation Bar */
/* Navigation Bar */
#menu li a {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    color: var(--primary-bg);
    overflow: hidden; /* Ensure the pseudo-element does not overflow */
}

#menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* Adjust the height of the underline */
    background-color: var(--white-bg);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.1s ease;
}

#menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.link-text {
    position: relative; /* Maintain normal flow */
    z-index: 1; /* Ensure text is above the hover image */
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Adjust as needed */
    height: 100%; /* Adjust as needed */
    object-fit: cover; /* Cover the container */
    opacity: 0; /* Hide the image by default */
    transition: opacity 0.3s ease;
    z-index: 2; /* Ensure the image is behind the text */
}

#menu li a:hover .hover-image {
    opacity: 1; /* Show the image on hover */
}


/* Mobile Navigation */
#responsive_menu {
    display: none; /* Hide by default */
    position: absolute;
    top: 100%;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background: var(--black-bg);
    padding: 24px;
    z-index: 99;
}

#responsive_menu li {
    overflow-y: hidden;
    margin-block: 12px;
}

#responsive_menu .link {
    text-transform: uppercase;
    display: block;
    text-decoration: none;
    color: var(--primary-bg);
    font-size: clamp(20px, 12.5vw, 50px);
    font-family: "Open Sans", sans-serif;
}

@media screen and (max-width: 1024px) {
    #menu {
        display: none;
    }
    .hamburger {
        display: inline-block;
    }
    #responsive_menu {
        display: block; /* Show in mobile view */
    }
}

/* Mobile Nav Menu Text */
.hero_text_container {
    width: 100vw;
    min-height: 65vh; /* Change from dvh to vh for compatibility */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "arial";
    color: var(--white-bg);
    z-index: 1;
}

ul.hero_text_title {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.hero_text_title li {
    font-size: 36vw;
    font-weight: 900;
    padding-inline: 2px;
    letter-spacing: -6px;
    color: var(--yellow);
    overflow-y: hidden;
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px 12px; /* Adjust padding for smaller screens */
    }
    
    #menu li a {
        font-size: 16px; /* Smaller font size for mobile */
    }

    .hero_text_container {
        min-height: 50vh; /* Adjust for mobile screens */
    }

    .hero_text_title li {
        font-size: 24vw; /* Smaller font size for hero text on mobile */
    }
}

@media screen and (max-width: 480px) {
    header {
        flex-direction: column; /* Stack header items vertically */
        align-items: flex-start;
    }

    .hero_text_title li {
        font-size: 20vw; /* Even smaller font size for very small screens */
    }
}

/* Project Section */
.projects-section {
    padding: 2em 0;
    text-align: center;
    margin-top: 10em;
}

p.head {
    font-family: 'Adler'; /* Different font family */
}

p.detail {
    color: #71797E;
}

.project-description{
    margin-top: 1em;
}

a.titlepro {
    text-decoration: none; /* Removes underline from link */
    color: inherit; /* Keeps the color of the <h1> text */
}

.titlepro {
    text-decoration: none; /* Remove underline by default */
    color: inherit; /* Inherit the color from parent or set your desired color */
}

.titlepro:hover {
    text-decoration: underline; /* Add underline on hover */
}

.details{
    margin-left: auto;
    margin-right: auto;
}


.header-project img {
    width: 50%; /* The image will take up 50% of its container's width */
    height: auto; /* Maintain the aspect ratio */
    max-width: 300px; /* Optional: Set a maximum width */
    margin-bottom: 3em;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 2em; /* Adjust the gap between the images as needed */
}

.titlepro{
    margin-top: 5.5em;
}

.project {
    flex: 1;
    max-width: 300px; /* Adjust as needed */
    position: relative;
    overflow: hidden; /* Ensures the overlay does not exceed the image boundaries */
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners to the images */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

.project:hover img {
    transform: scale(1.05); /* Slightly enlarge the image */
}

/* Overlay styles */
.project::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
    transition: opacity 0.3s ease;
    opacity: 1; /* Always visible by default */
    border-radius: 8px; /* Match the border-radius of the image */
    z-index: 1; /* Ensure the overlay is above the image */
}

.project:hover::before {
    opacity: 0; /* Hide the overlay on hover */
}

.project:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
}

/* Footer Styles */
footer {
    background-color: var(--black-bg);
    color: var(--primary-bg);
    padding: 2em 0;
    font-family: LiberationSans, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10em;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 0 1em;
}

.footer-section h2 {
    border-bottom: 2px solid var(--white-bg);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    font-family: Adler, serif;
    color: var(--primary-bg); /* Ensure the heading is also white */
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1em;
    padding: 0;
    margin: 0;
}

.social-links li {
    display: inline;
    margin-left: 2em;
}


.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover box-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    opacity: 0.8;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    font-family: Adler;
    margin-left: 2em;
    line-height: 1.4em;
}

.footer-nav a {
    color: var(--primary-bg); /* Ensure all links are white */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for color and transform */
}

.footer-nav a:hover {
    color: var(--yellow); /* Change color on hover */
    transform: translateY(-2px); /* Slight move up on hover */
}

.footer-bottom {
    text-align: center;
    padding: 1em 0;
    background-color: var(--black-bg);
    color: var(--primary-bg); /* Ensure the bottom text is also white */
    border-top: 1px solid var(--white-bg);
    font-size: 0.9em;
    margin-top: 1em;
    margin-bottom: -8em;
}

.footer-bottom p{
    font-family: Adler;
    font-size: .50em;
}
