/* ==========================================
   HOME PAGE STYLES
   ========================================== */

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('../images/indexbg.jpg') center center / cover no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#parkingCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 1000px;
}

.hero-title {
    color: #fff;
    font-size: 5.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    line-height: 2.08;
    opacity: 0.95;
    font-weight: var(--font-weight-regular);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Parking Demo Section */
.parking-demo {
    padding: 5rem 0;
    background: var(--light-gray);
}

.demo-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
}

.team-video-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-video {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: var(--dark-gray);
}

#parkingSimulation {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-bottom: 2rem;
}

.demo-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.demo-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid var(--medium-gray);
}

.legend-color.available {
    background: #4CAF50;
}

.legend-color.occupied {
    background: #F44336;
}

.legend-color.reserved {
    background: #FF9800;
}

.legend-color.vehicle {
    background: var(--primary-blue);
}

/* Solution Highlights */
.solution-highlights {
    padding: 5rem 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.highlight-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 70%);
    z-index: 1;
}

.highlight-card h3,
.highlight-card p {
    position: relative;
    z-index: 2;
}

.highlight-card-1 {
    background-image: url('../images/spic1.jpg');
}

.highlight-card-2 {
    background-image: url('../images/spic2.png');
    background-size: contain;
    background-position: center center;
}

.highlight-card-3 {
    background-image: url('../images/spic3.png');
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.highlight-icon {
    display: none;
}

.highlight-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: var(--font-weight-bold);
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Social Impact */
.social-impact {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.social-impact .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.impact-text {
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: center;
    max-width: 1400px;
    margin: 0.5rem auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Demo Request Form */
.demo-request {
    padding: 5rem 0;
    background: var(--light-gray);
}

.demo-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(10, 116, 218, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    #parkingSimulation {
        height: 300px;
    }
    
    .team-video-container {
        padding: 1.5rem;
    }
    
    .team-video {
        border-radius: 8px;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .demo-btn {
        width: 100%;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .highlight-card {
        min-height: 400px;
        padding: 2rem;
    }
    
    .highlight-card h3 {
        font-size: 1.5rem;
    }
    
    .highlight-card p {
        font-size: 1rem;
    }
    
    .demo-form {
        padding: 2rem;
    }
}
