/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties */
:root {
    /* Primary Colors - Teal & Ocean Blues */
    --primary-color: #0D7377;
    --primary-light: #14FFEC;
    --secondary-color: #32E0C4;
    --accent-color: #EEEEEE;
    --success-color: #06A77D;
    --info-color: #00C9B1;
    --text-dark: #212121;
    --text-light: #5A5A5A;
    --background-light: #FFFFFF;
    --background-sand: #F8F9FA;
    --card-shadow: rgba(13, 115, 119, 0.1);
    --border-light: rgba(13, 115, 119, 0.15);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --spacing-xxxl: 4rem;

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px var(--card-shadow);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--secondary-color);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text-dark);
    color: var(--background-light);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 115, 119, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.25px;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #363424 0%, #2f2114 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-lg) var(--spacing-xxl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    text-align: center;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Sections */
.section {
    padding: var(--spacing-xxxl) 0;
}

.section:nth-child(even) {
    background-color: var(--background-sand);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.quick-facts {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--info-color);
}

.quick-facts h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.facts-list {
    list-style: none;
}

.facts-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.facts-list li:last-child {
    border-bottom: none;
}

/* History Section */
.timeline {
    position: relative;
    margin: var(--spacing-xxl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    padding-right: calc(50% + var(--spacing-xl));
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + var(--spacing-xl));
}

.timeline-item:hover {
    transform: scale(1.02);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 80px;
    text-align: center;
    z-index: 2;
}

