:root {
    --primary-color: #1B4D3E;
    --secondary-color: #333333;
    --accent-color: #d9534f;
    --bg-color: #FFFFFF;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --header-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    animation: fadeInBody 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInBody {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

h2.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.col-span-2 {
    grid-column: span 2;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .col-span-2 {
        grid-column: auto;
    }
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.text-center { text-align: center; }

#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header {
    background-color: var(--primary-color);
    backdrop-filter: blur(10px);
    color: #ffffff;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0;
}

header nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    border-bottom-color: var(--accent-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #143a2f;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/Baerensee.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

section {
    padding: 80px 0;
}

.info-box {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* .slideshow-card {
    background: none;
    border-left: 5px solid var(--accent-color);
} */

.slideshow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 15s infinite;
    z-index: 0;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlide {
    0% { opacity: 0; }
    6% { opacity: 1; }
    33% { opacity: 1; }
    39% { opacity: 0; }
    100% { opacity: 0; }
}

.relative-z {
    position: relative;
    z-index: 2;
    color: white;
}

/* .slideshow-card h3 {
    color: white;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.slideshow-card .feature-list li {
    color: white;
} */

.feature-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-content {
    padding: 25px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Price Card Styles */
.price-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%; /* Fill height to match neighbors */
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-color);
}

.price-table td, .price-table th {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background-color: #f9f9f9;
}

.price-table td:last-child {
    font-weight: bold;
    text-align: right;
    color: var(--primary-color);
    white-space: nowrap;
}

.testimonial {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial::before {
    content: "“";
    font-size: 4rem;
    color: #eee;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial .text {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial .author {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item .question {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

/* Pricing Teaser Section */
.pricing-teaser-card {
    background-color: #f4f1ea;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s;
}

.pricing-teaser-card:hover {
    transform: translateY(-5px);
}

.pricing-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1;
}

.pricing-teaser-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: left;
    border-bottom: none; /* Override if needed */
}

.pricing-teaser-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left;
}

.pricing-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.pricing-features li .icon {
    margin-right: 12px;
    color: #4CAF50;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.btn-green-light {
    background-color: #4CAF50;
    color: white;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    padding: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: none; /* Ensure no uppercase if generic btn has it */
}

.btn-green-light:hover {
    background-color: #43a047;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    padding: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-accent:hover {
    background-color: #c9302c;
}

.pricing-btn-container {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.pricing-btn-container .btn,
.pricing-btn-container .btn-green-light,
.pricing-btn-container .btn-accent {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.95rem;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex: 0 1 210px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-member p {
    color: #666;
    font-size: 0.95rem;
}

.amenity-card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.view-details-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    text-align: center;
    border: none;
    border-top: 1px solid #eee;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.view-details-btn:hover {
    background-color: #e2e6ea;
    color: var(--accent-color);
}

#global-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling within lightbox container if possible */
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Global Lightbox Styles - defined before usage */
#global-lightbox {
    display: none;
    position: fixed;
    z-index: 2002;
    padding-top: 0; /* Changed from 50px */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#global-lightbox .lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

#global-lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

#global-lightbox .close-lightbox:hover,
#global-lightbox .close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#global-lightbox .lightbox-caption {
    margin: 10px 0 0 0;
    display: block;
    width: auto;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
    min-height: 50px;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity:0} 
    to {transform:scale(1); opacity:1}
}

@media only screen and (max-width: 700px){
    #global-lightbox .lightbox-content {
        max-width: 95%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:active {
    transform: scale(0.95);
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* General modal content style */
.modal-content {
    background-color: var(--bg-color);
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-modal .modal-content {
    background-color: transparent;
    box-shadow: none;
    border: none;
    width: 95%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6) 70%, transparent);
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-caption-bar h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.gallery-caption-bar p {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 20px;
}

.prev-slide, .next-slide {
    pointer-events: auto;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.prev-slide:hover, .next-slide:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2001;
    color: #333;
    background-color: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.gallery-modal .close-modal {
    color: white;
    background-color: rgba(0,0,0,0.5);
}

.gallery-modal .close-modal:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Sticky Header Styles Removed - now handled in main header block */

/* Gallery Styles (moved from index.html and enhanced) */
.gallery-grid {
    display: grid;
    /* Changed minmax from 250px to 300px for larger images */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    /* Increased height from 200px to 300px */
    height: 300px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Added shadow */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Slower transition */
}

/* Performance: reduce rendering cost for offscreen content */
.card, .info-box, .gallery-item, .faq-item, .team-member, .activity-row, .price-card, .pricing-teaser-card {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.hidden-gallery-item {
    display: none;
}

.hidden-gallery-item.visible {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

.hidden-gallery-item {
    display: none;
}

@media (max-width: 768px) {
    .gallery-caption-bar h3 { 
        font-size: 1.3rem; 
        margin-bottom: 5px;
    }
    
    .gallery-caption-bar p { 
        font-size: 0.85rem; 
        line-height: 1.3;
    }
    
    .gallery-modal .modal-content { 
        height: 60vh;
        margin-top: 20vh;
        width: 95%;
    }

    .gallery-slide img {
        object-fit: contain;
        background-color: #000;
    }

    .prev-slide, .next-slide {
        width: 40px;
        height: 40px;
        font-size: 20px;
        background-color: rgba(255,255,255,0.15);
    }
    
    .gallery-nav {
        padding: 0 5px;
    }

    .gallery-modal .close-modal {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.activity-row:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-img {
    flex: 1;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-text {
    flex: 1;
}

@media (max-width: 768px) {
    :root {
        --header-height: 90px;
    }

    .header-inner {
        padding: 0 16px;
    }

    header nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    .logo img {
        height: 80px;
    }

    .nav-toggle {
        display: block;
        color: #ffffff;
    }

    header nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }
    
    .logo {
        flex: 0 1 auto;
        margin-right: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 0 0 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 50vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }

    .nav-links::-webkit-scrollbar {
        width: 6px;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,0.3);
        border-radius: 3px;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        opacity: 0; /* Hidden initially for animation */
        animation: fadeInItem 0.4s ease-out forwards;
    }
    
    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { animation-delay: 0.4s; }

    @keyframes fadeInItem {
        from { 
            opacity: 0; 
            transform: translateY(-10px); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0); 
        }
    }
    
    .nav-links a {
        display: block;
        padding: 10px 12px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links li:last-child a {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .nav-links .btn {
        margin-top: 10px;
        display: inline-block;
        width: auto;
        padding: 10px 25px;
    }

    .activity-row, .activity-row:nth-child(even) {
        flex-direction: column;
    }
    .activity-img {
        width: 100%;
        height: 250px;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2.section-title {
        font-size: 1.8rem;
    }
}
