/* Theme Variables */
:root {
    /* Light mode colors */
    --bg-primary: #f5f9f6;
    --bg-secondary: #ffffff;
    --text-primary: #1e2d24;
    --text-secondary: #44403c;
    --accent: #7c916f;
    --accent-hover: #cddda9;
    --highlight: #c2a679; /* Light golden brown */
    --highlight-dark: #a38558;
    --border-color: #dbe5df;
    --card-bg: #ffffff;
    
    /* Additional custom variables */
    --color-nav-bg: rgba(255, 255, 255, 0.95);
    --color-hover: rgba(58, 139, 104, 0.1);
    --color-shadow: rgba(30, 45, 36, 0.1);
    --color-button-text: #ffffff;
    --color-carousel-nav-bg: rgba(255, 255, 255, 0.9);
    --color-carousel-nav-hover: #ffffff;
    --color-carousel-nav-shadow: rgba(0, 0, 0, 0.1);
    --color-lazy-load-bg: #f5f9f6;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-primary: #1b1f1d;
    --bg-secondary: #262c29;
    --text-primary: #e0e6e3;
    --text-secondary: #a8bfb2;
    --accent: #7c916f;
    --accent-hover: #cddda9;
    --highlight: #c2a679;
    --highlight-dark: #a38558;
    --border-color: #3a4a42;
    --card-bg: #2b322f;
    
    /* Additional custom variables for dark mode */
    --color-nav-bg: rgba(43, 50, 47, 0.95);
    --color-hover: rgba(87, 194, 139, 0.1);
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-button-text: #1b1f1d;
    --color-carousel-nav-bg: rgba(43, 50, 47, 0.9);
    --color-carousel-nav-hover: rgba(43, 50, 47, 1);
    --color-carousel-nav-shadow: rgba(0, 0, 0, 0.3);
    --color-lazy-load-bg: #262c29;
}

/* Base styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    background-color: var(--color-nav-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p, li:not(.text-secondary) {
    color: var(--text-secondary);
}

.text-secondary {
    color: var(--text-secondary);
    color: var(--text-secondary) !important;
}

.text-gray-800 {
    color: var(--text-primary);
}

.hover\:bg-gray-100:hover {
    background-color: var(--color-hover);
}

.bg-gray-100 {
    background-color: var(--color-hover);
}

.bg-accent {
    background-color: var(--accent);
}

.hover\:text-accent:hover {
    color: var(--accent);
}

.text-accent {
    color: var(--accent);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 var(--color-shadow);
}

/* Button utility class */
.button {
    background-color: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--accent-hover);
}

/* Modern Card Styles */
.card {
    @apply bg-white/90 dark:bg-gray-800/90 backdrop-blur-sm;
    @apply rounded-lg shadow-md transition-all duration-300;
    @apply border border-gray-100 dark:border-gray-700;
    @apply p-6;
    transform: translateY(0);
}

.card:hover {
    @apply shadow-lg;
    transform: translateY(-2px);
}

/* Interactive Card - for clickable cards */
.card-interactive {
    @apply cursor-pointer;
    @apply hover:bg-gray-50/90 dark:hover:bg-gray-700/90;
}

/* Card with prominent hover */
.card-prominent {
    @apply hover:ring-2 hover:ring-accent hover:ring-opacity-50;
}

/* Card Header */
.card-header {
    @apply flex items-center justify-between mb-4;
}

/* Card Title */
.card-title {
    @apply text-xl font-semibold text-gray-900 dark:text-white;
}

/* Card Content */
.card-content {
    @apply text-gray-600 dark:text-gray-300;
}

/* Card Footer */
.card-footer {
    @apply mt-4 pt-4 border-t border-gray-100 dark:border-gray-700;
}

/* Card Grid Layout */
.card-grid {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
}

/* Card with Image */
.card-with-image {
    @apply overflow-hidden;
}

.card-with-image img {
    @apply w-full h-48 object-cover rounded-t-lg;
    @apply transition-transform duration-300;
}

.card-with-image:hover img {
    transform: scale(1.05);
}

