/* Base Styles */
:root {
    --primary: #FF0000; /* German Red */
    --primary-light: #ff4d4d;
    --secondary: #FFCC00; /* German Gold */
    --accent: #DDDDDD; /* Light Silver */
    --dark: #1A1A1A; /* Deep Charcoal */
    --light: #ffffff;
    --gray: #cccccc; /* Light Gray Text */
    --light-gray: #2C2C2C; /* Dark Gray Background */
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--gray);
    background-color: var(--dark);
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover,
.btn:focus {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #e6b800;
    outline: 2px solid #e6b800;
    outline-offset: 2px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: var(--dark);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1594824476967-48c8b964273f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    text-align: center;
    color: var(--light);
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Featured Places Section */
.featured-places {
    background-color: var(--light-gray);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.place-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.place-card:hover {
    transform: translateY(-10px);
}

.place-image {
    height: 200px;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.place-content {
    padding: 20px;
}

.place-content h3 {
    margin-bottom: 10px;
    color: var(--light);
}

.place-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Historical Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--light);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Interactive Map */
.map-section {
    background-color: var(--light-gray);
}

.map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.australia-map {
    width: 100%;
    height: 500px;
    background-color: #424242;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1596649591499-8c6a3a79133c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
}

.location-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: 10;
}

.location-marker:hover,
.location-marker:focus {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.location-info {
    position: absolute;
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    width: 300px;
    z-index: 100;
    display: none;
}

.location-info.active {
    display: block;
}

.location-info h3 {
    color: var(--light);
    margin-bottom: 10px;
}

.location-info img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.close-info {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
}

/* Visitor Information */
.visitor-info {
    background-color: var(--dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--light);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--light);
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #b30000);
    color: var(--light);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.social-links a:hover, .social-links a:focus {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
    text-align: center;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ad-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ad-placeholder {
    background: #424242;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.ad-placeholder.rectangle {
    height: 250px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--dark);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--dark);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--light);
}

.modal h3 {
    margin: 20px 0 10px;
    color: var(--light);
}

/* Accessibility: Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        box-shadow: var(--shadow);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        visibility: hidden;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .australia-map {
        height: 400px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}