.section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
}

.section a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.2rem;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.section a:hover{
    text-decoration: underline;
}

.section a:visited{
    color: var(--lightgrey);
}
  
.section.one   { background-image: url('../images/hero.jpg'); }
.section.two   { background-image: url('../images/hero2.jpg'); }
.section.three { background-image: url('../images/hero3.jpg'); }
.section.four  { background-image: url('../images/hero4.jpg'); }
.section.five  { background-image: url('../images/hero5.jpg'); }
.section.six  { background-image: url('../images/hero6.jpg'); }
.section.seven  { background-image: url('../images/hero7.jpg'); }
.section.eight  { background-image: url('../images/hero8.jpg'); }
  
/* Animated text box */
.text-box {
    opacity: 0;
    transition: all 1s ease-out;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 10px;
    max-width: 600px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
  
.text-box h2 {
    font-size: 2rem;
}
  
.text-box p {
    font-size: 1rem;
    margin-top: 1rem;
}
  
/* Animation types */
.fade-in    { transform: translateY(80px); }
.slide-left { transform: translateX(-80px); }
.slide-right { transform: translateX(80px); }
.zoom-in    { transform: scale(0.5); }
  
.visible.fade-in,
.visible.slide-left,
.visible.slide-right,
.visible.zoom-in {
    opacity: 1;
    transform: none;
}

  /* Responsive tweaks */
@media (max-width: 768px) {
    
    .text-box h2 { font-size: 1.5rem; }
    .text-box p { font-size: 0.95rem; }
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        background-attachment: scroll; /* Remove parallax for mobile */
        background-position: center center;
        padding: 1rem;
    }
}