/* General Styles & Variables */
:root {
    --primary-color: #E6C35C;
    --primary-dark: #C69C22;
    --text-color: #222;
    --dark-bg: #111;
    --light-bg: #F5F5F5;
    --header-bg: rgba(0, 0, 0, 0.8);
    --accent-red: #CC0000;
    --accent-blue: #0066CC;
    --accent-green: #006633;
    --accent-white: #FFFFFF;
    --accent-black: #000000;
    
    /* Element Colors */
    --fire-color: #CC3300;
    --water-color: #0099CC;
    --air-color: #33CC33;
    --stone-color: #996633;
    --earth-color: #663300;
    --ice-color: #CCFFFF;
    
    /* Fonts */
    --header-font: 'Trajan Pro', 'Times New Roman', serif;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html, body {
    height: 100%;
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--dark-bg);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Background Elements */
.mata-nui-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #000000, #222222);
    overflow: hidden;
}

.kanohi-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 80vmin;
    opacity: 0.05;
    animation: rotate 60s infinite linear;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

.logo-container {
    text-align: center;
    padding: 1rem 0;
}

h1 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(230, 195, 92, 0.5);
    margin: 0;
}

.tagline {
    color: var(--accent-white);
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 1rem;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--accent-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: glowLine 1.5s infinite alternate;
}

@keyframes glowLine {
    0% {
        box-shadow: 0 0 5px rgba(230, 195, 92, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(230, 195, 92, 0.8);
    }
}

.nav-mask-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
}

.mask-icon-inner {
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23E6C35C'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23E6C35C'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

/* Home Page Styles */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23E6C35C' fill-opacity='0.2'/%3E%3C/svg%3E");
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(230, 195, 92, 0.3);
}

.hero h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(230, 195, 92, 0.7);
}

.hero p {
    color: var(--accent-white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-dark);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.elemental-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
}

.element-card {
    background-color: rgba(20, 20, 20, 0.9);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.element-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.element-card:hover::before {
    opacity: 1;
}

.element-card.fire::before { background-color: var(--fire-color); }
.element-card.water::before { background-color: var(--water-color); }
.element-card.air::before { background-color: var(--air-color); }
.element-card.stone::before { background-color: var(--stone-color); }
.element-card.earth::before { background-color: var(--earth-color); }
.element-card.ice::before { background-color: var(--ice-color); }

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

.element-symbol {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.element-symbol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 15px;
    opacity: 0.7;
}

.fire .element-symbol::before {
    background-color: var(--fire-color);
    box-shadow: 0 0 15px var(--fire-color);
}

.water .element-symbol::before {
    background-color: var(--water-color);
    box-shadow: 0 0 15px var(--water-color);
}

.air .element-symbol::before {
    background-color: var(--air-color);
    box-shadow: 0 0 15px var(--air-color);
}

.stone .element-symbol::before {
    background-color: var(--stone-color);
    box-shadow: 0 0 15px var(--stone-color);
}

.earth .element-symbol::before {
    background-color: var(--earth-color);
    box-shadow: 0 0 15px var(--earth-color);
}

.ice .element-symbol::before {
    background-color: var(--ice-color);
    box-shadow: 0 0 15px var(--ice-color);
}

.element-card h3 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.element-card p {
    color: var(--accent-white);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.element-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(26, 26, 26, 0.9);
    color: var(--accent-white);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid;
}

.fire .element-link { border-color: var(--fire-color); }
.water .element-link { border-color: var(--water-color); }
.air .element-link { border-color: var(--air-color); }
.stone .element-link { border-color: var(--stone-color); }
.earth .element-link { border-color: var(--earth-color); }
.ice .element-link { border-color: var(--ice-color); }

.fire .element-link:hover { background-color: var(--fire-color); color: var(--dark-bg); }
.water .element-link:hover { background-color: var(--water-color); color: var(--dark-bg); }
.air .element-link:hover { background-color: var(--air-color); color: var(--dark-bg); }
.stone .element-link:hover { background-color: var(--stone-color); color: var(--dark-bg); }
.earth .element-link:hover { background-color: var(--earth-color); color: var(--dark-bg); }
.ice .element-link:hover { background-color: var(--ice-color); color: var(--dark-bg); }

.latest-news {
    padding: 4rem 2rem;
    background-color: rgba(20, 20, 20, 0.8);
}

.latest-news h2 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.latest-news h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.news-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: var(--header-font);
}

