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

:root {
    --primary-color: #cd4632;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    height: 30px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-line {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    left: 0;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 70, 50, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.anniversary-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 2s ease-out 0.5s forwards;
}

@keyframes underline {
    to { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-weight: 500;
}

.cta-button:hover {
    background: #b83d2d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: var(--accent-color);
}

.cta-button.secondary:hover {
    background: #e08e0b;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.1;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 0;
}

/* Application Section */
.application-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.application-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.application-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.application-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.application-content {
    max-width: 900px;
    margin: 0 auto;
}

.application-letter {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    margin: 0 0 2rem 0;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.application-letter:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.application-letter p {
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-family: 'Georgia', 'Playfair Display', serif;
    position: relative;
    z-index: 1;
}

.application-letter p:last-child {
    margin-bottom: 0;
}

/* Messages Section */
.messages {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.message-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.message-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.message-card p {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.quote-author {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #8B2F23;  /* Darker red for better contrast (WCAG AA) */
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Easter Egg Modal */
.easter-egg-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.easter-egg-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.easter-egg-content {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 600px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.easter-egg-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.easter-egg-content p {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: -0.3rem;
	right: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile navigation styles */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        font-size: 1.1rem;
        align-items: flex-start;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .application-letter {
        padding: 2rem;
    }

    .application-letter p {
        font-size: 1rem;
    }

    .impact-note {
        padding: 1.5rem;
    }

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

    .message-card:first-child {
        grid-column: 1;
    }
}

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

.hero-content > *,
.timeline-item,
.message-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Preloader animation for images */
img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero::before {
        display: none;
    }

    .image-decoration {
        animation: none;
    }
}