:root {
    --bg-body: #121418;
    --bg-card: #1C1E24; /* Slightly lighter for cards */
    --bg-nav: rgba(18, 20, 24, 0.95);
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --accent-purple: #9D4EDD; 
    --accent-purple-hover: #7B2CBF;
    --accent-gradient: linear-gradient(135deg, #9D4EDD 0%, #5A189A 100%);
    --font-family: 'Outfit', sans-serif;
    --border-color: #2D3748;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Paragraphs - Justified text */
p {
    text-align: justify;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.1);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.2rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle, .user-profile {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover, .user-profile:hover {
    background: #2D3748;
    color: white;
}

/* Hero Section */
.hero {
    padding: 40px 0;
}

.hero-container {
    /* Using the image as a background card as per screenshot design */
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%), url('../assets/images/hero_house.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    height: 500px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-content {
    max-width: 550px;
    z-index: 2;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* App Section */
.app-section {
    padding: 100px 0;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.app-image img {
    max-width: 300px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.3);
    animation: float 6s ease-in-out infinite;
}

.app-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.app-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: justify;
}

.app-features {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.store-buttons {
    display: flex;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: #555;
}

.store-btn i {
    font-size: 1.8rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.btn-text span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* News Section */
.news-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: left; /* Screenshot shows "AI News" aligned left?  Let's keep center for now or match grid */
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background-color: #121418; /* Dark background behind the faded image */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
}

.news-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.loading-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
}

.quiz-container {
    background: linear-gradient(180deg, rgba(30, 32, 40, 1) 0%, rgba(20, 20, 25, 1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add a subtle glow/blob */
.quiz-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.quiz-content {
    position: relative;
    z-index: 1;
}

.quiz-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.quiz-content p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 24px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2D3748;
    color: white;
    border-radius: 50%;
    margin-left: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
    border-top: 1px solid #1E293B;
    padding-top: 30px;
}
/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none; /* Mobile menu todo */
    }

    .hero-container {
        padding: 40px;
        text-align: center;
        background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%), url('../assets/images/hero_house.png');
        background-size: cover;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .app-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .store-buttons {
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Page Styles */
.features-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
}

.features-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-list {
    padding: 60px 0 100px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 300px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 8px solid #333; /* Phone bezel simulation */
    transition: transform 0.3s ease;
}

.feature-row:hover .feature-image img {
    transform: translateY(-10px) scale(1.02);
}

/* Add a glowing backdrop to images */
.feature-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .features-hero h1 {
        font-size: 2.5rem;
    }
}

/* Login Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    width: 90%; 
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.btn-auth:hover {
    background: #2D3748;
    transform: translateY(-2px);
}

.btn-google { background: white; color: black; border: none; }
.btn-google:hover { background: #f1f1f1; }

.btn-apple { background: black; color: white; border: 1px solid #333; }
.btn-apple:hover { border-color: #666; }

.btn-email { 
    background: var(--accent-purple); 
    border: none; 
    color: white; 
    margin-top: 8px;
}
.btn-email:hover { background: var(--accent-purple-hover); }

.divider {
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

#email-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #121418;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: var(--font-family);
}

#email-form input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-purple);
    text-decoration: none;
}

/* Quiz Styles */
.quiz-content {
    max-width: 600px;
    width: 95%;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--accent-purple);
}

.btn-block {
    width: 100%;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--text-primary);
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 1rem;
    color: var(--text-primary);
}

.quiz-option:hover:not(.disabled) {
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.05);
}

