/* General Styles */
a {
    color: lightblue;
    text-decoration: none;
  }
  
  a:visited {
    color: lightblue;
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 30;
    background-color: #f0f8ff;
}

#wrapper {
    margin-left:auto;
    margin-right:auto;
}

html,
body {
  background-color: #f0f8ff;
}

#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -2.7em;
  margin-left: -2.7em;
  width: 5.4em;
  height: 5.4em;
  background-color: #004d40;
}

#hill {
  position: absolute;
  width: 7.1em;
  height: 7.1em;
  top: 1.7em;
  left: 1.7em;
  background-color: transparent;
  border-left: .25em solid whitesmoke;
  transform: rotate(45deg);
}

#hill:after {
  content: '';
  position: absolute;
  width: 7.1em;
  height: 7.1em;
  left: 0;
  background-color: #004d40;
}

#box {
  position: absolute;
  left: 0;
  bottom: -.1em;
  width: 1em;
  height: 1em;
  background-color: transparent;
  border: .25em solid whitesmoke;
  border-radius: 15%;
  transform: translate(0, -1em) rotate(-45deg);
  animation: push 2.5s cubic-bezier(.79, 0, .47, .97) infinite;
}

@keyframes push {
  0% {
    transform: translate(0, -1em) rotate(-45deg);
  }
  5% {
    transform: translate(0, -1em) rotate(-50deg);
  }
  20% {
    transform: translate(1em, -2em) rotate(47deg);
  }
  25% {
    transform: translate(1em, -2em) rotate(45deg);
  }
  30% {
    transform: translate(1em, -2em) rotate(40deg);
  }
  45% {
    transform: translate(2em, -3em) rotate(137deg);
  }
  50% {
    transform: translate(2em, -3em) rotate(135deg);
  }
  55% {
    transform: translate(2em, -3em) rotate(130deg);
  }
  70% {
    transform: translate(3em, -4em) rotate(217deg);
  }
  75% {
    transform: translate(3em, -4em) rotate(220deg);
  }
  100% {
    transform: translate(0, -1em) rotate(-225deg);
  }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #004d40;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out;
}

button{
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    background-color: #b2dfdb;
    font-size: 20px;
    color: #004d40;
    text-align: center;
    font-weight: bold;
    transition-duration: 0.4s;
    
}
button:hover{
    background-color: #00251f; /* Green */
    color: #b2dfdb;
}

/* #loading-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: pulse 2s infinite;
} */

/* Blue-green pulse animation */
/* @keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0.5);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(0, 150, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0);
    }
} */

/* Top Section with Cascading Photos */
/* #top-section {
    display: flex;
    align-items: center;
    padding: 20px;
    position: absolute;
    overflow: hidden;
    background-color: #f0f8ff;
}

#profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    float: right;
    position:relative;
    transition: transform 1s ease-out;
    transform: translate(-1000px,0px);
}

.cascading-photos {
    position:relative;
    display: flex;
    gap: 20px;
    opacity: 0;
}

.cascading-photos img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
} reimplement upon testing


/* General section styling for large screens */
#top-section {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    padding: 0; /* Remove any extra padding */
    background-color: #f0f8ff;
    flex-direction: row; /* Align profile photo and cascading images in a row */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    height: 435px; /* Fill the entire viewport height */
}

/* Wrapper to combine the profile photo and cascading images */
#photo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden; /* Ensure content doesn’t overflow */
    margin: 0; /* Remove extra space */
}

/* Main profile photo styling */
#profile-photo {
    width: 20vw; /* Responsive size */
    max-width: 250px;
    aspect-ratio: 1 / 1; /* Ensure it stays circular */
    border-radius: 50%;
    transition: transform 1s ease-out;
    margin-right: 20px;
    transform: none; /* No translation */
}

/* Cascading photos styling */
.cascading-photos {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0; /* Remove extra space */
}

.cascading-photos img {
    width: 8vw;
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Delays for cascading images */
.cascading-photos img:nth-child(1) { transition-delay: 0.2s; }
.cascading-photos img:nth-child(2) { transition-delay: 0.4s; }
.cascading-photos img:nth-child(3) { transition-delay: 0.6s; }
.cascading-photos img:nth-child(4) { transition-delay: 0.8s; }
.cascading-photos img:nth-child(5) { transition-delay: 1s; }

/* Stacking on smaller screens (mobile) */
@media (max-width: 768px) {
    #top-section {
        flex-direction: column; /* Stack profile and cascading photos vertically */
        align-items: center;
        height: auto; /* Remove 100vh for mobile */
        padding: 20px 10px; /* Add minimal padding to fit content */
    }

    #photo-container {
        flex-direction: column;
        align-items: center;
    }

    #profile-photo {
        width: 40vw;
        max-width: 150px;
        margin-right: 0;
        margin-bottom: 10px; /* Minimal margin between profile and cascading photos */
    }

    .cascading-photos {
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .cascading-photos img {
        width: 15vw;
        max-width: 70px;
    }
}








/* Section Fade-in Styles */
.section {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#welcome #about, #projects, #photos, #contact{
    transition-delay: 0.4s;
}

/* Keyframes for pulsing effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

header {
    background-color: #037d69;
    padding: 20px;
    text-align: center;
}

p {
    padding: 20px 20px;
    background-color: #508a84;
    border-radius: 20px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
}

header h1 {
    color: #ffffff;
    float: center;
    padding-left: 20px;
    margin-top: 0;
}

nav ul {
    list-style: none;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    margin: 0;
}


nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    box-shadow: inset 0 0 0 0 #ffffff;
    padding: .25rem .50rem;
    transition: color.3s ease-in-out, box-shadow .3s ease-in-out;
}
nav ul li a:hover{
    box-shadow: inset 100px 0 0 0 #ffffff;
    color: #004d40;
}


.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* New Minimalist Geometric Design: Clean Rectangles */
.section {
    position: relative;
}

/* Horizontal and vertical semi-transparent blocks */
.section:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 60%;
    height: 150px;
    background-color: rgba(0, 150, 136, 0.1); /* Light teal rectangle */
    z-index: -1;
}

.section:after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 40%;
    height: 150px;
    background-color: rgba(0, 77, 64, 0.15); /* Darker green rectangle */
    z-index: -1;
}

/* Extra block for the about section */
#about:before {
    content: "";
    position: absolute;
    top: 150px;
    right: 15%;
    width: 250px;
    height: 100px;
    background-color: rgba(0, 150, 136, 0.2); /* Another teal block */
    z-index: -1;
}

h2 {
    text-align: center;
    color: #004d40;
    background-color: #b2dfdb;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    position: relative;
    z-index: 1; /* Ensures the text stays on top of background */
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    background-color: #508a84;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.project-item h3 {
    margin-bottom: 10px;
}

.project-item p {
    font-size: 14px;
}

/* Photos Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 5px solid #004d40;
}

/* Contact Form */
/* form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

form input, form textarea {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    border: 2px solid #004d40;
    border-radius: 8px;
}

form button {
    background-color: #004d40;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #00695c;
} */

.contact-section {
    padding: 50px 0;
    background-color: #f0f8ff;
    text-align: center;
}

.contact-info p {
    font-size: 1.2em;
    margin: 15px 0;
}

.contact-info a {
    color: lightblue; /* LinkedIn color */
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}


/* Footer */
footer {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 20px;
}