.news-item p {
    color: var(--accent-white);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.read-more::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
    display: inline-block;
}

.read-more:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--accent-white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-logo {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: var(--accent-white);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-newsletter p {
    margin-bottom: 1rem;
    max-width: 300px;
}

.newsletter-form {
    display: flex;
    max-width: 350px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #333;
    color: var(--accent-white);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Toa Page Styles */
.toa-page {
    /* Special styles for the Toa page */
}

.toa-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23E6C35C' fill-opacity='0.2'/%3E%3C/svg%3E");
    position: relative;
}

.toa-hero h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(230, 195, 92, 0.7);
}

.toa-hero p {
    color: var(--accent-white);
    font-size: 1.2rem;
    max-width: 800px;
}

.toa-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 84px; /* Adjust based on your header height */
    z-index: 10;
}

.toa-button {
    padding: 0.7rem 1.5rem;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--primary-dark);
    color: var(--accent-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-size: 1rem;
}

.toa-button:hover, .toa-button.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.toa-profiles {
    padding: 3rem 2rem;
    position: relative;
}

.toa-profile {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: 10px;
    border: 1px solid var(--primary-dark);
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.toa-profile.active {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.toa-info {
    flex: 1;
    min-width: 300px;
}

.toa-info h3 {
    font-family: var(--header-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toa-element-symbol {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
}

.toa-element-symbol.fire { background-color: var(--fire-color); box-shadow: 0 0 10px var(--fire-color); }
.toa-element-symbol.water { background-color: var(--water-color); box-shadow: 0 0 10px var(--water-color); }
.toa-element-symbol.air { background-color: var(--air-color); box-shadow: 0 0 10px var(--air-color); }
.toa-element-symbol.stone { background-color: var(--stone-color); box-shadow: 0 0 10px var(--stone-color); }
.toa-element-symbol.earth { background-color: var(--earth-color); box-shadow: 0 0 10px var(--earth-color); }
.toa-element-symbol.ice { background-color: var(--ice-color); box-shadow: 0 0 10px var(--ice-color); }

.toa-description {
    color: var(--accent-white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.toa-stats {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid;
}

#tahu .toa-stats { border-color: var(--fire-color); }
#gali .toa-stats { border-color: var(--water-color); }
#lewa .toa-stats { border-color: var(--air-color); }
#pohatu .toa-stats { border-color: var(--stone-color); }
#onua .toa-stats { border-color: var(--earth-color); }
#kopaka .toa-stats { border-color: var(--ice-color); }

.stat {
    margin-bottom: 0.7rem;
    color: var(--accent-white);
}

.stat strong {
    color: var(--primary-color);
}

.toa-mask-display {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toa-mask {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.unity-duty-destiny {
    padding: 4rem 2rem;
    text-align: center;
    background-color: rgba(10, 10, 10, 0.7);
    margin-top: 3rem;
}

.unity-duty-destiny h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(230, 195, 92, 0.5);
}

.principles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.principle {
    flex: 1;
    min-width: 250px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.principle:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.principle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(230, 195, 92, 0.5);
}

.principle h4 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.principle p {
    color: var(--accent-white);
    line-height: 1.5;
}

.toa-weapons {
    padding: 4rem 2rem;
    text-align: center;
}

.toa-weapons h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(230, 195, 92, 0.5);
}

.toa-weapons p {
    color: var(--accent-white);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.weapons-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.weapon-card {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.weapon-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
}

.weapon-icon.fire { background-color: var(--fire-color); box-shadow: 0 0 10px var(--fire-color); }
.weapon-icon.water { background-color: var(--water-color); box-shadow: 0 0 10px var(--water-color); }
.weapon-icon.air { background-color: var(--air-color); box-shadow: 0 0 10px var(--air-color); }
.weapon-icon.stone { background-color: var(--stone-color); box-shadow: 0 0 10px var(--stone-color); }
.weapon-icon.earth { background-color: var(--earth-color); box-shadow: 0 0 10px var(--earth-color); }
.weapon-icon.ice { background-color: var(--ice-color); box-shadow: 0 0 10px var(--ice-color); }

.weapon-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--header-font);
}

.weapon-card p {
    color: var(--accent-white);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Masks Page Styles */
.masks-page {
    /* Special styles for the Masks page */
}

.masks-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23E6C35C' fill-opacity='0.2'/%3E%3C/svg%3E");
    position: relative;
}

.masks-hero h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(230, 195, 92, 0.7);
}

.masks-hero p {
    color: var(--accent-white);
    font-size: 1.2rem;
    max-width: 800px;
}

.mask-categories {
    padding: 2rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-tab {
    padding: 0.7rem 1.5rem;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--primary-dark);
    color: var(--accent-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-size: 1rem;
    border-radius: 5px;
}

.category-tab:hover, .category-tab.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.mask-gallery {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

.mask-gallery.active {
    display: block;
}

.mask-explanation {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-color);
}

.mask-explanation p {
    color: var(--accent-white);
    font-size: 1.1rem;
    line-height: 1.5;
}

.masks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.mask-card {
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mask-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.mask-card.legendary {
    padding: 3rem;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(230, 195, 92, 0.3);
}

.mask-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.mask-icon.hau {
    background-color: var(--fire-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23CC3300'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23CC3300'/%3E%3C/svg%3E");
}

.mask-icon.akaku {
    background-color: var(--ice-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23CCFFFF'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23CCFFFF'/%3E%3C/svg%3E");
}

.mask-icon.miru {
    background-color: var(--air-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%2333CC33'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%2333CC33'/%3E%3C/svg%3E");
}

.mask-icon.kaukau {
    background-color: var(--water-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%230099CC'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%230099CC'/%3E%3C/svg%3E");
}

.mask-icon.pakari {
    background-color: var(--earth-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23663300'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23663300'/%3E%3C/svg%3E");
}

.mask-icon.kakama {
    background-color: var(--stone-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23996633'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23996633'/%3E%3C/svg%3E");
}

.mask-icon.huna, .mask-icon.komau, .mask-icon.ruru,
.mask-icon.matatu, .mask-icon.mahiki, .mask-icon.rau {
    background-color: var(--primary-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23E6C35C'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23E6C35C'/%3E%3C/svg%3E");
}

.mask-icon.avohkii {
    background-color: #FFD700;
    box-shadow: 0 0 20px #FFD700;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23FFD700'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23FFD700'/%3E%3C/svg%3E");
}

.mask-icon.kraahkan {
    background-color: #111;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23111'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23111'/%3E%3C/svg%3E");
}

.mask-icon.vahi {
    background-color: #FF6600;
    box-shadow: 0 0 20px #FF6600;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23FF6600'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23FF6600'/%3E%3C/svg%3E");
}

.mask-card h3 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.mask-card h4 {
    color: var(--accent-white);
    font-style: italic;
    font-weight: normal;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.mask-card p {
    color: var(--accent-white);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.mask-info {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
    width: 100%;
    font-size: 0.9rem;
}

.mask-info span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-white);
}

.mask-forging {
    padding: 4rem 2rem;
    margin-top: 3rem;
    background-color: rgba(10, 10, 10, 0.8);
}

.mask-forging h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(230, 195, 92, 0.5);
}

.forging-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.forging-text {
    flex: 1;
    min-width: 300px;
}

.forging-text p, .forging-text li {
    color: var(--accent-white);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.forging-text h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.forging-text ol {
    padding-left: 1.5rem;
}

.forging-animation {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.forge {
    position: relative;
    width: 250px;
    height: 250px;
}

.forge-fire {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: linear-gradient(to top, #FF6600, #FF9900, #FFCC00);
    border-radius: 50% 50% 0 0;
    animation: fire 2s infinite alternate;
}

@keyframes fire {
    0% {
        height: 70px;
        box-shadow: 0 0 20px #FF6600;
    }
    100% {
        height: 90px;
        box-shadow: 0 0 30px #FF6600;
    }
}

.forge-anvil {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    background-color: #333;
    border-radius: 5px;
}

.mask-in-progress {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23E6C35C'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L80 30 L80 70 L50 90 L20 70 L20 30 Z' fill='%23E6C35C'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    animation: maskGlow 3s infinite alternate;
}

@keyframes maskGlow {
    0% {
        background-color: var(--primary-dark);
        box-shadow: 0 0 10px var(--primary-dark);
    }
    100% {
        background-color: var(--primary-color);
        box-shadow: 0 0 30px var(--primary-color);
    }
}

/* Timeline Page Styles */
.timeline-page {
    /* Special styles for the Timeline page */
}

.timeline-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23E6C35C' fill-opacity='0.2'/%3E%3C/svg%3E");
    position: relative;
}

.timeline-hero h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(230, 195, 92, 0.7);
}

.timeline-hero p {
    color: var(--accent-white);
    font-size: 1.2rem;
    max-width: 800px;
}

.timeline-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 84px; /* Adjust based on your header height */
    z-index: 10;
}

.timeline-era-button {
    padding: 0.7rem 1.5rem;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--primary-dark);
    color: var(--accent-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-size: 1rem;
    border-radius: 5px;
}

.timeline-era-button:hover, .timeline-era-button.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.timeline-container {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.era-timeline {
    display: none;
    position: relative;
}

.era-timeline.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.era-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 4px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-marker {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.marker-point {
    position: absolute;
    left: 22px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--primary-color);
}

.marker-line {
    position: absolute;
    left: 32px;
    top: 10px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.marker-content {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.marker-content h3 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.year {
    color: #AAA;
    font-style: italic;
    margin-bottom: 1.5rem;
    display: block;
}

.event-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.event-content p {
    flex: 2;
    min-width: 200px;
    color: var(--accent-white);
    line-height: 1.5;
}

.event-symbol {
    flex: 1;
    min-width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(230, 195, 92, 0.5);
}

.timeline-legend {
    padding: 3rem 2rem;
    margin-top: 3rem;
    background-color: rgba(10, 10, 10, 0.8);
    text-align: center;
}

.timeline-legend h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.legend-symbol {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.legend-item span {
    color: var(--accent-white);
    font-size: 0.9rem;
}

/* Gallery Page Styles */
.gallery-page {
    /* Special styles for the Gallery page */
}

.gallery-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23E6C35C' fill-opacity='0.2'/%3E%3C/svg%3E");
    position: relative;
}

.gallery-hero h2 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(230, 195, 92, 0.7);
}

.gallery-hero p {
    color: var(--accent-white);
    font-size: 1.2rem;
    max-width: 800px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 84px; /* Adjust based on your header height */
    z-index: 10;
}

.filter-button {
    padding: 0.7rem 1.5rem;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--primary-dark);
    color: var(--accent-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-size: 1rem;
    border-radius: 5px;
}

.filter-button:hover, .filter-button.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.gallery-artwork {
    height: 250px;
    overflow: hidden;
    background-color: #222;
}

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

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: var(--accent-white);
    line-height: 1.4;
}

.interactive-canvas {
    padding: 4rem 2rem;
    background-color: rgba(10, 10, 10, 0.8);
    text-align: center;
}

.interactive-canvas h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(230, 195, 92, 0.5);
}

.interactive-canvas p {
    color: var(--accent-white);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.canvas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

#mask-canvas {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-mask {
    width: 80%;
    height: 80%;
}

.canvas-controls {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-dark);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.control-group label {
    color: var(--accent-white);
    font-size: 1rem;
}

.control-group input, .control-group select {
    padding: 0.5rem;
    border: 1px solid #333;
    background-color: #222;
    color: var(--accent-white);
    border-radius: 5px;
}

.canvas-controls button {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    align-self: center;
    margin-top: 1rem;
}

.canvas-controls button:hover {
    background-color: var(--primary-dark);
}

.community-gallery {
    padding: 4rem 2rem;
    text-align: center;
}

.community-gallery h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(230, 195, 92, 0.5);
}

.community-gallery p {
    color: var(--accent-white);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.submission-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(10, 10, 10, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-dark);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--accent-white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #333;
    background-color: #222;
    color: var(--accent-white);
    border-radius: 5px;
}

.form-note {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.submission-form button {
    padding: 0.7rem 2rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 1rem;
}

.submission-form button:hover {
    background-color: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .toa-profile {
        flex-direction: column;
    }
    
    .element-card {
        min-width: 250px;
    }
    
    .timeline-marker {
        padding-left: 60px;
    }
    
    .marker-content h3 {
        font-size: 1.5rem;
    }
    
    .mask-card {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input, .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
    
    .newsletter-form button {
        margin-top: 0.5rem;
    }
    
    .timeline-marker {
        padding-left: 50px;
    }
    
    .marker-content {
        padding: 1.5rem;
    }
    
    .marker-content h3 {
        font-size: 1.3rem;
    }
}

