/* ============================================
   ELITECH HUB - IMPROVED HOME PAGE
   Professional Corporate with Creative Animations
   ============================================ */

/* ============================================
   1. HERO SECTION - VIDEO BACKGROUND
   ============================================ */

.hero-professional {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--secondary-color-dark);
    overflow: hidden;
    padding: 8rem 0 4rem;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Video Overlay for Text Readability */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(18, 52, 107, 0.4) 0%,
            rgba(12, 35, 70, 0.35) 50%,
            rgba(195, 21, 28, 0.3) 100%);
    z-index: 1;
}

/* Alternative: Simpler dark overlay */
.hero-video-overlay-simple {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Fallback background if video doesn't load */
.hero-professional::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-color-dark) 0%, var(--secondary-color) 50%, var(--primary-color-dark) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.trust-badge i {
    font-size: 1.1rem;
}

/* Hero Heading */
.hero-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-heading .highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-top: 0.5rem;
}

.hero-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    animation: expandWidth 1.5s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 650px;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-subtitle strong {
    color: white;
    font-weight: 700;
}

.hero-subtitle em {
    color: var(--primary-color-light);
    font-style: normal;
    font-weight: 700;
    position: relative;
}

/* Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
    text-align: center;
    position: relative;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: scale(1.1);
}

.hero-stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

.hero-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-hero-primary {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(195, 21, 28, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-hero-primary:hover::before {
    opacity: 1;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(195, 21, 28, 0.5);
}

.btn-hero-primary span {
    position: relative;
    z-index: 1;
}

.btn-hero-primary i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(5px);
}

.btn-hero-outline {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Social Proof */
.hero-social-proof {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-social-proof strong {
    color: var(--primary-color-light);
    font-weight: 700;
}

/* Terminal Simulation */
.hero-terminal {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid rgba(195, 21, 28, 0.4);
    border-radius: 1rem;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    box-shadow: 0 0 60px rgba(195, 21, 28, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.terminal-dot-red {
    background: var(--primary-color);
    color: var(--primary-color);
}

.terminal-dot-yellow {
    background: var(--warning-amber);
    color: var(--warning-amber);
}

.terminal-dot-green {
    background: var(--success-color);
    color: var(--success-color);
}

.terminal-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.terminal-content {
    line-height: 1.8;
    min-height: 350px;
    color: #00ff00;
}

.terminal-prompt {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt i {
    color: var(--primary-color);
}

/* Scanline Effect */
.terminal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
    animation: scanline 3s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* ============================================
   2. PROGRAMS SECTION - MODERN CARDS
   ============================================ */

.programs-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.program-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.program-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.program-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.program-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.program-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.program-price-note {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.program-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.program-feature:last-child {
    border-bottom: none;
}

.program-feature i {
    color: var(--success-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.program-cta {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.program-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(195, 21, 28, 0.3);
}

/* ============================================
   3. TESTIMONIALS - MODERN CAROUSEL
   ============================================ */

.testimonials-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--secondary-color-dark), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem 0;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 280px;
    /* Reduced from 350px for narrow screens */
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    transition: all 0.3s ease;
}

/* Force single card on very narrow screens */
@media (max-width: 400px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 2rem;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    color: var(--warning-amber);
    font-size: 1.25rem;
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    min-height: 150px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: white;
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* ============================================
   4. ANIMATION KEYFRAMES
   ============================================ */

@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 fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================
   5. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .hero-professional {
        padding: 6rem 0 3rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

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

    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
    }
}