/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #dc143c;
    --accent-red: #e31e24;
    --text-color: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --gray: #666666;
    --dark-gray: #2a2a2a;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: relative;
    z-index: 1002;
}

.menu-windmill {
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-windmill-blades {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    animation: rotateMenuBlades 2s linear infinite;
}

.menu-blade {
    position: absolute;
    width: 6px;
    height: 28px;
    background: linear-gradient(to bottom, #e31e24 0%, #dc143c 100%);
    border-radius: 3px;
    transform-origin: center 8px;
}

.menu-blade:nth-child(1) {
    transform: rotate(0deg);
}

.menu-blade:nth-child(2) {
    transform: rotate(90deg);
}

.menu-blade:nth-child(3) {
    transform: rotate(180deg);
}

.menu-blade:nth-child(4) {
    transform: rotate(270deg);
}

.menu-blade-center {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #e31e24;
    z-index: 10;
}

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

.main-nav {
    padding: 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 1.5rem 1.2rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background: rgba(227, 30, 36, 0.9);
    border-bottom-color: var(--accent-red);
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-red);
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.dropdown a:hover {
    background: linear-gradient(90deg, var(--accent-red) 0%, rgba(227, 30, 36, 0.8) 100%);
    color: var(--white);
    padding-left: 1.5rem;
}

/* Nested Dropdown */
.dropdown .has-dropdown {
    position: relative;
}

.dropdown .has-dropdown > a::after {
    content: '▸';
    float: right;
    margin-left: 0.5rem;
}

.dropdown .nested-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-red);
}

.dropdown .has-dropdown:hover .nested-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(26,26,26,0.5) 50%, rgba(220,20,60,0.4) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-content h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b71c1c 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
    border: 2px solid var(--white);
}

.cta-button:hover {
    background: linear-gradient(135deg, #b71c1c 0%, var(--accent-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.6);
}

/* Welcome Section */
.welcome {
    padding: 4rem 2rem;
    background-color: var(--white);
}

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

.welcome-text {
    flex: 1;
}

.welcome h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.welcome p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.amsterdam-emblem {
    flex-shrink: 0;
    text-align: center;
    animation: floatEmblem 3s ease-in-out infinite;
}

.amsterdam-emblem img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(227, 30, 36, 0.3));
}

.emblem-caption {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes floatEmblem {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* News Section */
.news {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.news h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.news-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.news-item p {
    color: var(--text-color);
    line-height: 1.5;
}

/* Sponsors Section */
.sponsors {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.sponsors h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    min-height: 150px;
    gap: 1rem;
}

.sponsor-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

.sponsor-logo {
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.view-all {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Content Pages */
.page-header {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(26,26,26,0.55) 50%, rgba(220,20,60,0.45) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-header p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-content {
    padding: 3rem 2rem;
}

.content-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.content-section h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-red);
    padding-left: 1rem;
}

.content-section h3 {
    color: var(--accent-red);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    border-top: 4px solid var(--accent-red);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 1001;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        position: relative;
        z-index: 1;
        pointer-events: auto;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu > li > a {
        padding: 1rem;
        display: block;
    }

    .nav-menu > li > a:hover {
        background: rgba(227, 30, 36, 0.9);
    }

    /* Hide dropdowns on mobile - keep it simple */
    .dropdown,
    .nested-dropdown {
        display: none !important;
    }

    .logo h1 {
        padding: 1rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-item {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content h3 {
        font-size: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    .page-header {
        min-height: 180px;
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .welcome-content {
        flex-direction: column;
        gap: 2rem;
    }

    .amsterdam-emblem img {
        width: 150px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}