.quiz-option.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.quiz-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157,78,221,0.2) 0%, transparent 70%);
    border: 4px solid var(--accent-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.score-circle .total {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Profile Modal Styles */
.profile-modal .modal-content {
    max-width: 450px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.avatar-container {
    position: relative;
    cursor: pointer;
    margin-bottom: 16px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--accent-purple);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.avatar-camera {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.avatar-camera i {
    font-size: 12px;
    color: white;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.3);
}

.profile-btn i {
    font-size: 1.1rem;
}

.profile-btn .btn-arrow {
    margin-left: auto;
}

/* Avatar Selection Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.avatar-option:hover {
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Page Styles */
.contact-hero {
    padding: 80px 0 60px;
    background: var(--bg-body);
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    margin-top: 20px;
}

.contact-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    background: #1A1C23;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: #202229;
}

.contact-info-card {
    background: #4B5563; /* Placeholder for Grey Card */
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.contact-info-card p {
    color: #9CA3AF;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.info-bg-icon {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item .icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-purple);
}

.contact-item small {
    display: block;
    color: #9CA3AF;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.social-links-row {
    display: flex;
    gap: 16px;
}

.social-links-row a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links-row a:hover {
    color: var(--accent-purple);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
}

/* ========================================
   STAR RATING STYLES
   ======================================== */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.star-rating .star {
    font-size: 2rem;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star.filled {
    color: #F59E0B;
}

/* ========================================
   FEEDBACK MESSAGE STYLES
   ======================================== */
.feedback-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.feedback-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #10B981;
}

.feedback-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    color: #EF4444;
}

/* ========================================
   LIGHT THEME STYLES
   ======================================== */
body.light-theme {
    background-color: #F7F9FC;
    color: #1A202C;
}

body.light-theme .navbar {
    background-color: rgba(247, 249, 252, 0.95);
    border-bottom-color: #E2E8F0;
}

body.light-theme .nav-links a {
    color: #4A5568;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    color: #1A202C;
}

body.light-theme .theme-toggle,
body.light-theme .user-profile {
    background: #E2E8F0;
    color: #4A5568;
}

body.light-theme .theme-toggle:hover,
body.light-theme .user-profile:hover {
    background: #CBD5E1;
    color: #1A202C;
}

body.light-theme .news-card,
body.light-theme .modal-content,
body.light-theme .contact-form-container,
body.light-theme .contact-info-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
}

body.light-theme .news-content h3,
body.light-theme .modal h2,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
    color: #1A202C;
}

body.light-theme .news-content p,
body.light-theme .modal p,
body.light-theme p,
body.light-theme .app-desc,
body.light-theme .feature-content p {
    color: #4A5568;
}

body.light-theme .hero-subtitle {
    color: #4A5568;
}

body.light-theme .footer {
    background: #F7F9FC;
    border-top-color: #E2E8F0;
}

body.light-theme .footer-links a {
    color: #4A5568;
}

body.light-theme .footer-links a:hover {
    color: #1A202C;
}

body.light-theme .footer-social a {
    background: #E2E8F0;
    color: #1A202C;
}

body.light-theme .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
    color: #1A202C;
}

body.light-theme .quiz-container {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
    border-color: #E2E8F0;
}

body.light-theme .quiz-question,
body.light-theme .quiz-header {
    color: #1A202C;
}

body.light-theme .quiz-option {
    background: #F7F9FC;
    border-color: #E2E8F0;
    color: #1A202C;
}

body.light-theme .quiz-option:hover {
    background: #EDE9FE;
}

body.light-theme .info-item {
    color: #4A5568;
}

body.light-theme .divider span {
    background: #FFFFFF;
    color: #4A5568;
}

body.light-theme .divider::before {
    background: #E2E8F0;
}

body.light-theme #email-form input,
body.light-theme .contact-form input,
body.light-theme .contact-form select,
body.light-theme .contact-form textarea {
    background: #F7F9FC;
    border-color: #E2E8F0;
    color: #1A202C;
}

body.light-theme .auth-footer {
    color: #4A5568;
}

body.light-theme .contact-link {
    color: #1A202C;
}

body.light-theme .contact-item small {
    color: #4A5568;
}

body.light-theme .social-links-row a {
    color: #1A202C;
}

body.light-theme .profile-email {
    color: #4A5568;
}

/* Profile Name */
.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 4px;
}

body.light-theme .profile-btn {
    background: #F7F9FC;
    border-color: #E2E8F0;
    color: #1A202C;
}

body.light-theme .profile-btn:hover {
    background: #EDE9FE;
}

body.light-theme .avatar-grid .avatar-option {
    background: #F7F9FC;
    border-color: #E2E8F0;
}

body.light-theme .star-rating .star {
    color: #CBD5E1;
}

body.light-theme .star-rating .star.filled {
    color: #F59E0B;
}

/* Section titles in light mode */
body.light-theme .section-title {
    color: #1A202C;
}

body.light-theme .app-content h2,
body.light-theme .contact-form-container h2 {
    color: #1A202C;
}

body.light-theme .contact-info-card h3 {
    color: #1A202C;
}

body.light-theme .contact-info-card p {
    color: #4A5568;
}

