/* Hero Section - Car Charger Focus */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-secondary) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xxl) 0;
    margin-top: 0;
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(229, 229, 229, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    min-height: 70vh;
}

.hero-text {
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero-title-main {
    display: block;
    color: var(--black);
    margin-bottom: var(--spacing-xs);
}

.hero-title-sub {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-description {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Electric Car Company Logos Showcase */
.electric-car-showcase {
    position: relative;
    width: 400px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    width: 300px;
    height: 400px;
    background: linear-gradient(145deg, var(--white), var(--background-secondary));
    border-radius: var(--radius-xl);
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

/* Desktop: ensure iPad mockup is fully visible */
@media (min-width: 1024px) {
	.hero-section,
	.hero-visual,
	.electric-car-showcase,
	.logo-container {
		overflow: visible;
	}
	.electric-car-showcase {
		height: auto;
	}
	.logo-container {
		height: auto;
	}
    .hero-actions {
        flex-wrap: nowrap;
    }
    /* Slightly reduce iPad size so edges are fully visible */
    .electric-car-showcase .tablet-wrapper {
        transform: scale(0.9);
        transform-origin: center;
    }
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(26, 115, 232, 0.03) 90deg,
        rgba(26, 115, 232, 0.05) 180deg,
        rgba(26, 115, 232, 0.03) 270deg,
        transparent 360deg
    );
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.logo-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: none;
}

.electric-logo {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--white), var(--background-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
    box-shadow: none;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0.8);
    border: 2px solid var(--border-color);
}

.electric-logo.active {
    opacity: 1;
    transform: scale(1);
    animation: logoFadeIn 0.8s ease-out;
}

.electric-logo img {
    width: 120px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0.2) contrast(1.1);
    transition: all var(--transition-normal);
}

.logo-container:hover .electric-logo img {
    filter: grayscale(0) contrast(1.2);
    transform: scale(1.05);
}

.logo-info {
    text-align: center;
    position: relative;
    z-index: 2;
}

.company-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.company-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    transition-delay: 0.1s;
}

.electric-logo.active + .logo-info .company-name,
.logo-info.active .company-name {
    opacity: 1;
    transform: translateY(0);
}

.electric-logo.active + .logo-info .company-tagline,
.logo-info.active .company-tagline {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Animation Keyframes */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(-15deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes logoFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.95) rotateY(15deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotateY(30deg);
    }
}

.electric-logo.fade-out {
    animation: logoFadeOut 0.6s ease-in forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--text-secondary);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.scroll-arrow:hover {
    border-color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: rotate(45deg) translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: rotate(45deg) translate3d(0, -8px, 0);
    }
    70% {
        transform: rotate(45deg) translate3d(0, -4px, 0);
    }
    90% {
        transform: rotate(45deg) translate3d(0, -2px, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        overflow: visible;
    }
    .hero-visual {
        overflow: visible;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    /* Improved hero heading on small screens */
    .hero-title {
        line-height: 1.15;
        letter-spacing: -0.01em;
        margin-bottom: var(--spacing-md);
    }
    .hero-title-main {
        margin-bottom: var(--spacing-xs);
    }
    .hero-title-sub {
        font-weight: 600;
    }
    .hero-description {
        max-width: 32ch;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions .btn {
        width: auto;
        max-width: none;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
    
    .stat-item {
        min-width: 80px;
        padding: var(--spacing-sm);
        background: rgba(255, 255, 255, 0.9);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-light);
    }
    
    .electric-car-showcase {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }
    .electric-car-showcase,
    .logo-container {
        overflow: visible;
    }
    
    .logo-container {
        width: 260px;
        height: 320px;
    }
    
    .electric-logo {
        width: 140px;
        height: 140px;
    }
    
    .electric-logo img {
        width: 90px;
        max-height: 55px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 80vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: clamp(2.1rem, 8vw, 2.6rem);
        line-height: 1.2;
        letter-spacing: -0.01em;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .hero-actions {
        margin-bottom: var(--spacing-md);
    }
    
    .electric-car-showcase {
        max-width: 280px;
        height: auto;
    }
    
    .logo-container {
        width: 220px;
        height: 280px;
        padding: var(--spacing-md);
    }
    
    .electric-logo {
        width: 120px;
        height: 120px;
    }
    
    .electric-logo img {
        width: 80px;
        max-height: 50px;
    }
}