:root {
    --section-margin: 15px;
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: #373636;
    font-family: 'Chakra Petch', sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 70px);
    color: #000;
    display: block;
    transform: translateX(-100px);
    margin-left: 3%;
    margin-right: 3%;
    opacity: 0;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.2rem, 2.5vw, 40px);
    color: #c0c0c0;
    font-weight: 700;
    margin-top: 20px;
    margin-left: 3%;
    margin-right: 3%;
    transform: translateY(-100px);

}

.scroll-section-text {
    
    font-size: clamp(1.25rem, 0.25vw, 30px);
    color: #000;
    margin-left: 3%;
    margin-right: 3%;
    font-weight: 300;
    line-height: 1.5;

}
.marker-highlight {
    background-color: #000;
    color: #ffffff;
    border: 1px solid rgba(0,0,0,0.1); /* Light gray border for a subtle effect */
  }

  .marker-highlight:hover {
    background-color: #ffffff;
    color: #000;
    border: 1px solid rgba(0,0,0,0.1); /* Light gray border for a subtle effect */
  }
  
  


.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.top-bar.scrolled {
    background-color: black;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
}

.logo {
    margin-left: 5%;
    font-weight: 400;
    font-size: 1.4rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
    color: black;
}

.top-bar.scrolled .logo {
    color: white;
}

.logo:hover {
    background-color: black;
    color: white;
    cursor: pointer;
}

.logo a, .logo a:visited {
    color: inherit;
    text-decoration: none;
}

.scroll-section {
    box-sizing: border-box;
    width: calc(100vw - 2 * var(--section-margin));
    min-height: 50vh;

    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 5px;
    background: #fffbf1; /* Changed to a light cream color */
    margin: var(--section-margin);
    flex-direction: column;
    gap: 0.1rem;
    border-radius: 10px;
}

.scroll-section:nth-child(odd) {
    background: rgba(63, 71, 62, 0.989);
}

.scroll-section:nth-child(odd) h1 {
    color: white;
}


.scroll-section:nth-child(odd) div {
    color: white;
}
.footer {
    position: fixed;
    bottom: -100px; /* Start hidden below viewport */
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
}

.footer.visible {
    transform: translateY(-100px);
}

.social-icon i {
    font-size: 24px;
    color: #333;
}

.social-icon:hover i {
    color: #666;
}

.hover-text {
    display: inline-block;  /* This is important for transforms to work */
    cursor: pointer;
    transform-origin: center;  /* Makes the scale animation centered */
}

/* Add responsive font sizes */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 4vw, 36px);
    }

    h2 {
        font-size: clamp(1rem, 2vw, 20px);
    }

    .scroll-section-text {
        font-size: clamp(1.25rem, 0.25vw, 30px);
    }

    .scroll-section {
        padding: 20px;
        text-align: center;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Add even smaller sizes for very small screens */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.5rem, 3.5vw, 32px);
    }

    h2 {
        font-size: clamp(0.9rem, 1.8vw, 18px);
    }

    .scroll-section-text {
        font-size: clamp(1.5rem, 3.5vw, 32px);
    }
}