:root {
    --primary-color: #1e70b3;
    --secondary-color: #111111;
    --accent-color: #FFD166;
    --background-color: #F1FFFa;
    --light-color: #F6F7FB;
    --btn-color: #559bd4;
    --card-color: #FFFFFF;
    --text-color: #333333;
    --success-color: #06D6A0;
    --warning-color: #EF476F;
    --font-main: 'Nunito', sans-serif;
    --font-fun: 'Comic Neue', cursive;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


h1,
h2,
h3,
h4 {
    font-family: var(--font-fun);
    font-weight: 700;
}

.btn {
    font-family: var(--font-fun);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.quizzes-grid .primary-btn i {
    align-items: center;
    font-size: 2rem;
}


.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.accent-btn {
    background-color: var(--accent-color);
    color: #333;
}

.index-cont {
    height: 100vh;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    /* padding: 10px; */
}

.login-side-img {
    width: 45%;
    padding: 10px;
}

img {
    border-radius: 7px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.btn.close-login-btn {
    position: absolute;
    right: 30px;
    background: var(--primary-color);
    color: var(--light-color);
}

.login-container {
    width: 55%;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10px;
}

.login-box {
    background-color: var(--card-color);
    /* border-radius: 30px; */
    border-radius: 7px;
    padding: 30px 40px;
    width: 100%;
    /* max-width: 450px; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}

.logo i {
    font-size: 42px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 32px;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 50px;
    background-color: #f0f0f0;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-family: var(--font-fun);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.input-group {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 50px;
    padding: 0 20px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-group i {
    color: #888;
    font-size: 18px;
}

.input-group input {
    flex: 1;
    padding: 15px 15px 15px 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: var(--font-main);
    outline: none;
}

.google-btn {
    background-color: #4285F4;
    color: var(--light-color);
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: #888;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    padding: 0 15px;
}

.error-message {
    background-color: #FFE5E5;
    color: var(--warning-color);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    font-weight: 600;
    display: none;
    position: fixed;
    top: 20px;
    right: 50px;
}

.error-message.show {
    display: block;
    animation: bounceIn 0.5s;
}

.login-footer {
    margin-top: 30px;
    color: #888;
}


.login-footer i {
    color: var(--primary-color);
    margin: 0 5px;
}

.update-cont {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.update-text-cont {
    width: 80%;
    max-width: 800px;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.63);
    color: var(--secondary-color);
    line-height: 1.2;
}

.update-text-cont p {
    font-size: 1.05rem;
}

.update-text-cont h4 {
    font-size: 1.13rem;
    margin: 0;
    padding: 5px 0;
}

.feature-list {
    height: fit-content;
    padding-left: 20px;
    margin: 0 !important;
}

.feature-list.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    list-style-position: inside;
}

.quote-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.quote-icon.right {
    float: right;
}

.cta-text {
    margin-top: 10px;
    font-size: 1.1rem;
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.signature {
    font-weight: 600;
    opacity: 0.85;
}

@media (max-width: 768px) {

    .index-cont,
    .update-cont {
        height: fit-content;
        flex-direction: column;
        gap: 20px;
    }

    .update-cont {
        width: 100%;
    }

    .login-container {
        width: 100%;
        padding: 10px;
        max-height: fit-content;
        order: 1;
    }

    .login-box {
        width: 100%;
        border-radius: 20px;
    }


    .update-text-cont {
        width: 100%;
        padding: 30px;
        order: 2;
    }

    .feature-list.two-col {
        grid-template-columns: 1fr;
    }
}

.index-cont {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 100vh;
    visibility: hidden;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.index-cont.active {
    visibility: visible;
    opacity: 1;
}

.study-modes-container {
    padding: 10px 40px;
}

.home-page.active {
    visibility: hidden;
    display: none;
    opacity: 0;
}

.study-modes-nav {
    background: var(--background-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.study-modes-nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.study-modes-nav .logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.study-modes-nav .logo h1 {
    font-size: 22px;
    margin: 0;
    color: var(--primary-color);
}

.study-modes-nav .logo span {
    color: var(--secondary-color);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.create-quiz-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-fun);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.create-quiz-btn:hover {
    background-color: var(--btn-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 112, 179, 0.2);
}

.login-nav-btn {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-fun);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.login-nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Hero Section */
.study-hero {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0;
    border-radius: 7px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: var(--font-fun);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-fun);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Study Modes Cards Section */
.study-modes-cards-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-fun);
    font-weight: 900;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}



.cards-scroll-container {
    position: relative;
    padding: 20px 0;
}

.cards-track {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 10px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-color);
}

.cards-track::-webkit-scrollbar {
    height: 6px;
}

.cards-track::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 10px;
}

