* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Comfortaa, sans-serif;
}

body {
    background: linear-gradient(#030303, #00262E);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 50px;
    border-radius: 8px;
}

.logo-text {
    font-size: 36px;
    font-weight: 600;
}

.join-button {
    padding: 8px 24px;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.join-button:hover {
    background: white;
    color: #061720;
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    gap: 30px;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 0;
}

.left-section {
    flex: 1;
    max-width: 700px;
    margin-left: 10px;
    margin-right: 20px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 10px;
}

.hero-title {
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ff80ff, #80ffff);
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.5;
}

.secondary-text {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.sparkle {
    display: inline-block;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.primary-button {
    padding: 12px 32px;
    background-color: #00ffdd;
    color: #003333;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 255, 221, 0.3);
    color: black;
}

.secondary-button {
    padding: 12px 32px;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: white;
    color: #061720;
}

.feedback-button {
    margin-left: 17px;
    padding: 12px 32px;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-button:hover {
    background: white;
    color: #061720;
}

.arrow {
    position: absolute;
    left: 1220px;
    top: 195px;
    width: 157px;
    height: 190px;
    transform-origin: center center;
    animation: rotateArrow 4s ease-in-out infinite;
}

@keyframes rotateArrow {
    0% { transform: rotate(-12.5deg); }
    50% { transform: rotate(-7.5deg); }
    100% { transform: rotate(-12.5deg); }
}

.transform-text {
    display: none; /* Hidden by default on desktop */
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    background: linear-gradient(90deg, #ff80ff, #80ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.illustration1 {
    position: absolute;
    left: 910px;
    top: 97px;
    width: 286px;
    height: 288px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.illustration2 {
    position: absolute;
    left: 1156px;
    top: 395px;
    width: 286px;
    height: 288px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
/* Carousel Styles */
.carousel-container {
    width: 90%;
    max-width: 1200px;
    position: relative;
    padding: 40px;
    margin: 120px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.carousel-image {
    flex: 0 0 270px;
    width: 270px;
    height: 480px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px 5px rgba(0, 255, 255, 0.5);
    transition: box-shadow 0.6s ease-in;
    transition: box-shadow 0.4s ease-out;
}

.carousel-image:hover {
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.2), /*Stronger outer glow */
        0 0 45px rgba(0, 255, 255, 0.7); /* More intense spread glow */
    }

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* aspect-ratio: 9/16; */
}

.carousel-text {
    flex: 1;
    padding: 20px;
    position: relative;
    min-height: 200px;
    align-self: flex-end; /* Aligns text to bottom */
    margin-bottom: 50px; /* Adjust distance from dots */
    padding-bottom: 20px;
}

.text-content {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-in-out;
    display: none;
}

.text-content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.text-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff80ff, #80ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-content p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    width: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.dot:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.5);
}

.video-section {
    width: 70%;
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 40px 10px rgba(0, 255, 255, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-reverse .carousel-wrapper {
    flex-direction: row-reverse;
}


.share-section {
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-text {
    width: 100%;
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff80ff, #80ffff);
    -webkit-background-clip: text;
    background-clip: text;
    /* color: transparent; */
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap; /* Prevents wrapping */
}

.copy-button {
    padding: 12px 32px;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    white-space: nowrap; /* Prevents text wrapping */
}

.copy-button:hover {
    background: white;
    color: #061720;
    transform: translateY(-2px);
}

/* Feedback Button/Link */
.feedback-button {
    padding: 12px 32px;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap; /* Prevents text wrapping */
}

.feedback-button:hover {
    background: white;
    color: #061720;
    transform: translateY(-2px);
}

/* Tooltip for Copy Button */
.tooltip {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

a[class*="button"] {
    text-decoration: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff80ff, #80ffff);
    height: 20px;
    min-height: 20px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff9fff, #9fffff);
}

/* Mobile Responsive Styles */
@media (max-width: 968px) {
    body {
        padding: 10px;
    }

    .navbar {
        padding: 15px 10px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-icon {
        height: 40px;
    }

    .main-content {
        flex-direction: column;
        text-align: center;
        margin-top: 30px;
        gap: 20px;
    }

    .left-section, .right-section {
        margin: 0;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 250px;
    }

    .illustration1, .illustration2 {
        position: static;
        width: 100%;
        max-width: 270px;
        height: auto;
        margin: 20px auto;
        display: block;
    }

    .arrow {
        display: none;
    }

    .carousel-container {
        width: 100%;
        padding: 20px 10px;
        margin: 40px auto;
    }

    .carousel-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .carousel-image {
        width: 270px;
        height: 480px;
        margin: 0 auto;
    }

    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .carousel-text {
        position: static;
        padding: 20px 0;
        min-height: auto;
        text-align: center;
    }

    .text-content {
        position: static;
        opacity: 0;
        transform: none;
        transition: opacity 0.8s ease-in-out;
        margin-top: 20px;
    }

    .text-content.active {
        opacity: 1;
    }

    .text-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .text-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .video-section {
        width: 100%;
        padding: 20px 10px;
        margin: 40px auto;
    }

    .carousel-reverse .carousel-wrapper {
        flex-direction: column;
    }

    .share-section {
        padding: 15px;
    }

    .share-text {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .button-container {
        gap: 15px; /* Slightly reduced gap for mobile */
    }

    .copy-button,
    .feedback-button {
        padding: 10px 24px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .carousel-image {
        width: 240px;
        height: 427px; /* 240 * (16/9) ≈ 427 */
    }
}

/* Add aspect-ratio support for modern browsers */
@supports (aspect-ratio: 9/16) {
    .carousel-image {
        aspect-ratio: 9/16;
        height: auto; /* Let aspect-ratio control height */
    }
}

/* Small mobile devices */
@media (max-width: 380px) {
    .carousel-image {
        width: 240px;
        height: 427px;  /* Maintains 9:16 ratio */
    }

    .hero-title {
        font-size: 28px;
    }

    .text-content h2 {
        font-size: 22px;
    }

    .share-section {
        padding: 15px 10px;
    }

    .share-text {
        font-size: 20px;
    }

    .copy-button,
    .feedback-button {
        padding: 10px 24px;
        font-size: 14px;
    }

    .dots {
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Fix for specific mobile carousel issues */
@supports (aspect-ratio: 9/16) {
    .carousel-image {
        aspect-ratio: 9/16;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .carousel-image {
        height: 480px;
    }
    
    @media (max-width: 380px) {
        .carousel-image {
            height: 427px;
        }
    }
}

@media (max-width: 968px) {
    .arrow {
        display: none; /* Hide arrow on mobile */
    }

    .transform-text {
        display: block; /* Show transform text on mobile */
    }

    .illustration1, .illustration2 {
        position: static;
        width: 100%;
        max-width: 270px;
        height: auto;
        margin: 20px auto;
        display: block;
    }
}

/* Additional mobile adjustments for very small screens */
@media (max-width: 380px) {
    .transform-text {
        font-size: 20px;
        margin: 15px 0;
    }
}

/* Add these styles for illustration border */
@media (max-width: 968px) {
    .right-section {
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        margin: 30px 10px;
        padding: 25px 15px;
        position: relative;
    }

    /* Add label to the border */
    .right-section::before {
        content: ' Transform study materials';
        position: absolute;
        top: -12px;
        left: 20px;
        background: linear-gradient(90deg, #ff80ff, #80ffff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 20px;
        font-weight: 600;
        padding: 0 10px;
        background-color: #030303; /* Match your background color */
    }

    /* Adjust illustration spacing */
    .illustration1, .illustration2 {
        position: static;
        width: 100%;
        max-width: 270px;
        height: auto;
        margin: 15px auto;
        display: block;
    }

    .transform-text {
        margin: 15px 0;
        font-size: 24px;
    }
}

/* Smaller mobile adjustments */
@media (max-width: 380px) {
    .right-section {
        margin: 20px 5px;
        padding: 20px 10px;
    }

    .right-section::before {
        font-size: 18px;
        top: -10px;
    }

    .transform-text {
        font-size: 20px;
        margin: 12px 0;
    }

    .illustration1, .illustration2 {
        margin: 12px auto;
    }
}

@media (max-width: 480px) {
    .share-text {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .button-container {
        gap: 10px; /* Further reduced gap for smaller screens */
    }

    .copy-button,
    .feedback-button {
        padding: 8px 16px; /* Reduced padding */
        font-size: 14px;
    }

    .tooltip {
        font-size: 12px;
        padding: 6px 12px;
        bottom: -35px;
    }
}

@media (max-width: 480px) {
    .carousel-dots {
        margin-top: 0px;
        margin-bottom: 5px;
    }

    .text-content p {
        margin-bottom: 0px;
    }
}

/* Modern browsers - using aspect ratio */
@supports (aspect-ratio: 9/16) {
    .carousel-image {
        aspect-ratio: 9/16;
        height: auto; /* Let aspect-ratio control height */
        width: 270px; /* Base width */
    }
}

/* Mobile styles */
@media (max-width: 968px) {
    .carousel-image {
        width: 200px; /* Adjusted width for mobile */
        height: 355px; /* Height maintaining 9:16 ratio (200 * 16/9 ≈ 355) */
    }
}

/* Small mobile devices */
@media (max-width: 380px) {
    .carousel-image {
        width: 180px; /* Even smaller width */
        height: 320px; /* Height maintaining 9:16 ratio (180 * 16/9 ≈ 320) */
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .carousel-image {
        height: 480px; /* Default height */
    }
    
    @media (max-width: 968px) {
        .carousel-image {
            height: 355px; /* Mobile height */
        }
    }
    
    @media (max-width: 380px) {
        .carousel-image {
            height: 320px; /* Small mobile height */
        }
    }
}