* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.go-text {
    color: #22c55e;
}

.t-text {
    color: #ffffff;
}

.o-text {
    color: #ffffff;
}

.d-text {
    color: #ffeb3b;
}

.a-text {
    color: #ffb347;
}

.y-text {
    color: #ffeb3b;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0.95;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    font-family: 'Inter', sans-serif;
    min-height: 44px;
    touch-action: manipulation;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.filter-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
    margin-top: -10px;
    font-weight: 300;
}

.content {
    animation: fadeIn 0.6s ease-out;
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

.event-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.event-year {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.event-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 4px;
    min-height: 32px;
    touch-action: manipulation;
}

.event-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.loading, .error {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 0 10px;
    }

    .title {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .header {
        margin-bottom: 30px;
    }

    .tabs {
        gap: 8px;
        margin-bottom: 25px;
    }

    .tab-button {
        padding: 10px 18px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
    }

    .event-card {
        padding: 20px;
        border-radius: 12px;
    }

    .event-text {
        font-size: 0.95rem;
    }

    .events-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 0 5px;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 2px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .header {
        margin-bottom: 25px;
    }

    .tabs {
        gap: 6px;
        margin-bottom: 20px;
    }

    .tab-button {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .event-card {
        padding: 16px;
        border-radius: 12px;
    }

    .event-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .event-year {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .event-link {
        font-size: 0.8rem;
    }

    .events-container {
        gap: 12px;
        margin-top: 15px;
    }

    .loading, .error {
        padding: 40px 15px;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }

    .visitor-counter {
        margin-top: 40px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .tab-button {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .event-card {
        padding: 14px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        margin-bottom: 20px;
    }

    .title {
        font-size: 2rem;
    }
}

/* Stagger animation for cards */
.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }
.event-card:nth-child(n+7) { animation-delay: 0.7s; }

/* Visitor Counter */
.visitor-counter {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 300;
}

.visitor-counter p {
    margin: 0;
}

.visitor-counter #visitCount {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 300;
}

.contact-info p {
    margin: 0;
}


