/* Hero Section */
.hero-section {
    padding: 4.25rem 0 4rem;
    background: #ffffff;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    font-weight: 700;
}

.hero-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Liquid Glass Buttons are defined in main.css */
/* Hero specific overrides */
.btn-get-started,
.btn-try-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 56px;
    padding: 0;
    font-size: 1.15rem;
    z-index: 1;
}

/* Fine-tune hover alignment to keep icon and text group perfectly centered */
.hero-buttons .get-started-slider:hover .icon-container {
    transform: translateX(90px) !important;
}

.hero-buttons .get-started-slider:hover .btn-text {
    transform: translateX(12px) !important;
}

.hero-buttons .arrow-slider:hover .icon-container {
    transform: translateX(10px) !important;
}

.hero-buttons .arrow-slider:hover .btn-text {
    transform: translateX(-8px) !important;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatars {
    display: flex;
    align-items: center;
}

.student-avatars img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    object-fit: cover;
}

.student-avatars img:first-child {
    margin-left: 0;
}

.stats-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Hero Images */
.hero-images {
    position: relative;
    height: 600px;
    animation: fadeInRight 0.8s ease-out;
}

.hero-image-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

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

/* Hero video thumbnail styles */
#hero-thumbnail {
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Inline video playing state */
.student-image.video-playing {
    z-index: 10;
}

.student-image.video-playing #hero-thumbnail {
    object-fit: cover;
}

.play-button {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image {
    top: 0;
    left: 310px;
    width: 270px;
    height: 270px;
    z-index: 3;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.info-card {
    top: 290px;
    left: 310px;
    width: 270px;
    height: 270px;
    background: linear-gradient(135deg, rgba(14, 65, 91, 0.95), rgba(10, 53, 71, 0.85));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    color: var(--white);
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.6),
        inset 0 -8px 15px rgba(0, 0, 0, 0.6),
        inset 0 10px 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5%;
    right: 5%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 10;
    border-radius: 20px 20px 50% 50%;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.4),
        inset 0 6px 10px rgba(255, 255, 255, 0.7),
        inset 0 -8px 15px rgba(0, 0, 0, 0.7),
        inset 0 15px 25px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(16, 75, 105, 0.98), rgba(12, 60, 80, 0.9));
    border-color: rgba(255, 255, 255, 0.4);
}

.info-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20 L80 20 L80 50 L50 80 L20 50 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Cpath d='M30 35 L70 35' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Cpath d='M30 45 L70 45' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.info-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    position: relative;
    z-index: 11;
}

.info-card-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 11;
}

.student-image {
    top: 0px;
    left: 0px;
    width: 290px;
    height: 560px;
    z-index: 4;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid rgba(225, 55, 50, 0.5);
    box-shadow:
        0 0 0 0 rgba(225, 55, 50, 0.4),
        0 10px 30px -5px rgba(0, 0, 0, 0.15),
        inset 0 4px 8px rgba(255, 255, 255, 0.9),
        inset 0 -5px 10px rgba(0, 0, 0, 0.06);
    animation: pulse-ring 2s infinite;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.play-button::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 18%;
    right: 18%;
    height: 38%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    border-radius: 50%;
    pointer-events: none;
}

.play-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 248, 248, 0.95));
    transform: translate(-50%, -50%) scale(1.08);
    border-color: rgba(225, 55, 50, 0.7);
    box-shadow:
        0 5px 30px rgba(225, 55, 50, 0.3),
        0 15px 35px -5px rgba(0, 0, 0, 0.2),
        inset 0 5px 10px rgba(255, 255, 255, 0.9),
        inset 0 -6px 12px rgba(0, 0, 0, 0.08);
}

.play-button svg {
    color: var(--primary-color);
    margin-left: 5px;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 55, 50, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(225, 55, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 55, 50, 0);
    }
}

/* Partners Section */
.partners-section {
    padding: 3rem 0;
    background: #fafafa;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}

.partners-text {
    color: #666666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.partners-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.partners-marquee:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    min-width: 150px;
    height: 80px;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-logo img {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-images {
        height: 550px;
        margin: 0 auto;
        max-width: 600px;
    }

    .main-image {
        width: 250px;
        height: 250px;
        left: 270px;
    }

    .info-card {
        width: 250px;
        height: 250px;
        top: 270px;
        left: 270px;
        padding: 1.25rem;
    }

    .info-card-content h3 {
        font-size: 1.1rem;
    }

    .info-card-content p {
        font-size: 0.85rem;
    }

    .student-image {
        width: 270px;
        height: 520px;
        top: 0px;
        left: 0px;
    }

    .play-button {
        width: 75px;
        height: 75px;
    }

    .play-button svg {
        width: 28px;
        height: 28px;
    }
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, rgba(20, 80, 110, 0.9), rgba(12, 55, 75, 0.95));
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 16px -4px rgba(14, 65, 91, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -3px 6px rgba(5, 20, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.explore-link::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 10%;
    right: 10%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    border-radius: 50px 50px 0 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.explore-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(225, 55, 50, 0.95), rgba(180, 40, 35, 0.95));
    box-shadow:
        0 8px 20px -5px rgba(225, 55, 50, 0.45),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -3px 6px rgba(120, 10, 10, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.explore-link:hover::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-images {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        position: static;
    }

    .main-image {
        position: static;
        width: 100%;
        height: 180px;
        grid-column: 1;
        grid-row: 1;
    }

    .info-card {
        position: static;
        width: 100%;
        height: 180px;
        grid-column: 2;
        grid-row: 1;
        padding: 1.25rem;
    }

    .info-card-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

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

    .student-image {
        position: relative;
        width: 100%;
        height: 400px;
        grid-column: 1 / 3;
        grid-row: 2;
        left: auto;
        right: auto;
    }

    .play-button {
        position: absolute;
        width: 80px;
        height: 80px;
    }

    .play-button svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .student-avatars img {
        width: 40px;
        height: 40px;
        margin-left: -10px;
    }

    .info-card {
        height: auto;
        min-height: 160px;
        padding: 1rem;
    }

    .info-card-content h3 {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
        line-height: 1.3;
    }

    .info-card-content p {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .main-image {
        height: 160px;
    }
}
