* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);

    background-color: rgba(245,245,245, 0.9);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    max-width: 90%;
    margin: 0 auto;

}
.home-icon {           /* the <a> wrapping the logo */
  grid-column: 2;
  justify-self: center;
}

.home-icon img {
  height: 100px;
  width: auto;
  display: block;
}

.menu-button{
  grid-column: 3;
  justify-self: end;
}



/* Menu Button */
.menu-button {
    position: absolute;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: #999;
  border-radius: 2px;
}



/* Menu Popup Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-popup {
    background: transparent;
    padding: 60px 80px;
    text-align: center;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s ease;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.menu-overlay.active .menu-popup {
    transform: scale(1) translateY(0);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.menu-items {
    list-style: none;
}

.menu-items li {
    margin: 30px 0;
}

.menu-items a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    color: white;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
}

.menu-items a:hover {
    transform: translateY(-3px);
    color: #ccc;
}

/* Scroll Wrapper Container */
.scroll-wrapper {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}





/* Content Sections */
.content-section {
    min-height: 100vh;
    padding: 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
}

.content-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: justify;
}

/* Section Backgrounds */
.section-1 {
    background-color: #f5f5f5;
}

.section-2 {
   background-color: #f5f5f5;
}

#secIMG {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 40px 40px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

#secIMG img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 4px;
    height: calc(100vh - 80px);
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    z-index: 999;
}

.scroll-progress-bar {
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: height 0.1s ease;
    height: 0%;
}

/* Fade in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    .menu-popup {
        padding: 40px 30px;
        margin: 20px;
    }

    .menu-items a {
        font-size: 20px;
    }

    .content-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .content-text {
        font-size: 16px;
    }

    .scroll-progress {
        display: none;
    }
}