body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #4CAF50;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    transform: scale(1.1);
    color: #4CAF50;
}

.nav-form {
    display: flex;
    gap: 1rem;
}

.nav-form select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.main-content {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.2), rgba(69, 160, 73, 0.2));
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1.2s ease-in;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.keypoints {
    margin: 2rem 0;
    text-align: center;
}

.keypoints h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.keypoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.keypoint {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in;
}

.keypoint:nth-child(2) {
    animation-delay: 0.2s;
}

.keypoint:nth-child(3) {
    animation-delay: 0.4s;
}

.keypoint h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.additional-content {
    text-align: center;
    margin: 2rem 0;
}

.additional-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.additional-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}


/* Learn.html */

.learning-center {
    text-align: center;
    margin: 2rem 0;
    animation: fadeIn 1s ease-in;
}

.learning-center h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #059669;
}

.challenge-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 0 auto;
}

.challenge-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.challenge-content p {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    animation: fadeIn 0.5s ease-in;
}

.challenge-content p:empty {
    display: none;
}

.challenge-content ul,
.challenge-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
    padding-left: 1rem;
}

.challenge-content li {
    margin-bottom: 0.5rem;
}

.challenge-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.challenge-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.challenge-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.challenge-button:active {
    animation: pulse 0.3s ease;
}

.success-message {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-in;
}

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.social-links {
    margin: 1rem 0;
}

.social-link {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.15);
}

.footer p {
    margin: 0.5rem 0;
}

/* This is the code for the practive html */
.practice-zone {
    text-align: center;
    margin: 2rem 0;
    animation: fadeIn 1s ease-in;
}

.practice-zone h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.practice-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 0 auto;
}

.practice-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.practice-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.practice-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.practice-content textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
}

.practice-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.practice-button:active {
    animation: pulse 0.3s ease;
}

.feedback-text {
    font-size: 1rem;
    line-height: 1.5;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    animation: fadeIn 0.5s ease-in;
}

.feedback-text h1, .feedback-text h2, .feedback-text h3 {
    margin: 0.5rem 0;
}

.feedback-text ul, .feedback-text ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.feedback-text li {
    margin-bottom: 0.3rem;
}

.error-message {
    color: #d32f2f;
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-in;
}

.quiz-zone {
    text-align: center;
    margin: 2rem 0;
    animation: fadeIn 1s ease-in;
}

.quiz-zone h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.quiz-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 0 auto;
}

.quiz-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quiz-question-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.quiz-question {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    text-align: left;
    margin: 0.75rem 0;
}

.quiz-option input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
}

.quiz-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.quiz-result .quiz-button {
    margin-top: 1rem;
}

.quiz-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.quiz-button:active {
    animation: pulse 0.3s ease;
}

.success-message, .error-message {
    font-size: 1rem;
    margin: 0.5rem 0;
}

/* Chat Section */

.chat-zone {
    padding: 2rem;

    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-container {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: #e5e7eb;
    padding: 1.5rem;
}

.chat-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-image img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.chat-messages {
    background: #1a202c;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.5;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease-in;
}

.user-message {
    background: #10b981;
    color: #fff;
    align-self: flex-end;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.assistant-message {
    background: #3b82f6;
    color: #fff;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-content form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-content textarea {
    flex-grow: 1;
    padding: 1rem;
    border: 2px solid #4b5563;
    border-radius: 8px;
    background: #2d3748;
    color: #e5e7eb;
    font-size: 1.1rem;
    resize: vertical;
    min-height: 60px;
}

.chat-button {
    padding: 1rem 2rem;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.chat-button:hover {
    background: #059669;
    transform: scale(1.05);
}

.error-message {
    color: #f87171;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Microanimation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    /* Typography adjustments */
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Navigation adjustments */
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    /* Content spacing */
    .main-content {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    /* Form elements */
    .nav-form select {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    /* Button adjustments */
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Cards and containers */
    .feature-card, .testimonial-card {
        margin: 0.5rem 0;
        padding: 1rem;
    }
    
    /* Reduce animations on mobile for better performance */
    .hover-effect:hover {
        transform: none;
    }
    
    /* Better touch targets */
    a, button, select {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .hero {
        padding: 1.5rem 0.75rem;
    }
    
    /* Stack navigation items */
    .nav-form {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-form select {
        width: 100%;
    }
}

/* Improved touch interactions */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .nav-link:hover {
        transform: none;
        color: #4CAF50;
        background-color: rgba(76, 175, 80, 0.1);
    }
    
    .cta-button:hover {
        transform: none;
        background: linear-gradient(45deg, #45a049, #4CAF50);
    }
}

/* Landscape mobile adjustments */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
}

/* Ensure content is accessible on very small screens */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .navbar {
        padding: 0.25rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}