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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #002868 0%, #001f54 50%, #000d26 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* American Flag Background */
.american-flag-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.15;
}

.flag-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stripe {
    flex: 1;
    width: 100%;
}

.stripe.red {
    background: linear-gradient(90deg, #B22234 0%, #8B1538 100%);
}

.stripe.white {
    background: linear-gradient(90deg, #FFFFFF 0%, #F0F0F0 100%);
}

.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.8%;
    background: linear-gradient(135deg, #002868 0%, #001f54 100%);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    padding: 15px;
}

.star {
    background: #FFFFFF;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 4s infinite;
    margin: auto;
    width: 60%;
    height: 60%;
}

.star:nth-child(odd) {
    animation-delay: 0s;
}

.star:nth-child(even) {
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.memorial-photo {
    position: relative;
    margin: 0 auto 40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.memorial-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
}

.memorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.photo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    opacity: 0;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.name-highlight {
    background: linear-gradient(45deg, #B22234, #FFFFFF, #002868);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: block;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-dates {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0;
    font-weight: 500;
    letter-spacing: 1px;
}

.patriot-quote {
    background: rgba(178, 34, 52, 0.1);
    border: 2px solid rgba(178, 34, 52, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.patriot-quote i {
    color: #B22234;
    margin: 0 10px;
    font-size: 1.2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    font-weight: 300;
}

/* Memorial Counter */
.memorial-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.counter-container {
    text-align: center;
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
}

.counter-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Tribute Button */
.tribute-button {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.tribute-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.tribute-button:active {
    transform: translateY(-1px);
}

.tribute-button .fa-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s linear;
    opacity: 0;
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Time Counter Section */
.time-counter-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.incident-info {
    margin-bottom: 40px;
}

.incident-title {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 600;
}

.incident-title i {
    margin-right: 15px;
    color: #B22234;
}

.incident-details {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.time-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.time-unit {
    background: rgba(178, 34, 52, 0.2);
    border: 2px solid rgba(178, 34, 52, 0.4);
    border-radius: 15px;
    padding: 20px 10px;
    transition: all 0.3s ease;
}

.time-unit:hover {
    background: rgba(178, 34, 52, 0.3);
    border-color: #B22234;
    transform: translateY(-2px);
}

.time-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.time-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.current-time {
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    display: inline-block;
}

.timezone-label {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
    font-weight: 500;
}

.current-time-display {
    color: #FFD700;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .time-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .time-number {
        font-size: 2rem;
    }
    
    .incident-title {
        font-size: 1.8rem;
    }
    
    .time-counter-section {
        margin: 40px 0;
        padding: 30px 15px;
    }
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: #ff6b6b;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.content-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
    transition: left 0.5s ease;
}

.content-card:hover::before {
    left: 100%;
}

.content-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #4ecdc4;
    font-weight: 500;
}

.content-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Memories Section */
.memories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.memory-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.memory-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
}

.memory-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.6;
}

.memory-author {
    text-align: right;
    color: #4ecdc4;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Tribute Wall */
.tribute-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tribute-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid #4ecdc4;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.tribute-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.tribute-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

/* Footer */
.memorial-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.memorial-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.8;
    position: relative;
}

.memorial-quote blockquote::before,
.memorial-quote blockquote::after {
    content: '"';
    font-size: 2rem;
    color: #4ecdc4;
    font-family: serif;
}

.footer-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Floating Hearts */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-heart {
    position: absolute;
    color: #ff6b6b;
    font-size: 1.5rem;
    animation: floatUp 3s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

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

/* Quotes Section */
.quotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

/* Speeches Section */
.speeches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.speech-card {
    background: rgba(0, 40, 104, 0.15);
    border-left: 6px solid #002868;
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.speech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 40, 104, 0.4);
    background: rgba(0, 40, 104, 0.25);
}

.speech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    transition: left 0.6s ease;
}

.speech-card:hover::before {
    left: 100%;
}

.speech-title {
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.speech-title i {
    color: #B22234;
}

.speech-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
    font-family: 'Merriweather', serif;
}

.speech-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.speech-venue {
    color: #B22234;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speech-impact {
    color: #4ecdc4;
    font-weight: 500;
}

.quote-card {
    background: rgba(178, 34, 52, 0.1);
    border-left: 5px solid #B22234;
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(178, 34, 52, 0.3);
    background: rgba(178, 34, 52, 0.15);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    transition: left 0.5s ease;
}

.quote-card:hover::before {
    left: 100%;
}

.quote-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.7;
    font-style: italic;
    font-family: 'Merriweather', serif;
}

.quote-context {
    text-align: right;
    color: #B22234;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 2rem;
    color: #B22234;
    font-family: serif;
    line-height: 0;
}

.quote-text::before {
    margin-right: 5px;
}

.quote-text::after {
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .counter-number {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .quotes-container {
        grid-template-columns: 1fr;
    }
    
    .speeches-container {
        grid-template-columns: 1fr;
    }
    
    .speech-card {
        padding: 25px;
    }
    
    .speech-title {
        font-size: 1.2rem;
    }
    
    .speech-excerpt {
        font-size: 1rem;
    }
    
    .memorial-photo {
        width: 150px;
        height: 150px;
    }
    
    .tribute-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
}

/* Wallpaper Section Styles */
.wallpaper-section {
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.9) 0%, rgba(178, 34, 52, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallpaper-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.wallpaper-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.wallpaper-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(178, 34, 52, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.wallpaper-preview {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.wallpaper-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wallpaper-item:hover .wallpaper-preview img {
    transform: scale(1.05);
}

.wallpaper-info h3 {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #B22234 0%, #8B1538 100%);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(178, 34, 52, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #C8253A 0%, #9A1B42 100%);
}

.download-btn i {
    font-size: 1rem;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

/* Tablet and larger screens */
@media (max-width: 1024px) {
    .wallpaper-container {
        max-width: 900px;
        gap: 1.2rem;
    }
    
    .wallpaper-preview {
        height: 160px;
    }
    
    .wallpaper-info h3 {
        font-size: 0.9rem;
        min-height: 2.4rem;
    }
}

/* Mobile screens - 2 columns */
@media (max-width: 768px) {
    .wallpaper-section {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }
    
    .wallpaper-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    .wallpaper-preview {
        height: 140px;
    }
    
    .wallpaper-info h3 {
        font-size: 0.85rem;
        min-height: 2.2rem;
    }
    
    .download-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .wallpaper-item {
        padding: 1rem;
    }
}

/* Very small screens - 1 column */
@media (max-width: 480px) {
    .wallpaper-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .wallpaper-preview {
        height: 180px;
    }
    
    .wallpaper-info h3 {
        font-size: 0.95rem;
        min-height: auto;
    }
    
    .download-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}