:root {
    --bg-color: #fcfbf9;
    /* Bright Warm White */
    --primary-school-color: #2D1417;
    /* Dark Red/Brown */
    --secondary-school-color: #0f172a;
    /* Dark Blue from design, adjusted to verify against #3066AA */
    --secondary-school-accent: #3066AA;
    --gold: #c59f27;
    /* Slightly darker gold for contrast on white */
    --gold-light: #d4af37;
    --brown-accent: #673A24;
    --text-color: #1a0a0c;
    /* Dark text */
    --text-muted: rgba(26, 10, 12, 0.7);
    --font-heading: 'Playfair Display', serif;
    --font-sub: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Backgrounds */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #e6e4dc 100%);
    /* Light Vignette */
    z-index: 1;
    pointer-events: none;
}

/* Header */
.main-header {
    position: relative;
    z-index: 10;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    background: var(--secondary-school-color);
}

.celebration-banner {
    font-family: var(--font-sub);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 700;
}

.glow-text {
    animation: textGlow 3s infinite ease-in-out;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }

    50% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
}

/* Main Content */
.content-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* Hero */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.anniversary-badge {
    position: relative;
    width: 15rem;
    height: 15rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glowing-ring {
    position: absolute;
    inset: 0;
    border: 4px dashed;
    border-color: var(--primary-school-color) var(--secondary-school-color) var(--primary-school-color) var(--secondary-school-color);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
    box-shadow: 0 0 20px rgba(45, 20, 23, 0.2);
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count-up {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-school-color) 0%, var(--secondary-school-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.years-label {
    font-family: var(--font-sub);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.school-title h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-school-color), var(--secondary-school-color));
    background-size: 100% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-family: var(--font-sub);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-muted);
}

.highlight {
    background: linear-gradient(90deg, var(--primary-school-color) 0%, var(--secondary-school-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Split Container */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
}

@media (min-width: 768px) {
    .split-container {
        grid-template-columns: 1fr 1fr;
    }
}

.split-card {
    position: relative;
    text-decoration: none;
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.split-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.primary-card {
    background: linear-gradient(135deg, var(--primary-school-color) 0%, #1a0a0c 100%);
}

.secondary-card {
    background: linear-gradient(135deg, var(--secondary-school-color) 0%, #050914 100%);
}

.card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(30%, -30%);
}

.icon-box {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.15);
    /* Increased visibility on dark cards */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    overflow: hidden;
    /* Ensure image doesn't overflow rounded corners */
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* display whole logo */
    padding: 5px;
    /* slight padding */
}

.card-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.split-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.split-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.fake-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.split-card:hover .fake-btn {
    background: var(--gold);
    color: black;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-school-color) 0%, var(--secondary-school-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 20, 23, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 20, 23, 0.4);
}

.btn-outline {
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(90deg, var(--primary-school-color) 0%, var(--secondary-school-color) 100%) border-box;
    border: 2px solid transparent;
    color: var(--primary-school-color);
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, var(--primary-school-color) 0%, var(--secondary-school-color) 100%) border-box;
    color: white;
}

.disabled-link {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Footer */
.main-footer {
    position: relative;
    z-index: 10;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--secondary-school-color);
    color: rgba(255, 255, 255, 0.8);
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-family: var(--font-sub);
}

.line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    position: relative;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    animation: moveDot 4s infinite ease-in-out;
}

@keyframes moveDot {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #3066AA;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    margin: auto;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    backdrop-filter: blur(5px);
    z-index: 100;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    margin: 5rem auto;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(197, 159, 39, 0.2);
    position: relative;
    color: var(--text-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-box h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
}

.full-width {
    width: 100%;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .school-title h1 {
        font-size: 3rem;
    }

    .count-up {
        font-size: 3.5rem;
    }

    .anniversary-badge {
        width: 12rem;
        height: 12rem;
    }
}