/* Homepage Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 30px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,224L48,186.7C96,149,192,75,288,74.7C384,75,480,149,576,160C672,171,768,117,864,117.3C960,117,1056,171,1152,186.7C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-button.primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.emergency-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
}

.emergency-badge i {
    margin-right: 8px;
    color: #ff8a65;
    animation: pulse 1.5s infinite;
}

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

/* Services Section */
.services {
    padding: 60px 0;
    text-align: center;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

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

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    text-align: center;
    background-color: #f5f9ff;
    margin: 60px 0;
    border-radius: var(--border-radius-lg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.step {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow);
    z-index: 10;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    font-size: 15px;
}

.cta-container {
    margin-top: 40px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-quote {
    font-size: 30px;
    color: var(--primary-light);
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.testimonial-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.testimonial-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* Responsive styles for homepage */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .emergency-badge {
        font-size: 0.875rem;
        padding: 8px 16px;
    }
    
    .service-cards,
    .steps,
    .testimonial-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
}