.timeline-content {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 400px;
    position: relative;
    border-left: 4px solid var(--info-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Architecture Features */
.architecture-features {
    background: var(--background-sand);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-md);
}

.architecture-features h3 {
    color: var(--primary-color);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-fast);
    border-top: 4px solid var(--success-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Visitor Info Section */
.visitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.visitor-card {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
    border-left: 4px solid var(--secondary-color);
}

.visitor-card:hover {
    transform: translateY(-3px);
}

.visitor-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.visitor-card p {
    margin-bottom: var(--spacing-sm);
}

.visitor-card .note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Map & Directions Section */
.map-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.directions h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.direction-item {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
}

.direction-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.event-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card .event-date {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: var(--spacing-md);
    text-align: center;
}

.event-date .day {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info {
    padding: var(--spacing-lg);
}

.event-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.event-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: 0.8rem;
}

.event-meta .time {
    color: var(--text-light);
}

.event-meta .type {
    background: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    align-self: flex-start;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-card {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
    text-align: center;
    transition: transform var(--transition-fast);
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 24px;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.social-links a {
    color: var(--primary-color);
    transition: all var(--transition-fast);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-sand);
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links a:nth-child(1):hover {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.social-links a:nth-child(2):hover {
    color: #E1306C;
    background: rgba(225, 48, 108, 0.1);
}

.social-links a:nth-child(3):hover {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.social-links a:nth-child(4):hover {
    color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
}


/* Footer */
.footer {
  background: #1A1A1A;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer .container {
  max-width: 1100px;
  margin: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-left h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: bold;         /* Make heading bold */
  color: var(--primary-light);
}


.footer-left p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: bold;         /* Make tagline bold */
}

.footer-right {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-right img {
  height: 100px;         /* Increased from 60px */
  max-width: 160px;     /* Prevents it from stretching too wide */
  object-fit: contain;
  margin-bottom: 8px;
}

.footer-right strong {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}




/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    z-index: 50;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(13, 115, 119, 0.4);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    color: var(--text-dark);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
}

.lightbox-close {
    top: -50px;
    right: 0;
}

.lightbox-prev {
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md);
    text-align: center;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
a:focus {
    outline-color: var(--secondary-color);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-indicator {
        animation: none;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* ============================================
   RESPONSIVE STYLES - COMPREHENSIVE BREAKPOINTS
   ============================================ */

/* Large Desktops (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 7rem;
    }

    .section {
        padding: 5rem 0;
    }
}

/* Standard Desktops (1200px - 1399px) */
@media (max-width: 1399px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }
}

/* Medium Desktops & Laptops (1024px - 1199px) */
@media (max-width: 1199px) {
    .visitor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets & Small Laptops (768px - 1023px) */
@media (max-width: 1023px) {
    .nav-container {
        height: 70px;
    }

    .nav-brand h2 {
        font-size: 1.5rem;
    }

    .hero {
        height: 90vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quick-facts {
        order: -1;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .timeline-year {
        left: 20px !important;
        transform: none !important;
    }

    .timeline-content {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .map-content {
        gap: var(--spacing-xl);
    }

    .scroll-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        height: 60px;
        padding: 0 var(--spacing-md);
    }

    .nav-brand h2 {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--background-light);
        flex-direction: column;
        padding: var(--spacing-xl);
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        gap: var(--spacing-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    .hero {
        height: 100vh;
        background-attachment: scroll;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-content {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
        width: 100%;
    }

    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        min-width: auto;
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: var(--spacing-lg);
    }

    .section {
        padding: var(--spacing-xxl) 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: var(--spacing-lg);
    }

    .section-title::after {
        width: 60px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .quick-facts {
        padding: var(--spacing-lg);
    }

    .timeline {
        margin: var(--spacing-lg) 0;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px !important;
        margin-bottom: var(--spacing-lg);
    }

    .timeline-year {
        left: 10px !important;
        font-size: 0.75rem;
        min-width: 60px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .timeline-content {
        padding: var(--spacing-lg);
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .architecture-features {
        padding: var(--spacing-xl) var(--spacing-md);
        margin-top: var(--spacing-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .visitor-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .visitor-card {
        padding: var(--spacing-lg);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    .map-container {
        border-radius: var(--radius-md);
    }

    .map-container iframe {
        height: 300px;
    }

    .directions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .direction-item {
        padding: var(--spacing-md);
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .event-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .event-info {
        padding: var(--spacing-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-card {
        padding: var(--spacing-lg);
    }

    .footer {
        padding: 30px var(--spacing-md) 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.125rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 1.5rem;
        padding: var(--spacing-xs);
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 10px;
        transform: none;
        font-size: 1.5rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        position: static;
        margin-top: var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* Small Mobile Devices (max-width: 479px) */
@media (max-width: 479px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        height: 56px;
        padding: 0 var(--spacing-sm);
    }

    .nav-brand h2 {
        font-size: 1.125rem;
    }

    .nav-toggle span {
        width: 24px;
    }

    .nav-menu {
        top: 56px;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .nav-menu a {
        padding: var(--spacing-sm);
        font-size: 1rem;
    }

    .hero {
        height: 100vh;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(1.75rem, 12vw, 2.5rem);
        letter-spacing: 0;
    }

    .hero-tagline {
        font-size: clamp(0.875rem, 5vw, 1.25rem);
    }

    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: var(--spacing-sm);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--spacing-md);
    }

    .section-title::after {
        width: 50px;
        height: 3px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .quick-facts,
    .feature-card,
    .visitor-card,
    .contact-card {
        padding: var(--spacing-md);
    }

    .timeline-content {
        padding: var(--spacing-md);
    }

    .architecture-features {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .features-grid,
    .visitor-grid,
    .events-grid,
    .contact-grid {
        gap: var(--spacing-md);
    }

    .gallery-grid {
        gap: var(--spacing-sm);
    }

    .event-card {
        max-width: 100%;
    }

    .event-info h3 {
        font-size: 1rem;
    }

    .event-info p {
        font-size: 0.875rem;
    }

    .footer {
        padding: 20px var(--spacing-sm) 15px;
        font-size: 13px;
    }

    .footer-info h3 {
        font-size: 18px;
    }

    .social-links {
        font-size: 20px;
        gap: 12px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
        font-size: 1rem;
    }
}

/* Extra Small Devices (max-width: 359px) */
@media (max-width: 359px) {
    html {
        font-size: 13px;
    }

    .nav-brand h2 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: var(--spacing-sm);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: var(--spacing-xxl) var(--spacing-md);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .scroll-indicator {
        display: none;
    }

    .nav-menu {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .scroll-top,
    .hero-buttons,
    .scroll-indicator,
    .lightbox {
        display: none !important;
    }

    .hero {
        height: auto;
        padding: 2rem;
        page-break-after: always;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .timeline-item,
    .feature-card,
    .visitor-card,
    .event-card,
    .contact-card {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .gallery-item {
        page-break-inside: avoid;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-size: cover;
    }

    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-item {
        transition: none;
    }

    .gallery-item:active {
        transform: scale(0.98);
    }

    .scroll-top {
        min-width: 44px;
        min-height: 44px;
    }
}
