/* ========== ROOT VARIABLES ========== */
:root {
    --primary: #3dd845;
    --secondary: #2bc9de;
    --dark: #0a2e38;
    --light: #f8f9fa;
    --gray: #6c757d;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* ========== HERO SECTION ========== */
.howdriving-hero {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.howdriving-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ========== STEPS SECTION ========== */
.howdriving-steps {
    padding: 5rem 0;
    position: relative;
}

.step-container {
    padding: 4rem 0;
    position: relative;
}

.step-container:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.step-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" stroke="%233dd845" stroke-width="0.5" stroke-opacity="0.1" d="M0,0 L100,100 M100,0 L0,100"></path></svg>');
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 0;
}

.step-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Alternating layout */
.step-container:nth-child(odd) .step-row {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    background: var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-number:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--secondary);
}

.step-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.step-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 2rem;
}

.step-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    perspective: 1000px;
}

.step-img {
    width: 100%;
    max-width: 50%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: rotateY(-5deg);
    transition: var(--transition);
}

.step-image:hover .step-img {
    transform: rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-badge {
    height: 50px;
    transition: var(--transition);
    border-radius: var(--radius);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.download-badge:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

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

.step-container {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.step-container:nth-child(1) { animation-delay: 0.1s; }
.step-container:nth-child(2) { animation-delay: 0.3s; }
.step-container:nth-child(3) { animation-delay: 0.5s; }
.step-container:nth-child(4) { animation-delay: 0.7s; }
.step-container:nth-child(5) { animation-delay: 0.9s; }
.step-container:nth-child(6) { animation-delay: 1.1s; }
.step-container:nth-child(7) { animation-delay: 1.3s; }

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
    .step-row,
    .step-container:nth-child(odd) .step-row {
        flex-direction: column;
    }
    
    .step-content {
        text-align: center;
        padding: 2rem 0;
    }
    
    .step-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .step-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .howdriving-hero {
        height: 60vh;
        min-height: 400px;
        margin-top: 70px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .download-badge {
        height: 45px;
    }
}