/* Feature Cards - Vertical Layout */
.highlight-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(8px);
}

.dark .highlight-box {
    background-color: rgba(31, 41, 55, 0.95);
    border-color: rgba(75, 85, 99, 0.5);
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.feature-card:hover {
    background-color: rgba(194, 166, 121, 0.1);
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--highlight);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Stats Card */
.stats-card {
    @apply text-center p-6;
    @apply bg-gradient-to-br from-white/90 to-gray-50/90 dark:from-gray-800/90 dark:to-gray-900/90;
    @apply backdrop-blur-sm;
}

.stats-number {
    @apply text-3xl font-bold text-accent;
}

.stats-label {
    @apply text-sm text-gray-600 dark:text-gray-400;
}

/* Section container styles */
.section-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--color-shadow);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.section-container:hover {
    box-shadow: 0 6px 16px var(--color-shadow);
    transform: translateY(-2px);
}

.section-container h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-container h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section-container p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Ensure lists have appropriate spacing */
.section-container ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-container li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Section grid layout */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section-grid-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.section-grid-item:hover {
    box-shadow: 0 4px 12px var(--color-shadow);
    transform: translateY(-2px);
}

/* Button styles */
.btn-primary {
    background-color: var(--accent);
    color: var(--color-button-text);
    border: 1px solid var(--accent);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--highlight);
    color: var(--text-primary);
    border: 1px solid var(--highlight);
}

.btn-secondary:hover {
    background-color: var(--highlight-dark);
}

/* Navigation specific styles */
.nav-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Language switcher styles */
#lang-switcher {
    position: relative;
    z-index: 1000;
}

#lang-switcher button {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

#lang-dropdown {
    position: absolute;
    z-index: 1001;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#lang-dropdown[x-show="true"] {
    display: block !important;
}

/* Theme toggle button */
.theme-toggle {
    background: var(--accent);
    color: var(--color-button-text);
    border: 1px solid var(--accent);
}

/* Lazy loading placeholder */
.lazy-load-placeholder {
    background: var(--color-lazy-load-bg);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Custom style for active language button */
.lang-button.active {
    font-weight: 600;
    color: var(--color-button-text);
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Basic transition for content switching */
.content-section {
    transition: all 0.3s ease-in-out;
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px var(--color-shadow), 0 2px 4px -1px var(--color-shadow);
    margin-bottom: 2rem;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 75vh;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

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

.carousel-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-primary) var(--highlight);
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: var(--highlight);
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--text-primary);
    border-radius: 3px;
}

.carousel-thumbnail {
    aspect-ratio: 4/3;
    width: 100%;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    object-fit: cover;
}

.carousel-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.carousel-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--accent);
}

/* Navigation buttons */
.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-carousel-nav-bg);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--color-carousel-nav-shadow);
}

.carousel-nav-button:hover {
    background: var(--color-hover);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 50;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 400px;
}

/* Sticky Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--color-shadow);
    z-index: 1000;
}

/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--color-button-text);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px var(--color-shadow);
    font-size: 1.5rem;
    z-index: 1000;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--color-shadow);
}

/* Language Switcher Enhancement */
.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-button:hover {
    background: var(--color-hover);
}

.lang-button.active {
    background: var(--accent);
    color: var(--color-button-text);
    border-color: var(--accent);
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

/* Tab styles */
.tab-button {
    @apply px-4 py-2 font-medium border-b-2 focus:outline-none transition-colors duration-150;
}

.tab-button.active {
    @apply text-accent border-accent;
}

.tab-button:hover:not(.active) {
    @apply text-accent border-transparent;
}

.tab-pane {
    @apply pt-4;
}

/* Lazy loading styles */
.lazy-loading {
    opacity: 0;
    transition: opacity 0.3s;
    background-color: var(--color-lazy-load-bg);
}

.lazy-loaded {
    opacity: 1;
    transition: opacity 0.3s;
}

/* Tabs styling */
.tab-button:hover:not(.active) {
    color: var(--accent);
    background-color: var(--color-hover);
    border-color: var(--border-color);
}

.apartment-tab-button:hover, 
.season-tab-button:hover,
.tab-button:hover {
    color: var(--accent) !important;
    background-color: var(--color-hover);
}

/* Scroll Animations */
.fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

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

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for cards in a grid */
.card-grid > * {
    animation-delay: calc(var(--animation-order, 0) * 100ms);
}

/* Enhanced hover effects */
.section-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-shadow);
}

