/* Base styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --spacing-unit: 1rem;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Link styles */
a {
    color: var(--accent-color); /* Default link color */
    text-decoration: none; /* Remove underline by default */
    transition: opacity 0.2s ease-in-out;
}

a:visited {
    color: var(--accent-color); /* Same color as unvisited */
}

a:hover,
a:focus {
    opacity: 0.8;
    text-decoration: underline;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-bg);
    width: 90%;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Oswald', sans-serif; /* Apply Oswald font */
    font-size: 3.8rem; /* Slightly adjust size if needed for new font */
    font-weight: 700; /* Use bold weight */
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-family: 'Oswald', sans-serif; /* Apply Oswald font */
    font-size: 1.6rem; /* Slightly adjust size if needed */
    font-weight: 400; /* Use regular weight */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2);
}

main > section:first-of-type > p {
    max-width: 70ch; /* Limit line length for readability */
    margin: 0 auto calc(var(--spacing-unit) * 2) auto; /* Center block and add bottom margin */
    text-align: center;
}

section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-align: center;
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.feature-card {
    background: var(--light-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

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

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-unit);
}

/* Gallery section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

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

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

/* Fun facts section */
.fun-facts {
    background: var(--light-bg);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 8px;
}

.fun-facts ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.fun-facts li {
    margin-bottom: var(--spacing-unit);
    padding-left: calc(var(--spacing-unit) * 2);
    position: relative;
    font-size: 1.05rem;
}

.fun-facts li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Weather Section */
.weather-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center; /* Center the widget */
}

.weather-section .weatherwidget-io {
    display: block;
    margin: 0 auto; /* Help centering */
}

/* Map Section */
.map-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    margin-top: calc(var(--spacing-unit) * 2);
    z-index: 0; /* Ensure map is behind other elements if necessary */
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 4);
}

footer a {
    color: white; /* Ensure footer links are white */
    text-decoration: underline; /* Add underline specifically for footer links */
}

footer a:visited {
    color: white; /* Keep footer links white when visited */
}

footer a:hover,
footer a:focus {
    opacity: 0.8; /* Keep hover effect, maybe adjust decoration if needed */
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

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

/* Easter Egg Animation */
.easter-egg {
    position: fixed;
    top: 20%;
    right: -100%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: right 0.5s ease-in-out;
    max-width: 300px;    
}

.easter-egg img {
    width: 100%;
    height: auto;
    display: block;
}

.easter-egg.show {
    right: 20px;
}

footer p {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

footer p:hover {
    opacity: 0.8;
}
