.home .paralax:nth-child(-n+2) {
    opacity: 1;
}

/* Home page styles */

.home {
    overflow-x: hidden;
    position: relative;
}

.reels {
    position: relative;
    height: 100vh; /* Fallback for browsers that don't support dvh */
    height: 100dvh; /* Dynamic viewport height - accounts for mobile browser chrome */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.reels video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: filter 1s ease;
    will-change: filter;
}

.reels video.blur {
    filter: blur(2px) brightness(1) contrast(1) saturate(1);
}

.reels-overlay {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 3rem;
    font-weight: 350;
    text-align: center;
    font-family: 'Inter', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    width: 95%;
    max-width: 1200px;
}

.reels-overlay-bottom {
    position: absolute;
    bottom: max(10%, env(safe-area-inset-bottom, 10%));
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255);
    font-size: 1.8rem;
    font-weight: 350;
    text-align: center;
    font-family: 'Inter', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    width: 95%;
    max-width: 1200px;
    line-height: 1.4;
}

.scroll-indicator {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator img {
    width: 60px;
    height: 18px;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

.natives-phrases {
    font-size: 2.3rem;
    color: white;
    font-family: 'Inter', sans-serif;
    margin-left: 2rem;
}

.natives-phrases-list-floating {
    color: white;
    margin-top: 0.6rem;
    font-family: 'Inter', serif;
    font-size: 1rem;
    width: 100%;
    display: inline-block;
    font-weight: 200;
    opacity: 0.8;
}

.welcome-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.words-number {
    width: fit-content;
    margin-left: auto;
    margin-right: 1rem;
    margin-top: 6rem;
}

.number {
    font-size: 3.3rem;
    color: white;
    display: block;
    font-weight: 300;
}

.phrase-in-collection {
    font-size: 1rem;
    font-weight: 300;
    color: white;
    font-family: 'Inter', serif;
}

.welcome-text-primary {
    font-size: 1.5rem;

    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 250;
}

.welcome-text-secondary {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 250;

    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
}


.left {
    text-align: left;
    margin-left: 20px;
    margin-right: 40px;
}

.right {
    text-align: right;
    margin-left: 40px;
    margin-right: 20px;
}

.floating-content-left {
    padding-left: 20px;
}

/* .floating-content-right {
    white-space: nowrap;
    overflow: hidden;
    direction: rtl;
    text-align: left;
    padding-right: 4rem;
} */

.floating-content-right {
    white-space: nowrap;
    display: inline-block;
    padding-right: 10px;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(20%);
    }

    100% {
        transform: translateX(-100%);
    }
}



.course-explain {
    margin-top: 10rem;
}

.course-explain-first {
    margin-top: 2.5rem;
}

.welcome-video {
    width: 100%;
    margin-top: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
}

.welcome-video video {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    /* background: rgba(255, 255, 255, 0.2); */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.play-button-overlay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay img {
    width: 120px;
    height: 120px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Expanded state */
.welcome-video.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.welcome-video.expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.welcome-video.expanded video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide bottom nav when video is expanded */
/* Hide bottom nav when video is expanded */
body:has(.welcome-video.expanded) .bottom-nav {
    display: none;
}

.about {
    background: #2A2320;
    padding: 3rem 2rem;
    margin-top: 2rem;
    font-weight: 300;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-main {
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.about-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.about-sub a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.will-make-your-english-beautiful{
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
}
.sign-up-for-course {
    margin-top: 1rem;
    font-size: 1.7rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 2rem;
    color: #FFFFFF;
    border: 1px solid var(--orange-color);
    border-radius: 40px;
    background: transparent;
    padding: 7px 30px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
}

.sign-up-for-course:hover {
    transform: translateX(-50%) scale(1.02);
}

.explanain-idea-section {
    margin-left: 20px;
}

.explain-title{
    font-size: 2rem;
    margin-bottom: 1rem;
}

.explain-title-dehighlight {
    color: var(--dehighlight-color);
}

.examples {
    display: flex;
}
.examples-1 {
    display: flex;
    margin-bottom: 1rem;
}
.examples-2 {
    display: flex;
    margin-bottom: 1rem;
}
.examples-3 {
    display: flex;
    margin-bottom: 1rem;
}

.example-space {
    flex: 1;
}

.example-space-1 {
    flex: 2;
}

.example-space-2 {
    flex: 4;
}

.example {
    flex: 3;
    color: var(--dehighlight-color);
}

.example-title{
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;

}

.example-content{
    border-left: 1.4px solid var(--dehighlight-color);
    padding-left: 0.5rem;
}

.example-content-bold{
    font-weight: 550;
}

.example-correct {
    flex: 3;
}

.example-correct-1 {
    flex: 4;
}

.example-correct-2 {
    flex: 2;
}



.example-content-correct{
    border-left: 1.4px solid;
    padding-left: 0.5rem;
}

.example-title-correct{
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;  
    color: var(--dehighlight-color);
}

.explain-section{
    margin-bottom: 3rem;
}

.advantages{
    padding-left: 20px;
    margin-top: 2rem;
}

.advantages-item{
    border-left: 1px solid var(--dehighlight-color);
    padding-left: 10px;
    margin-bottom: 1.5rem;
}

.advantage-item-description{
    color: var(--dehighlight-color);
}

.advantage-item-description.decrease-font{
    font-size: 0.8rem;
}