.cards-track::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.mode-card {
    min-width: 280px;
    max-width: 400px;
    background-color: var(--card-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.card-icon.quiz {
    background-color: rgba(30, 112, 179, 0.1);
    color: var(--primary-color);
}

.card-icon.learn {
    background-color: rgba(239, 71, 111, 0.1);
    color: var(--warning-color);
}

.card-icon.flashcard {
    background-color: rgba(6, 214, 160, 0.1);
    color: var(--success-color);
}

.card-icon.match {
    background-color: rgba(255, 209, 102, 0.1);
    color: #ff9800;
}

.card-icon.memorize {
    background-color: rgba(149, 117, 205, 0.1);
    color: #9575cd;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--font-fun);
    font-weight: 700;
}

.card-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 10px;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    transform: scale(1.2);
}

.scroll-hint {
    color: #666;
    font-size: 0.9rem;
}

/* Detailed Mode Sections */
.mode-detail-section {
    padding: 80px 20px;
}

.mode-detail-section:nth-child(odd) {
    background-color: var(--card-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* .detail-grid.reverse {
    direction: rtl;
} */

.detail-grid.reverse .detail-text,
.detail-grid.reverse .detail-visual {
    direction: ltr;
}

.detail-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-fun);
    font-weight: 900;
}

.detail-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.detail-features {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feature i {
    color: var(--success-color);
}

.detail-cta {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-fun);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.detail-cta:hover {
    background-color: var(--btn-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 112, 179, 0.2);
}

/* .visual-placeholder {
    height: 400px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.visual-placeholder img {
    object-fit: cover;
    height: 100%;
    width: 100%;
} */

section {
    border-bottom: 1px solid var(--secondary-color);
}

.visual-placeholder {
    height: 400px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--light-color);
}

.image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-slide.active {
    opacity: 1;
}

.visual-placeholder img {
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.visual-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    z-index: 0;
}

.image-carousel {
    z-index: 1;
    position: relative;
}


/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-fun);
    font-weight: 900;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-primary {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-fun);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
    background-color: transparent;
    color: var(--light-color);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-fun);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    border: 2px solid var(--light-color);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.cta-note {
    margin-top: 20px;
    opacity: 0.8;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    gap: 5px;
}

/* Footer */
.study-footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--primary-color);
}

.footer-logo i {
    font-size: 40px;
    color: var(--primary-color);
}

.footer-logo-text h3 {
    font-size: 24px;
    display: flex;
    gap: 5px;
    margin-bottom: 2px;
    color: var(--primary-color);
    font-family: var(--font-fun);
}

.footer-logo-text h3 span {
    color: var(--light-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-family: var(--font-fun);
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: var(--light-color);
    transform: translateX(5px);
}

.link-group a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .index-cont .login-side-img {
        display: none;
    }

    .close-login-btn {
        top: 15px;
    }

    .study-modes-container {
        padding: 10px 20px;
    }

    .study-modes-nav .logo i {
        font-size: 40px;
    }

    .study-modes-nav .logo h1 {
        display: none;
    }

    .nav-container {
        /* flex-direction: column; */
        gap: 15px;
    }

    .nav-buttons {
        width: 80%;
        justify-content: center;
    }

    .nav-buttons .btn {
        padding: 10px 20px;
        font-size: 11px;
    }

    .nav-buttons .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    footer .container {
        padding: 0px 15px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cta-buttons,
    .sample-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn,
    .sample-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    .mode-detail-section,
    .detail-grid {
        padding: 4px;
        width: 100%;
    }

    .visual-placeholder {
        height: 350px;
        width: 100%;
    }

    .carousel-slide img {
        object-fit: cover;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mode-card {
        max-width: 260px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .sample-card {
        padding: 25px;
    }

    .visual-placeholder {
        height: 250px;
        width: 100%;
        font-size: 60px;
        padding: 0px;
    }

    .carousel-slide {
        padding: 5px;
    }
}