/* ============================================
   PATRIOTIC USA WEBSITE - CSS STYLESHEET
   ============================================ */

/* Root Variables */
:root {
    --usa-red: #B22234;
    --usa-blue: #3C3B6B;
    --usa-white: #FFFFFF;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--usa-white);
}

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

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--usa-blue) 0%, var(--usa-red) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--usa-white);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--usa-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--usa-blue) 0%, #1a1a3f 50%, var(--usa-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--usa-white);
    text-align: center;
}

.stars-background {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--usa-white);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 25%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 10%; left: 50%; animation-delay: 1s; }
.star:nth-child(4) { top: 30%; left: 75%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 50%; left: 90%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}
.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.flag-stripe {
    height: 8px;
    width: 200px;
    margin: 5px auto;
    animation: slideIn 1.5s ease-in-out;
}

.stripe-red {
    background-color: var(--usa-red);
    animation-delay: 0s;
}

.stripe-white {
    background-color: var(--usa-white);
    animation-delay: 0.3s;
}

.stripe-blue {
    background-color: var(--usa-blue);
    animation-delay: 0.6s;
}

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

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

/* ============================================
   HERITAGE SECTION
   ============================================ */

.heritage {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.heritage h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--usa-blue);
    position: relative;
    padding-bottom: 1rem;
}

.heritage h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--usa-red), var(--usa-white), var(--usa-blue));
    margin: 1rem auto 0;
}

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

.heritage-card {
    background: var(--usa-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--usa-blue);
}

.heritage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-top-color: var(--usa-red);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.heritage-card h3 {
    color: var(--usa-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.heritage-card p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   VALUES SECTION
   ============================================ */

.values {
    background: linear-gradient(135deg, var(--usa-red) 0%, var(--usa-blue) 100%);
    color: var(--usa-white);
    padding: 5rem 0;
}

.values h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.values h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--usa-white);
    margin: 1rem auto 0;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: var(--usa-white);
}

.value-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--usa-white);
    color: var(--usa-blue);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--dark-gray);
    color: var(--usa-white);
    padding: 3rem 0;
}

.footer h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--usa-red);
}

.footer > .container > p:nth-of-type(1) {
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: var(--usa-white);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 4px;
}

.social-link:hover {
    color: var(--usa-red);
    border-color: var(--usa-red);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

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

    .hero-content p {
        font-size: 1.3rem;
    }

    .heritage h2,
    .values h2 {
        font-size: 2rem;
    }

    .heritage-grid,
    .values-list {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        width: 100%;
    }

    .social-link {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

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

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

    .flag-stripe {
        width: 150px;
    }

    .heritage h2,
    .values h2 {
        font-size: 1.5rem;
    }

    .heritage-card,
    .value-item {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .footer h2 {
        font-size: 1.5rem;
    }
}
