:root {
    --primary-blue: #2196F3;
    --primary-green: #4CAF50;
    --primary-yellow: #FFEB3B;
    --primary-orange: #bf3f1d;
    --primary-red: #F44336;
    --primary-purple: #6A0DAD;
    
    /* New color scheme */
    --new-green: #8ad720;
    --new-blue: #2620c3;
    
    --text-primary: #000000;
    --text-secondary: #333333;
    
    --gradient-primary: linear-gradient(45deg, #bf3f1d 0%, #c65540 50%, #d36b62 100%);
    --gradient-secondary: linear-gradient(135deg, #d36b62 0%, #c65540 50%, #bf3f1d 100%);
    
    /* New gradient with the new colors */
    --gradient-new: linear-gradient(45deg, #8ad720 0%, #2620c3 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-image: url('Black_And_White_Aesthetic_Minimalist_Modern_Simple_Typography_Coconut_Cosmetics_Logo-removebg-preview (1).png');
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
}

body {
    padding-top: 80px; 
    color: #000000; 
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.container, .features-section, .contact-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.main-nav {
    position: fixed;  
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2005;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /*position: relative;*/
}

.nav-logo img {
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    z-index: 2006;  
}

.nav-links a {
    margin-left: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.nav-links a:hover {
    transform: scale(1.1);
}

.nav-links a.active {
    color: var(--primary-orange);
    font-weight: bold;
}

.burger-container {
    display: none;
    position: relative;
    z-index: 2010;
}

.burger-menu {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
    margin: 20px;
}

header {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.header-logo {
    max-width: 300px;
    width: 100%;
    margin-bottom: 20px;
}

h1, h2 {
    color: var(--primary-orange);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;  
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);  
}

h3 {
    color: var(--primary-orange);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.subtitle {
    color: #000000;  
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.9;
    font-weight: 500;  
}

.features-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    margin: 20px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-orange);
    font-size: 2.5rem;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    margin: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    gap: 15px;
}

.newsletter-form input {
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    color: var(--text-primary);
    width: 100%;
    font-size: 16px; 
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    font-size: 16px;
}

@media screen and (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        align-items: center;
    }

    .newsletter-form input {
        flex-grow: 1;
        border-right: 1px solid rgba(0,0,0,0.1);
        border-radius: 30px 0 0 30px;
    }

    .newsletter-form button {
        width: auto;
        border-radius: 0 30px 30px 0;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 20px;
        width: 90%;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        width: 70%;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 2000; 
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding-top: 80px;  
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .burger-container {
        display: block;
    }

    .main-nav {
        z-index: 2005; 
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.feature-card {
    background: white;
    color: var(--text-primary);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-orange); 
    background: rgba(255, 255, 255, 0.9); 
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-orange); 
}

.feature-icon i {
    color: var(--primary-orange); 
}

.feature-card h3 {
    text-align: center;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.feature-card p {
    text-align: center;
    color: #000000;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: float-and-pulse 2s ease-in-out infinite;
    will-change: transform;
}

.whatsapp-float span {
    margin-right: 10px;
    font-weight: bold;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1) translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

@keyframes float-and-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    75% {
        transform: translateY(0) scale(1);
    }
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
}

.additional-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-green, .btn-blue {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-green {
    background: var(--new-green);
    background: linear-gradient(to right, var(--new-green), #4CAF50);
}

.btn-blue {
    background: var(--new-blue);
    background: linear-gradient(to right, var(--new-blue), #3f51b5);
}

.btn-green:hover, .btn-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

.carousel-prev, 
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.7);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: var(--primary-orange);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2020;
}

.close-modal:hover {
    color: var(--text-primary);
}

#registration-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 3px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 8px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 14px;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.btn-submit:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
        padding: 15px;
        margin: 0 auto;
        border-radius: 10px;
        max-height: 80vh;
    }

    .modal-content h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 6px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .btn-submit {
        padding: 10px;
        font-size: 12px;
        margin-top: 10px;
    }

    .close-modal {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}

.social-media-links {
    margin-top: 30px;
    text-align: center;
}

.social-media-links h3 {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

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

.social-icon {
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.youtube {
    background-color: #FF0000;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-icon i {
    font-size: 24px;
}

@media screen and (max-width: 600px) {
    .social-icons {
        gap: 20px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon i {
        font-size: 20px;
    }
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.course-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: scale(1.05);
}

.course-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.course-progress {
    margin: 15px 0;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    background: var(--primary-orange);
}

.btn-continue {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.btn-continue:hover {
    transform: scale(1.1);
}

.learning-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.logout-link {
    color: var(--primary-red);
}

@media screen and (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .course-list,
    .learning-stats-grid {
        grid-template-columns: 1fr;
    }
}

.youtube-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.youtube-course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.youtube-course-card:hover {
    transform: scale(1.05);
}

.youtube-video-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.youtube-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-course-info {
    padding: 15px;
    text-align: center;
}

.youtube-course-info h3 {
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.youtube-course-info p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.community-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.community-card:hover {
    transform: scale(1.05);
}

.community-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .youtube-courses-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-logo {
    max-width: 300px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-orange);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-content p {
    color: var(--primary-orange);
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    position: relative;
}

#course-search-input {
    flex-grow: 1;
    padding: 12px 15px;
    padding-right: 50px;
    border: 2px solid var(--primary-orange);
    border-radius: 30px;
    font-size: 16px;
    transition: box-shadow 0.3s ease;
}

#course-search-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(191, 63, 29, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: color-mix(in srgb, var(--primary-orange) 80%, black);
}

.search-btn i {
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    #course-search-input {
        font-size: 14px;
        padding: 10px 12px;
        padding-right: 45px;
    }

    .search-btn {
        width: 35px;
        height: 35px;
    }

    .search-btn i {
        font-size: 16px;
    }
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.training-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.training-card:hover {
    transform: scale(1.05);
}

.training-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
}

.memory-card {
    width: 80px;
    height: 80px;
    background: var(--primary-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.memory-card.flipped {
    background: white;
    border: 2px solid var(--primary-orange);
}

.memory-card.matched {
    background: var(--primary-green);
    opacity: 0.5;
    cursor: not-allowed;
}

#word-association-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--primary-orange);
    border-radius: 5px;
}

.scan-image-container img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

.scan-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.scan-option {
    padding: 10px;
    background: white;
    border: 1px solid var(--primary-orange);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.scan-option:hover {
    background: var(--primary-orange);
    color: white;
}

.scan-option.selected {
    background: var(--primary-green);
    color: white;
}

.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.logout-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.logout-logo {
    max-width: 250px;
    margin-bottom: 30px;
}

.logout-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 5px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.btn-red:hover {
    transform: scale(1.05);
}