/* Form labels in light mode */
body.light-theme .contact-form label {
    color: #1A202C;
}

/* Store buttons in light mode */
body.light-theme .store-btn {
    background: #1A202C;
    border-color: #4A5568;
}

/* Fix hero section headings in light mode - EXCEPT main hero which has dark bg */
body.light-theme .contact-hero h1,
body.light-theme .art-edu-hero h1,
body.light-theme .about-hero h1,
body.light-theme .features-hero h1 {
    background: linear-gradient(to right, #1A202C, #5A189A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero always uses light text (dark background image) */
.hero h1 {
    background: linear-gradient(to right, #fff, #a5b4fc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */
.about-hero {
    padding: 80px 0 40px;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
}

.app-icon-large {
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.about-section {
    padding: 40px 0 80px;
}

.about-content-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.about-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-card h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--accent-purple);
    width: 20px;
}

.contact-info-about {
    margin: 16px 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-primary);
}

.info-row i {
    color: var(--accent-purple);
    width: 24px;
}

.info-row a {
    color: var(--accent-purple);
    text-decoration: none;
}

.info-row a:hover {
    text-decoration: underline;
}

.social-links-about {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

.legal-card {
    text-align: center;
}

.copyright-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legal-links a {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* About Page Contact Section */
.about-contact-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.about-contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-legal {
    text-align: right;
}

@media (max-width: 768px) {
    .about-contact-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .about-legal {
        text-align: center;
    }
}

/* ========================================
   Color Mixer Styles
   ======================================== */

.color-mixer-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 12px;
}

.section-title i {
    color: var(--accent-purple);
    margin-right: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.mixer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-body);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.color-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.color-input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.color-hex {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 6px 10px;
    border-radius: 6px;
}

/* Per-color percentage sliders */
.color-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-percent {
    width: 100%;
    max-width: 100px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    appearance: none;
    cursor: pointer;
}

.color-percent::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
}

.percent-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Add/Remove color buttons */
.add-color-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
}

.add-color-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.1);
}

.remove-color-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.2s;
}

.remove-color-btn:hover {
    color: #ff4444;
    opacity: 1;
}

.color3-group {
    border: 1px solid var(--accent-purple);
    padding: 12px;
    border-radius: 12px;
    background: rgba(157, 78, 221, 0.1);
}

/* Updated mixer container for 3-color layout */
.mixer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-body);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    align-items: center;
}

.color-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: start;
}

.add-color-btn {
    grid-column: span 1;
}

.ratio-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ratio-slider label {
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-align: center;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.slider-wrapper input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--accent-purple), #4A00E0);
    appearance: none;
    cursor: pointer;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-purple);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ratio-display {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mix-result {
    text-align: center;
}

.mix-result h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.result-swatch {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-hex {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.result-name {
    font-size: 14px;
    color: var(--accent-purple);
}

/* ========================================
   Color Palette Guide Styles
   ======================================== */

.palette-guide-section {
    padding: 80px 0;
}

.palette-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.palette-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.palette-tab:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.palette-tab.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.palette-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.palette-color-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.palette-color-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.palette-color-item .color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.palette-color-item .color-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.palette-color-item .color-code {
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    background: var(--accent-purple);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.palette-color-item .color-hex-value {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive - Color Mixer */
@media (max-width: 768px) {
    .mixer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }

    .color-inputs {
        flex-direction: row;
        justify-content: center;
    }

    .color-picker-wrapper {
        flex-direction: column;
    }

    .palette-colors {
        grid-template-columns: 1fr;
    }
}

/* Light theme adjustments */
.light-theme .mixer-container {
    background: #f5f5f5;
}

.light-theme .color-hex {
    background: #e5e5e5;
    color: #333;
}

.light-theme .palette-color-item {
    background: #f9f9f9;
}

/* ========================================
   Main Content Tabs for Art Education
   ======================================== */

.main-tabs-container {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 50;
}

.main-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.main-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-tab i {
    font-size: 16px;
}

.main-tab:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(157, 78, 221, 0.1);
}

.main-tab.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.main-tab.active i {
    color: white;
}

/* Tab Content Show/Hide */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive Main Tabs */
@media (max-width: 768px) {
    .main-tabs-container {
        top: 60px;
    }
    
    .main-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .main-tab i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-tabs {
        gap: 8px;
    }
    
    .main-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .main-tab span {
        display: none;
    }
}