/* Card hover effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    transform: translateY(-4px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 8px 24px var(--color-shadow);
}

/* Stats card hover effect */
.stats-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px var(--color-shadow);
}

/* Progress bar styles */
.scroll-progress {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    transform-origin: left;
}

/* Gallery and Lightbox Styles */
.gallery-image {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: zoom-in;
}

.gallery-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

#lightbox {
    backdrop-filter: blur(8px);
}

#lightbox img {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#lightbox.flex img {
    opacity: 1;
    transform: scale(1);
}

/* Gallery grid layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px var(--color-shadow);
    aspect-ratio: 4/3;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

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

/* Image loading animation */
.gallery-image.loading {
    animation: imagePulse 1.5s ease-in-out infinite;
}

@keyframes imagePulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Enhanced Section Transitions */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Perspective-style card animations */
.feature-card, .stats-card, .card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--animation-order, 0) * 100ms);
}

.section-visible .feature-card,
.section-visible .stats-card,
.section-visible .card {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover interactions */
.feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
        0 20px 25px -5px var(--color-shadow),
        0 8px 10px -6px var(--color-shadow);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on your header height */
}

/* Enhanced progress bar */
.scroll-progress {
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        var(--accent-hover) 50%,
        var(--accent) 100%
    );
    background-size: 200% 100%;
    animation: gradient 2s linear infinite;
}

@keyframes gradient {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Card grid stagger effect */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-grid > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--animation-order, 0) * 150ms);
}

.section-visible .card-grid > * {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced image hover effects */
.gallery-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

/* Enhanced CTA Buttons */
.cta-primary {
    @apply bg-accent text-white font-semibold px-8 py-4 rounded-lg;
    @apply transform transition-all duration-300;
    @apply shadow-lg hover:shadow-xl;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.cta-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
}

.cta-secondary {
    @apply border-2 border-accent text-accent font-semibold px-8 py-4 rounded-lg;
    @apply transform transition-all duration-300;
    @apply hover:bg-accent hover:bg-opacity-10;
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

/* Remove floating CTA styles */
.floating-cta,
.floating-cta.visible,
.floating-cta-button,
.floating-cta-button::before,
.floating-cta-button:hover,
.floating-cta-button:hover::before,
.floating-cta-button > *,
.floating-cta-secondary,
.floating-cta-secondary::before,
.floating-cta-secondary:hover,
.cta-pulse::after {
    display: none !important;
}

/* Button pulse animation */
.cta-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent);
    border-radius: inherit;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.fab {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #3a8b68;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 49;
}

.fab:hover {
    transform: scale(1.1);
    background-color: #2d6a4f;
}

.fab-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 200px;
}

.fab-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-menu-item {
    background-color: white;
    color: #3a8b68;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    width: 100%;
}

.fab-menu-item:hover {
    background-color: #f0f9f4;
    transform: translateX(-5px);
    box-shadow: 0 6px 8px -2px rgba(0, 0, 0, 0.15);
}

.fab-menu-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Quick Facts Cards */
.card {
    @apply bg-white dark:bg-gray-800;
    @apply rounded-lg shadow-md;
    @apply border border-gray-100 dark:border-gray-700;
    transition: all 0.3s ease;
}

.card:hover {
    @apply shadow-lg;
    transform: translateY(-2px);
}

/* Remove any hiding styles */
.section-container {
    opacity: 1 !important;
    transform: none !important;
}

.section-container .card,
.section-container .highlight-box {
    opacity: 1 !important;
    transform: none !important;
}

/* Hero Section Modernization */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    background: linear-gradient(135deg, #3a8b68 0%, #2d6a4f 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -15px rgba(58, 139, 104, 0.25);
}

