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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 20px;
}

.nav-logo h1 {
    color: #3498db;
    font-size: 1.8rem;
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(231, 76, 60, 0.3));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

/* ForeverAndYou logo variant for the campaign site */
.foreverandyou-logo .chemical-structure {
    stroke: #ff6b6b;
}

.foreverandyou-logo h1 {
    color: #ff6b6b;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.foreverandyou-logo h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 107, 0.1) 50%, transparent 100%);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pfas-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Orbitron', 'Rajdhani', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
    position: relative;
    animation: glitch 2s infinite;
}

.hero-content h1::before,
.hero-content h1::after {
    content: 'FOREVER AND YOU';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', 'Rajdhani', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
}

.hero-content h1::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.hero-content h1::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 90%, 100% { 
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% { 
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    20% { 
        transform: translate(2px, -2px);
        filter: hue-rotate(180deg);
    }
    30% { 
        transform: translate(-2px, -2px);
        filter: hue-rotate(270deg);
    }
    40% { 
        transform: translate(2px, 2px);
        filter: hue-rotate(360deg);
    }
    50% { 
        transform: translate(-1px, 1px);
        filter: hue-rotate(45deg);
    }
    60% { 
        transform: translate(1px, -1px);
        filter: hue-rotate(135deg);
    }
    70% { 
        transform: translate(-1px, -1px);
        filter: hue-rotate(225deg);
    }
    80% { 
        transform: translate(1px, 1px);
        filter: hue-rotate(315deg);
    }
}

@keyframes glitch-1 {
    0%, 90%, 100% { 
        transform: translate(0);
        opacity: 0.8;
    }
    10% { 
        transform: translate(-3px, 3px);
        opacity: 0.6;
    }
    20% { 
        transform: translate(3px, -3px);
        opacity: 0.4;
    }
    30% { 
        transform: translate(-3px, -3px);
        opacity: 0.6;
    }
    40% { 
        transform: translate(3px, 3px);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-2px, 2px);
        opacity: 0.7;
    }
    60% { 
        transform: translate(2px, -2px);
        opacity: 0.5;
    }
    70% { 
        transform: translate(-2px, -2px);
        opacity: 0.6;
    }
    80% { 
        transform: translate(2px, 2px);
        opacity: 0.4;
    }
}

@keyframes glitch-2 {
    0%, 90%, 100% { 
        transform: translate(0);
        opacity: 0.6;
    }
    10% { 
        transform: translate(3px, -3px);
        opacity: 0.4;
    }
    20% { 
        transform: translate(-3px, 3px);
        opacity: 0.6;
    }
    30% { 
        transform: translate(3px, 3px);
        opacity: 0.4;
    }
    40% { 
        transform: translate(-3px, -3px);
        opacity: 0.6;
    }
    50% { 
        transform: translate(2px, -2px);
        opacity: 0.5;
    }
    60% { 
        transform: translate(-2px, 2px);
        opacity: 0.7;
    }
    70% { 
        transform: translate(2px, 2px);
        opacity: 0.4;
    }
    80% { 
        transform: translate(-2px, -2px);
        opacity: 0.6;
    }
}

/* Disable glitch effect on hero heading */
.hero-content h1 {
    animation: none;
}

.hero-content h1::before,
.hero-content h1::after {
    content: none;
    animation: none;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .hero-content h1 {
        color: white;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f39c12;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
}

.hero-urgency {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(238, 232, 232, 0.875);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.hero-urgency p {
    margin: 0;
    font-size: 1rem;
    color: #e74c3c;
}

.hero-urgency i {
    margin-right: 0.5rem;
}

/* Hero Text Content */
.hero-text-content {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-text-content h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(248, 246, 246, 0.693);
}

.hero-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(48, 42, 42, 0.948);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    backdrop-filter: blur(5px);
}

.hero-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-disclaimer i {
    margin-right: 0.5rem;
}

/* Pre-Qualification Form */
.pre-qualification-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pre-qualification-form h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.qualification-form {
    text-align: left;
}

.form-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.form-question h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.form-question h4 i {
    color: #3498db;
    margin-right: 0.5rem;
}

.form-question p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.radio-group label:hover, .checkbox-group label:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.form-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.form-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: #e74c3c;
    line-height: 1.4;
}

.form-disclaimer i {
    margin-right: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    background: #fff;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.video-description p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

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

.bg-light {
    background-color: #f8f9fa;
}

/* Crisis Alert Section */
.crisis-alert {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.crisis-header {
    text-align: center;
    margin-bottom: 3rem;
}

.crisis-header i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.crisis-header h2 {
    color: white;
    font-size: 2.5rem;
}

.crisis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.crisis-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: white;
}

.crisis-description h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.crisis-description p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.crisis-description strong {
    color: #f39c12;
}

/* Qualification Section */
.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.qualification-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid #3498db;
}

.qualification-card:hover {
    transform: translateY(-5px);
}

.qualification-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.qualification-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.qualification-card p {
    margin-bottom: 0;
    color: #666;
    font-size: 1rem;
}

.qualification-cta {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 5px solid #e74c3c;
}

.qualification-cta h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.qualification-cta p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.mission-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.mission-card p {
    margin-bottom: 1rem;
    color: #666;
}

.mission-note {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 5px solid #3498db;
}

.mission-note p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resource-category h3 {
    color: #3498db;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-category h3 i {
    font-size: 1.5rem;
}

.resource-category ul {
    list-style: none;
}

.resource-category ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.resource-category ul li:last-child {
    border-bottom: none;
}

.resources-cta {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resources-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: #3498db;
    margin-right: 1rem;
    width: 40px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Forms */
.simple-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .crisis-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .crisis-header h2 {
        font-size: 2rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background-color: #333;
        color: #fff;
        border: 2px solid #333;
    }
    
    .crisis-alert {
        background: #000;
        color: #fff;
    }
}
