/* Resilient Street Website Styles */

/* Custom Properties (CSS Variables) */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --white: #fff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    padding-top: 56px; /* Account for fixed navbar */
}

/* Navigation */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.85;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-image {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Section */
.about-image-container {
    position: relative;
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
}

/* Consent Section */
.consent-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

.consent-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.consent-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.consent-card p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* PDF Viewer */
.pdf-viewer-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.pdf-embed {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.pdf-embed iframe {
    border: none;
    display: block;
}

/* Download Section */
.store-badge-link {
    text-decoration: none;
    color: var(--white);
}

.store-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.store-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.store-badge {
    max-width: 200px;
    height: auto;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Footer */
footer {
    background: #1a1a2e !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: var(--gradient-primary);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-width: 2px;
}

.btn-outline-primary {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-width: 2px;
}

.btn-light {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-image {
        max-width: 250px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .consent-card {
        padding: 2rem;
    }
    
    .pdf-embed iframe {
        height: 400px;
    }
    
    .store-card {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 70px;
}
