/* css/pages/home.css - Homepage specific styles */

/* ===== UNIQUE eSafeRIDE HERO ===== */

.esafe-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-900));
    color: white;
    overflow: hidden;
    padding: 100px 0 80px;
}

/* Background Patterns */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-route-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 90 M10 90 L90 10' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' stroke='rgba(232,117,58,0.05)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
}

/* Content Layout */
.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

/* Left Column */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: relative;
    z-index: 11;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.8);
    width: fit-content;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    font-family: var(--font-display);
    color: white;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.3s; }

.text-highlight {
    color: var(--color-secondary-400);
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(245, 158, 11, 0.18);
    z-index: -1;
    border-radius: 4px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--leading-relaxed);
    max-width: 500px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.7s forwards;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-actions .btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.9);
    color: white;
}

.hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: white;
    color: white;
}

.hero-trust {
    display: flex;
    gap: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    position: relative;
    z-index: 11;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.9s forwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.trust-item i {
    color: var(--color-secondary-400);
}

/* Right Column - Safety Dashboard */
.hero-right {
    position: relative;
    z-index: 11;
    max-width: 100%;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.safety-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    margin-left: auto;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-status {
    font-size: var(--text-xs);
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-stat {
    text-align: center;
    min-width: 0;
}

.dash-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: white;
    line-height: 1.2;
    white-space: nowrap;
}

.dash-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.dashboard-route {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.route-map {
    position: relative;
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: visible;
}

.route-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.route-pin.start {
    top: 0;
    left: 0;
    background: var(--color-success);
    box-shadow: 0 0 12px rgba(46, 160, 67, 0.4);
}

.route-pin.end {
    bottom: 0;
    right: 0;
    background: var(--color-secondary-400);
    box-shadow: 0 0 12px rgba(232, 117, 58, 0.4);
}

.route-line {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-success), var(--color-secondary-400));
    transform: translateY(-50%);
}

.route-vehicle {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    z-index: 2;
    animation: move-vehicle 3s ease-in-out infinite;
}

@keyframes move-vehicle {
    0%, 100% { transform: translate(-50%, -50%) translateX(-10px); }
    50% { transform: translate(-50%, -50%) translateX(10px); }
}

.route-info {
    flex: 1;
}

.route-label {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-detail {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: white;
}

.route-safe {
    font-size: var(--text-xs);
    color: var(--color-success);
}

.dashboard-footer {
    padding-top: var(--space-4);
    text-align: center;
}

.footer-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
    transform: translateY(1px);
    fill: #ffffff;
}

/* ===== OVERVIEW SECTION ===== */

.overview-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-surface);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.overview-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.overview-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.overview-impacts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.impact-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-background-alt);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    border-left: 4px solid var(--color-secondary);
}

.impact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.impact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.impact-content h4 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.impact-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Platform Cards */
.overview-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.platform-card {
    background: var(--color-background-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.platform-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.platform-card:nth-child(3) {
    grid-column: 1 / -1;
}

.platform-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: white;
}

.platform-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== MARKET SECTION ===== */

.market-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background-alt);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.market-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.market-card.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-color: var(--color-secondary);
}

.market-card.highlight h4 {
    color: white;
}

.market-card.highlight p {
    color: rgba(255,255,255,0.9);
}

.market-card.highlight .market-icon {
    background: var(--color-secondary);
    color: white;
}

.market-icon {
    width: 60px;
    height: 60px;
    background: var(--color-background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.market-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.market-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== FOUNDERS SECTION ===== */

.founders-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    display: flex;
    gap: var(--spacing-lg);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-base);
}

.founder-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.12);
    border-color: var(--color-secondary);
}

.founder-avatar {
    font-size: 4rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.founder-info h3 {
    color: white;
    margin-bottom: 0.25rem;
}

.founder-role {
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.founder-bio {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.founder-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.founder-contact i {
    color: var(--color-secondary);
}

/* ===== HOME CTA ===== */

.home-cta {
    padding: var(--spacing-xl) 0;
    background: var(--color-surface);
    text-align: center;
}

.cta-block h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
}

.cta-block p {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

@media (min-width: 1600px) {
    .esafe-hero {
        padding: 140px 0 120px;
    }
}

@media (max-width: 1400px) {
    .hero-content {
        gap: var(--space-10);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .founders-grid {
        grid-template-columns: 1fr;
    }

    .overview-visual {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .esafe-hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: 0 var(--space-4);
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .hero-trust {
        justify-content: flex-start;
    }

    .safety-dashboard {
        max-width: 100%;
        margin-left: 0;
        padding: var(--space-4);
    }

    .market-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .overview-visual {
        grid-template-columns: 1fr;
    }

    .platform-card:nth-child(3) {
        grid-column: auto;
    }

    .founder-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .cta-block h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .esafe-hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: var(--space-2);
    }

    .trust-item {
        white-space: normal;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }

    .dash-number {
        font-size: var(--text-xl);
    }

    .dashboard-route {
        flex-direction: column;
        align-items: stretch;
    }

    .route-map {
        width: 100%;
        height: 40px;
    }
}

/* Height-based adjustments for short screens */
@media (max-height: 700px) and (min-width: 769px) {
    .esafe-hero {
        min-height: auto;
        padding: 60px 0 50px;
    }
}

