/* ============================================
   KERALA ROADSIDE ASSISTANCE - MAIN STYLESHEET
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ---------- HEADER ---------- */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.logo-text span {
    color: #f97316;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #f97316;
}

.emergency-nav-btn {
    background: #dc2626;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
}

.emergency-nav-btn:hover {
    background: #b91c1c;
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ---------- HERO SECTION ---------- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    animation: fadeIn 1.5s ease;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f8fafc, transparent);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #f97316;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

.hero-image {
    animation: slideInRight 0.8s ease;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
    font-size: 14px;
    font-weight: 500;
}

.floating-card-1 {
    top: 10%;
    left: -20px;
}

.floating-card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1s;
}

/* ---------- SERVICES SECTION ---------- */
.services {
    padding: 100px 24px;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 18px;
    color: #475569;
}

.services-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #dc2626);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-price {
    font-size: 24px;
    font-weight: 800;
    color: #f97316;
}

.service-price small {
    font-size: 14px;
    font-weight: normal;
    color: #94a3b8;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
    padding: 100px 24px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.how-it-works .section-header h2 {
    background: linear-gradient(135deg, #ffffff, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works .section-header p {
    color: #94a3b8;
}

.steps-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step p {
    color: #94a3b8;
    line-height: 1.5;
}

/* ---------- COVERAGE AREAS ---------- */
.coverage {
    padding: 100px 24px;
    background: #f8fafc;
}

.cities-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.city-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.city-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
}

/* ---------- EMERGENCY FORM ---------- */
.emergency-form {
    padding: 80px 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.request-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.form-group label i {
    color: #f97316;
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.location-btn-small {
    margin-top: 8px;
    background: #f1f5f9;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.location-btn-small:hover {
    background: #e2e8f0;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success i {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.form-success p {
    color: #64748b;
    margin-bottom: 24px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 100px 24px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.testimonials-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.author-name {
    font-weight: 700;
    color: #1e293b;
}

.author-location {
    font-size: 12px;
    color: #94a3b8;
}

/* ---------- CTA SECTION ---------- */
.cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light {
    background: white;
    color: #f97316;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: #f97316;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 24px 30px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-logo span {
    color: #f97316;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #f97316;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f97316;
}

.footer-links i {
    margin-right: 8px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

/* ---------- FIXED CALL BUTTON ---------- */
.fixed-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s;
}

.fixed-call:hover {
    transform: scale(1.1);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid #1e293b;
    }

    .nav.active {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-container {
        padding: 32px 24px;
    }

    .fixed-call {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}