* { box-sizing: border-box; }

#MainHeader {
    background-color: #333;
    text-align: center;
    color: white;
    padding: 2%;
    font-family: Noto Sans, sans-serif;
    letter-spacing: 10px;
}

.GradDIV0 {
  background: linear-gradient(to bottom, #444444, #343434);
}

.GradDIV1 {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
}

.greeting-animation {
  animation: greetAnimation 8s ease-in-out forwards;
  opacity: 0;
  transform: scale(1);
}

@keyframes greetAnimation {
  0% { opacity: 0; transform: scale(1.2);  }
  50% { opacity: 1; transform: scale(1.8); letter-spacing: 0.2em;}
  80% { opacity: 0; transform: scale(1.2); }
}

@keyframes FadeIn {
  0% {opacity: 0;}
  60% {opacity: 0;}
  60% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes FadeInFast {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes FadeOut {
  0% {opacity: 1;}
  
  100% {opacity: 0;}
}

/* Add to the END of your existing style.css file */

/* Reset and Base Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    height: 100vh;
    height: -webkit-fill-available;
    
}

body {
    margin: 0;
    padding: 0;
    
    height: 100vh;
    height: -webkit-fill-available;
    width: 100vw;
    font-family: sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    
    color: white;
}

/* Layer Styles */
.background-layer {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.middle-layer {
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    
}

.top-layer {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    overflow-x: hidden;
     overflow-y: auto; /* Make top layer scrollable */
   
}

/* Middle Layer Content */
.middle-container {
    width: 100%;
    text-align: center;
    margin-top: 59vh;
    position: absolute;
}

.top-container {
    width: 100%;
    height: auto;
    text-align: center;
    margin-top: 1vh;
    
    background-color: transparent;
    position: absolute;

}

.portfolio-title {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    font-size: 3vh;
    letter-spacing: 0.4em;
    margin-bottom: 2vh;
}

.button-container {
    width: 100%;
    text-align: center;
    padding-top: 11vh;
}

/* Navigation Buttons */
.nav-button {
    color: white;
    font-size: 2vh;
    text-align: center;
    border: 1px solid white;
    border-radius: 0%;
    background: transparent;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: auto; 
    height: 4vh;
  
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0px 5vw;
}
.button {
    color: white;
    font-size: 2vh;
    text-align: center;
    border: 0px solid white;
    border-radius: 20%;
    background: transparent;
    
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: auto;
    height: auto;
    margin-left: 1vh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 5px;
    
    background: 
        radial-gradient(circle at center, 
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%);
}

.button:hover {
    transform: scale(1.1) translateY(-2px);
   
    background: 
        radial-gradient(circle at center, 
            rgba(255, 255, 255, 0.2) 0%,
            transparent 70%);
}

.button:active {
    transform: scale(0.95) translateY(1px);
   
    transition: all 0.1s ease;
}

/* Specific button margin adjustments */
.first-button {
    margin-left: 0;
    margin-right: 3vw;
}

.middle-button {
    margin-left: 3vw;
    margin-right: 3vw;
}

.last-button {
    margin-left: 3vw;
    margin-right: 0;
}

/* Progress Bar Animation */
@keyframes progressBar {
    0% { 
        width: 0%; 
        left: 0; 
    }
    50% { 
        width: 100%; 
        left: 0; 
    }
    100% { 
        width: 0%; 
        left: 100%; 
    }
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    width: 0;
    animation: none;
    transition: width 0.3s ease;
}

.projects-container {
    width: 100%;
    text-align: center;

    margin-top: 5vh;
    position: absolute;
}