/* css/style.css */

:root {
    --primary: #4a69bd; /* A medium blue */
    --secondary: #6a89cc; /* A lighter blue */
    --accent: #55c6e8; /* A bright light blue/cyan for accent */
    --light: #f8f9fa;
    --dark: #212529;
    --success: #38b000;
    --warning: #ff9e00;
    --info: #007bff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* New colors for Netflix-like feel (but modified for quiz theme) */
    --background-dark: #1a202c; /* Slightly darker, deep blue-gray */
    --card-background: #2d3748; /* Darker blue-gray for cards */
    --text-light: #e2e8f0; /* Off-white for general text */
    --text-muted: #a0aec0; /* Muted gray for secondary text */
    --hover-effect: #55c6e8; /* Bright cyan for hover effects and highlights */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--background-dark); /* Darker background */
    color: var(--text-light); /* Lighter text */
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: var(--background-dark); /* Match body background */
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: var(--hover-effect); /* Cyan logo for pop */
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--hover-effect);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
    background: var(--hover-effect);
}

/* New Hero Section Styles */
.hero-new {
    background: url('https://via.placeholder.com/1500x700/000000/FFFFFF?text=Epic+Quizzes+Await') no-repeat center center/cover;
    min-height: 550px; /* Adjust height for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 0; /* Add padding for content spacing */
    overflow: hidden; /* Ensure content doesn't spill */
}

.hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, transparent); /* Gradient overlay */
}

.hero-content-new {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
}

.hero-content-new h1 {
    font-size: 4.5rem; /* Larger font size */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.subtitle-new {
    font-size: 1.5rem; /* Larger subtitle */
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    background-color: var(--hover-effect); /* Use new accent color */
    border: none;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-btn:hover {
    background-color: #4ac1e2; /* Slightly darker shade of accent on hover */
    transform: scale(1.05);
}

/* Search Bar Styles */
.search-bar-container {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 50px; /* Left padding for icon */
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.search-input:focus {
    border-color: var(--hover-effect);
    box-shadow: 0 0 0 3px rgba(85, 198, 232, 0.3); /* Match new accent color */
    background-color: rgba(255, 255, 255, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}


/* General Page Section Styling */
.page-section {
    padding: 80px 0;
    margin: 0;
}

.all-quizzes-layout {
    background-color: var(--background-dark); /* Ensure consistent background */
}

/* Section Title Styles */
h2.section-title, .all-quizzes-layout h2 {
    font-size: 2.8rem;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


/* General content section styling for about, privacy, contact */
.page-section.content-section {
    background-color: var(--card-background); /* Darker background for content boxes */
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 40px auto;
    padding: 40px;
    color: var(--text-light); /* Lighter text for content */
}

.page-section.content-section h2 {
    font-size: 2.5rem;
    color: var(--hover-effect); /* Use new accent color for headings */
    margin-bottom: 30px;
    text-align: center;
}

.page-section.content-section h3 {
    font-size: 1.8rem;
    color: var(--primary); /* Use primary for subheadings */
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--hover-effect); /* Use new accent color border */
    padding-bottom: 5px;
}

.page-section.content-section p,
.page-section.content-section ul li {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-section.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-section.content-section ul li {
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--hover-effect); /* Use new accent color */
    color: white;
}

.btn-primary:hover {
    background-color: #4ac1e2; /* Slightly darker shade of accent */
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--primary); /* Blue button */
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}


/* Quiz Grid (Similar to Netflix rows) */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly smaller min-width for more columns */
    gap: 30px;
    justify-content: center; /* Center cards if there are fewer */
}

.quiz-card {
    background-color: var(--card-background); /* Darker card background */
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* More pronounced shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    transform: translateY(-10px) scale(1.03); /* Lift and slightly grow */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); /* Even more pronounced shadow */
}

.quiz-image {
    width: 100%;
    height: 180px; /* Slightly reduced height */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
}

.quiz-card-content {
    padding: 20px; /* Slightly reduced padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-card h3 {
    font-size: 1.4rem; /* Slightly smaller title */
    color: var(--text-light);
    margin-bottom: 8px;
}

.quiz-card p {
    color: var(--text-muted); /* Muted text for description */
    font-size: 0.95rem; /* Smaller description */
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Call to Action Section (Removed in HTML, keeping styles in case similar section is added) */
.call-to-action {
    background: linear-gradient(135deg, #3a539b, #4a69bd); /* Blue gradient */
    color: white;
    text-align: center;
    padding: 60px 0;
}

.call-to-action h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white; /* Ensure white text on gradient */
}

.call-to-action p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

/* Footer Styles */
footer {
    background-color: #0d121b; /* Even darker footer */
    color: var(--text-muted);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h3 {
    font-size: 1.4rem;
    color: var(--hover-effect); /* Use new accent for footer headings */
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--hover-effect);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--hover-effect);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Page Specific Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.info-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.info-item i {
    font-size: 3rem;
    color: var(--hover-effect);
    margin-bottom: 20px;
}

.info-item h4 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.info-item p {
    font-size: 1rem;
    color: var(--text-muted);
}

.info-item a {
    color: var(--hover-effect);
    text-decoration: none;
}

.contact-form {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-muted);
    border-radius: 5px;
    background-color: #3f4a5b; /* Darker input background */
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--hover-effect);
    outline: none;
    box-shadow: 0 0 5px rgba(85, 198, 232, 0.4); /* Match new accent color */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.btn-primary {
    width: auto;
    padding: 15px 30px;
    font-size: 1.1rem;
    display: block;
    margin-top: 30px;
}

/* Quiz Specific Styles */
#quiz-container, #result-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    color: var(--text-light);
}

