/* ==========================================
   NEW HERO SECTION DESIGN (Reference Image Style)
   ========================================== */

/* Hero Content Layout */
.hero-content-new {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    padding: 120px 0 40px;
    padding-top: max(100px, 12vh);
    /* Reduced for mobile */
}

@media (min-width: 1024px) {
    .hero-content-new {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 140px 0 60px;
        padding-top: max(140px, 22vh);
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Left Side - Text Content */
.hero-left {
    text-align: inherit;
}

/* Small Badge */
.hero-small-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    /* White text */
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Title - Large */
.hero-main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    /* White text */
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-main-title .highlight {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
}

/* Main Description */
.hero-main-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    /* White text (slightly transparent) */
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Medium Container for Hero (Wider than navbar, but not full) */
.container-medium {
    max-width: 1400px;
    /* Wider than navbar (1250px) */
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Main Buttons */
.hero-main-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: #1F2937;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Social Media Section */
.hero-social {
    margin-top: 24px;
}

.hero-social-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    /* White text */
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icon-hero {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Right Side - Image Card */
.hero-right {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .hero-right {
        display: block;
    }
}

.hero-image-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    clip-path: inset(0 round 40px);
    background: transparent;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
    max-height: 850px;
    width: 100%;
    display: flex;
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* Spacer Image */
.hero-image-card>img[style*="position: relative"] {
    max-height: 850px;
    width: auto;
    margin: 0 auto;
}

/* Floating Info Card */
.hero-floating-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: floatUp 3s ease-in-out infinite;
    z-index: 20;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.floating-info-text {
    display: flex;
    flex-direction: column;
}

.floating-info-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2px;
}

.floating-info-text span {
    font-size: 0.75rem;
    color: #6B7280;
}

/* Stats Cards */
.hero-stats-cards {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .hero-stats-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.stat-card-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.stat-card-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
}

.stat-card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card-content p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.2;
}

/* =========================================
   TELEPORT / SCAN ANIMATION EFFECTS
   ========================================= */

/* Hero Video Layer */
.hero-anim-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: top center !important;
    z-index: 5;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    /* Fully Visible */
    transition: opacity 0.5s ease, clip-path 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active Class for Video Wipe Animation */
.hero-anim-video.scanning {
    clip-path: inset(0 0 100% 0);
    /* Clip from bottom to top */
}

/* Hero Static Image Layer */
.hero-image {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: top center !important;
    z-index: 6;
    clip-path: inset(100% 0 0 0);
    /* Hidden (clipped from top) */
    transition: clip-path 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* No filter for cleaner look, or match profile: */
    /* filter: brightness(1.1) contrast(1.05); */
}

/* Active Class for Image Reveal Animation */
.hero-image.active {
    clip-path: inset(0 0 0 0);
    /* Reveal fully */
}

/* SCAN LINE EFFECT */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    bottom: 0;
    /* Generic School Blue/Cyan Theme */
    background: linear-gradient(to right, transparent, #00c9ff, #2563EB, #00c9ff, transparent);
    box-shadow: 0 0 15px #00c9ff, 0 0 30px #2563EB, 0 0 45px rgba(0, 201, 255, 0.5);
}

.scan-line.active {
    opacity: 1;
    animation: heroScanMove 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroScanMove {
    0% {
        bottom: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* ENERGY PARTICLES */
.scan-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 16;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 201, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 40% 60%, rgba(37, 99, 235, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 60% 80%, rgba(0, 201, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 80% 60%, rgba(37, 99, 235, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 50% 50%, rgba(0, 201, 255, 0.3) 0%, transparent 2%);
}

.scan-particles.active {
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: particlesPulse 2.5s ease forwards;
}

@keyframes particlesPulse {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 1023px) {
    .hero-main-title {
        font-size: 2.25rem;
        /* Slightly smaller for mobile */
    }

    .hero-main-description {
        max-width: 100%;
    }

    .hero-main-buttons {
        flex-direction: column;
    }

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

    .stat-card-hero {
        padding: 12px 8px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        border-radius: 12px;
    }

    .stat-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .stat-card-content h3 {
        font-size: 1.25rem;
        margin-bottom: 2px;
    }

    .stat-card-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .hero-stats-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 24px;
    }
    
    .stat-card-hero {
        padding: 10px 5px;
    }
    
    .stat-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .stat-card-content h3 {
        font-size: 1.1rem;
    }
    
    .stat-card-content p {
        font-size: 0.65rem;
    }
}

@media (max-height: 750px) {
    .hero-main-title {
        font-size: clamp(2rem, 10vh, 3.5rem);
        margin-bottom: 8px;
    }

    .hero-main-description {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .hero-stats-cards {
        margin-top: 20px;
    }

    .stat-card-hero {
        padding: 12px;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-card-content h3 {
        font-size: 1.3rem;
    }

    .hero-main-buttons .btn-hero-primary,
    .hero-main-buttons .btn-hero-secondary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) {

    .hero-small-badge,
    .hero-social,
    .hero-stats-cards {
        display: none;
    }

    .hero-main-title {
        font-size: clamp(1.8rem, 8vh, 2.5rem);
    }
}