.hero-cta svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-indicator svg {
    width: 1.5rem;
    height: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Quick Stats Cards */
.quick-stat-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(0);
    backdrop-filter: blur(8px);
}

.dark .quick-stat-card {
    background-color: rgba(31, 41, 55, 0.9);
    border-color: rgba(75, 85, 99, 0.5);
}

.quick-stat-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
}

.dark .quick-stat-card:hover {
    background: linear-gradient(135deg, rgba(31,41,55,0.95) 0%, rgba(31,41,55,0.85) 100%);
}

.stat-icon-wrapper {
    background-color: rgba(58, 139, 104, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.quick-stat-card:hover .stat-icon-wrapper {
    background-color: var(--accent);
}

.stat-icon {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.quick-stat-card:hover .stat-icon {
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(8px);
}

.dark .feature-card {
    background-color: rgba(31, 41, 55, 0.9);
    border-color: rgba(75, 85, 99, 0.5);
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
}

.dark .feature-card:hover {
    background: linear-gradient(135deg, rgba(31,41,55,0.95) 0%, rgba(31,41,55,0.85) 100%);
}

.feature-icon-wrapper {
    background-color: rgba(58, 139, 104, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--accent);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Simple Features List */
.highlight-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(8px);
}

.dark .highlight-box {
    background-color: rgba(31, 41, 55, 0.95);
    border-color: rgba(75, 85, 99, 0.5);
}

.features-list {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-check {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--highlight);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Modern Gallery Styles */
.gallery-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gallery-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.gallery-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 80%, transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide-caption h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-slide-caption p {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.gallery-slide:hover .gallery-slide-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.gallery-progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.active::after {
    border-color: var(--accent);
}

.gallery-thumb:not(.active) {
    opacity: 0.7;
}

.gallery-thumb:not(.active):hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 0 2rem rgba(0,0,0,0.5);
}

/* Amenities Section Styles */
.amenity-category {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.amenity-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px var(--color-shadow);
}

.amenity-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amenity-item > div {
    background-color: var(--bg-primary);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.amenity-item > div:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.amenity-item svg {
    transition: transform 0.3s ease;
}

.amenity-item > div:hover svg {
    transform: scale(1.2);
}

/* Dark mode adjustments */
.dark .amenity-category {
    background-color: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(8px);
}

.dark .amenity-item > div {
    background-color: rgba(31, 41, 55, 0.4);
}

/* Using the Apartment & Rules Section Styles */
.instructions-nav {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.instructions-nav::-webkit-scrollbar {
    display: none;
}

.instruction-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.instruction-tab:hover {
    color: var(--accent);
    background: var(--color-hover);
}

.instruction-tab.active {
    color: white;
    background: var(--accent);
}

.instruction-tab.active svg {
    color: white;
}

.instruction-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.instruction-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px var(--color-shadow);
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.instruction-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border-radius: 0.75rem;
    color: white;
    transition: all 0.3s ease;
}

.instruction-content:hover .instruction-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.instruction-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.instruction-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.instruction-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.instruction-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.instruction-list-item:hover {
    transform: translateX(0.5rem);
    background: var(--color-hover);
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rule-card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px var(--color-shadow);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rule-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    border-radius: 0.75rem;
    color: white;
    transition: all 0.3s ease;
}

.rule-card:hover .rule-icon {
    transform: scale(1.1) rotate(5deg);
}

.rule-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rule-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Activities Section Styles */
.season-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.season-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.season-button svg {
    transition: transform 0.3s ease;
}

.season-button:hover svg {
    transform: rotate(15deg);
}

.activity-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px var(--color-shadow);
}

.activity-card-image {
    position: relative;
    overflow: hidden;
}

.activity-card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover .activity-card-image img {
    transform: scale(1.1);
}

.activity-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover .activity-card-image::after {
    opacity: 1;
}

.activities-content {
    position: relative;
    min-height: 400px;
}

.activities-content > div {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.activities-content > div[x-show="false"] {
    opacity: 0;
    transform: translateY(20px);
}

.activities-content > div[x-show="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* Location Section Styles */
.stats-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px var(--color-shadow);
}

.stats-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.tab-button {
    position: relative;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding-top: 2rem;
}

/* Map container styles */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

/* Webcam styles */
.webcam-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.webcam-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

/* Refresh button styles */
.refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.refresh-button svg {
    animation: spin 1s linear infinite;
    animation-play-state: paused;
}

.refresh-button:hover svg {
    animation-play-state: running;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Improved touch targets */
    .nav-link, 
    .fab-menu-item,
    .instruction-tab,
    .season-button {
        padding: 0.75rem 1rem;
        min-height: 44px; /* iOS minimum touch target */
    }

    /* Better spacing for mobile */
    .section-container {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 3rem;
    }

    /* Adjust font sizes for mobile */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    /* Improved mobile gallery */
    .gallery-carousel {
        height: 300px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    /* Better mobile forms and inputs */
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Improved mobile navigation */
    .nav-link::after {
        bottom: 0;
        height: 3px; /* Thicker underline for touch devices */
    }

    /* Better spacing for mobile cards */
    .activity-card,
    .amenity-category,
    .quick-stat-card {
        margin-bottom: 1rem;
    }

    /* Adjust FAB for mobile */
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }

    .fab {
        width: 48px;
        height: 48px;
    }

    .fab-menu {
        bottom: 60px;
        right: 0;
    }

    /* Improved mobile scrolling */
    .instructions-nav,
    .gallery-thumbnails {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 1rem;
    }

    .instruction-tab,
    .gallery-thumb {
        scroll-snap-align: start;
    }

    /* Better mobile modals */
    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    /* Improved mobile buttons */
    .season-button,
    .instruction-tab,
    .tab-button {
        width: 100%;
        justify-content: center;
    }

    /* Better mobile grids */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    /* Improved mobile tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Better mobile images */
    .activity-card-image {
        height: 200px;
    }

    /* Improved mobile text readability */
    p, li {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Better spacing for mobile headings */
    h1, h2, h3 {
        margin-bottom: 1rem;
    }

    /* Improved mobile dark mode */
    .dark .mobile-menu {
        background-color: rgba(17, 24, 39, 0.95);
    }

    /* Mobile Menu Styles */
    .mobile-menu-button {
        position: relative;
        z-index: 50;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .mobile-menu-button:hover {
        background-color: var(--color-hover);
    }

    .mobile-menu-button.is-active {
        background-color: var(--color-hover);
    }

    .mobile-menu-button svg {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-button.is-active svg {
        transform: rotate(180deg);
    }

    /* Mobile menu container */
    .md\:hidden.mt-4 {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.75rem;
        background-color: var(--bg-secondary);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--border-color);
        transform-origin: top;
        z-index: 40;
    }

    /* Mobile menu items */
    .md\:hidden.mt-4 a {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .md\:hidden.mt-4 a:after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background-color: var(--border-color);
        opacity: 0.5;
    }

    .md\:hidden.mt-4 a:last-child:after {
        display: none;
    }

    .md\:hidden.mt-4 a:active {
        background-color: var(--color-hover);
        transform: scale(0.98);
    }

    /* Smooth appearance animation */
    .md\:hidden.mt-4[x-show="true"] {
        animation: menuAppear 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    /* Better touch targets */
    .md\:hidden.mt-4 a {
        min-height: 44px;
    }
}

/* Dark mode adjustments */
.dark .mobile-menu-button {
    color: var(--text-primary);
}

.dark .md\:hidden.mt-4 {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark .md\:hidden.mt-4 a {
    color: var(--text-primary);
}

.dark .md\:hidden.mt-4 a:hover {
    background-color: var(--color-hover);
}

/* Mobile-first responsive design adjustments */
@media (min-width: 768px) {
    .section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .nav-link:hover::after,
    .fab:hover,
    .fab-menu-item:hover,
    .activity-card:hover {
        transform: none;
    }

    .activity-card-image::after {
        opacity: 1;
    }
}

/* Improved mobile scroll performance */
@media (prefers-reduced-motion: no-preference) {
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

/* Mobile landscape optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .mobile-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
} 