.question-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: bold;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option {
    background-color: #3f4a5b; /* Darker option background */
    color: var(--text-light);
    border: 1px solid #4f5a6b;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.option:hover {
    background-color: var(--hover-effect); /* New accent color on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(85, 198, 232, 0.3); /* Match new accent color */
}

/* Quiz Result Styling */
#result-container {
    padding: 50px;
    border: 2px solid var(--hover-effect); /* New accent color border */
    box-shadow: 0 0 20px rgba(85, 198, 232, 0.3); /* New accent color shadow */
    text-align: center;
}

#result-title {
    font-size: 2.5rem;
    color: var(--hover-effect); /* New accent color */
    margin-bottom: 20px;
    animation: fadeInScale 0.8s ease-out;
}

#result-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.result-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    max-height: 300px;
    object-fit: contain;
}

.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    background-color: #3f4a5b; /* Darker background */
    border-radius: 10px;
    height: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--hover-effect); /* New accent color progress bar */
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
    background: linear-gradient(to right, var(--primary), var(--hover-effect)); /* Blue gradient */
}


/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--hover-effect); /* New accent button */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0 5px 15px rgba(85, 198, 232, 0.4); /* New accent shadow */
    transition: var(--transition);
}

#scrollTopBtn:hover {
    background-color: #4ac1e2;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        width: 100%;
        order: 3;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    nav.show {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        background: var(--background-dark); /* Match header */
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-content-new h1 {
        font-size: 3rem; /* Adjust for smaller screens */
    }

    .subtitle-new {
        font-size: 1.2rem;
    }

    .hero-new {
        min-height: 400px;
    }

    .page-section {
        padding: 50px 0;
    }

    h2.section-title, .all-quizzes-layout h2 {
        font-size: 2.2rem;
    }

    .quiz-grid, .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Quiz styles */
    .question-text {
        font-size: 1.5rem;
    }

    .option {
        font-size: 1rem;
    }

    #result-title {
        font-size: 2rem;
    }

    #result-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .logo i {
        font-size: 1.8rem;
    }
    .hero-content-new h1 {
        font-size: 2.5rem;
    }
    .subtitle-new {
        font-size: 1rem;
    }
    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .search-input {
        padding: 10px 15px 10px 40px;
        font-size: 1rem;
    }

    .search-icon {
        left: 10px;
        font-size: 1rem;
    }
}

/* Target the direct parent of result-container or a suitable wrapper */
.container > #result-container { /* This specifically targets result-container if it's a direct child of .container */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center;   /* Center items horizontally within the flex container */
    /* Add any other necessary styles for the result-container itself */
}

/* Ensure the result-image-wrapper itself doesn't have conflicting centering */
.result-image-wrapper {
    position: relative;
    /* Remove or comment out any margin-left/right: auto; or width: fit-content; if using flexbox */
    display: block;
    margin-bottom: 20px;
    max-width: 100%;
    /* No direct centering styles here if parent is handling it via flexbox */
}
#image-credit {
    font-size: 0.8rem;
    font-style: italic;
    color: #666;
    margin-top: 0.25rem;
    display: none;
}