:root {
    --primary: #ff6b8b;
    --secondary: #6a5af9;
    --accent: #00d4aa;
    --dark: #222831;
    --light: #f9f9f9;
    --gray: #f0f0f0;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fefefe;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.gradient-text {
    background: linear-gradient(90deg, #ff6b8b, #6a5af9, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffc8dd 0%, #bde0fe 100%);
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #444;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4);
}

/* Ads */
.ad-unit {
    background: #f5f7fa;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border-radius: 10px;
    color: #888;
    font-size: 0.9rem;
    overflow: hidden;
}

.ad-placeholder {
    padding: 20px;
    text-align: center;
}

.ad-banner {
    height: 100px;
    width: 100%;
    max-width: 728px;
}

.ad-square {
    width: 300px;
    height: 250px;
}

/* Section Titles */
.section-with-title {
    margin: 60px 0 30px;
}

.section-with-title h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header {
    text-align: center;
    margin: 40px 0 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-top: 5px solid var(--primary);
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.quiz-count {
    display: inline-block;
    background: var(--gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    color: #666;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-card-large {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.category-card-large:hover {
    transform: translateY(-5px);
}

.category-header {
    padding: 30px;
    color: white;
    text-align: center;
}

.category-icon-large {
    font-size: 4rem;
    margin-bottom: 15px;
}

.category-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.category-content {
    padding: 25px;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    color: #666;
}

/* Quiz Cards */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0 50px;
}

.quiz-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.quiz-card:hover {
    transform: translateY(-5px);
}

.quiz-card.featured {
    border: 2px solid var(--primary);
}

.quiz-image {
    height: 220px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 4rem;
}
.quiz-image img{
    width: 100%;
    height: 100%;
}

.quiz-content {
    padding: 20px;
}

.quiz-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.play-btn {
    display: block;
    text-align: center;
    background: var(--accent);
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
}

.play-btn:hover {
    background: #00b894;
    color: white;
}

/* Badges */
.trending-badge, .new-badge, .category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.new-badge {
    background: var(--accent);
}

.category-badge {
    background: var(--secondary);
    top: auto;
    bottom: 15px;
    right: 15px;
}

/* Quiz Slider */
.quiz-slider {
    position: relative;
    margin: 30px 0;
}

.slider-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 30px;
    scrollbar-width: none; /* Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.3);
}

.btn-secondary {
    background: var(--gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: var(--accent);
    color: white;
}

.btn-submit:hover {
    background: #00b894;
    transform: translateY(-3px);
}

.center-btn {
    text-align: center;
    margin: 30px 0;
}

/* Quiz Page Specific */
.quiz-header {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    align-items: center;
    flex-wrap: wrap;
}

.quiz-title-section {
    flex: 1;
    min-width: 300px;
}

.quiz-image-large {
    flex: 0 0 300px;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: var(--shadow);
}

.category-tag {
    display: inline-block;
    background: var(--gray);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.quiz-meta-large {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: #666;
}

.quiz-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background: var(--gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 10%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.5s;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.question-container {
    margin: 40px 0;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.options-container {
    display: grid;
    gap: 15px;
}

.option {
    background: var(--gray);
    padding: 20px;
    margin-top: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option:hover {
    background: #09c984;
}

.option.selected {
    background: #09c984;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Result Page */
.result-header {
    text-align: center;
    margin: 40px 0;
}

.result-title h1 {
    font-size: 2.8rem;
    margin: 15px 0;
    color: var(--dark);
}

.quiz-name {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.result-container {
    position: relative;
    margin: 40px 0;
}

#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    text-align: center;
}

.result-badge {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.result-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: var(--shadow);
}

.result-title-text {
    font-size: 2.5rem;
    margin-bottom: 0px;
    color: var(--dark);
}

.result-score {
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
}

.score-percent {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.result-description {
    text-align: left;
    margin: 40px 0;
    padding: 30px;
    background: var(--gray);
    border-radius: 15px;
}

.result-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.result-traits {
    list-style: none;
    margin: 20px 0;
}

.result-traits li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-traits i {
    color: var(--accent);
}

.style-tip {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 5px solid var(--accent);
}

.style-tip h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark);
}

.style-tip i {
    color: var(--accent);
}

/* Share Section */
.share-section {
    margin: 50px 0;
    padding: 30px;
    background: #f8f9ff;
    border-radius: 15px;
}

.share-section h3 {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.copy-link {
    background: var(--dark);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-image-share {
    margin-top: 40px;
}

.share-preview {
    max-width: 500px;
    margin: 0 auto;
}

.preview-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.preview-header {
    padding: 15px;
    color: white;
    font-weight: 600;
}

.preview-content {
    padding: 20px;
}

.preview-content h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.preview-cta {
    margin-top: 15px;
    padding: 10px;
    background: var(--gray);
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Other Results */
.other-results {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.result-option {
    text-align: center;
    padding: 20px;
    background: var(--gray);
    border-radius: 10px;
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.result-option h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.result-option p {
    font-size: 0.9rem;
    color: #666;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 50px 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: circle;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}
.text-capitalize {
    text-transform: capitalize;
}
.mobile-menu-btn {
    display: none;
}
.image-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.blogDetail p{
    margin-top: 20px;
}
.blogDetail img {
    margin: 20px 0px 20px 0px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.3rem;
    }
    
    .quiz-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-meta-large {
        justify-content: center;
    }
    
    .quiz-image-large {
        order: -1;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 30px;
        box-shadow: var(--shadow);
        transition: left 0.3s;
        z-index: 99;
        gap: 20px;
    }
    
    nav ul.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-with-title h2 {
        font-size: 1.8rem;
    }
    
    .quiz-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .categories {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-btn {
        display: none;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .page-header {
        margin: 20px 0 0px;
    }
    .page-header {
        margin: 20px 0 0px;
    }
    .page-header h1 {
        margin-bottom: 5px;
    }
    .categories-grid {
        margin: 20px 0;
    }
    .quiz-image-large {
        flex: 0 0 00px;
    }
    .quiz-header {
        gap: 10px;
        margin: 10px 0px;
    }
    .quiz-title-section h1 {
        font-weight: 700;
    }
    .progress-container {
        margin-bottom: 10px;
    }
    .question-text {
        margin-bottom: 10px;
    }
    .question-container {
        margin: 10px 0;
    }
    .quiz-container {
        margin: 10px 0;
    }
    .btn-primary, .btn-secondary, .btn-submit {
        padding: 10px 20px;
        margin: 5px;
    }
    .result-title h1 {
        font-size: 28px;
    }
    .result-header {
        margin: 0px 0;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
    }

    #navMenu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #navMenu li {
        border-bottom: 1px solid #eee;
    }

    #navMenu li a {
        display: block;
        padding: 12px 10px;
        text-decoration: none;
    }
    .nav-container {
        padding-left: 30px !important;
    }
    .slider-container {
        display: block;
    }

}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .quiz-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-banner {
        height: 70px;
    }
    
    .quiz-container {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-title-text {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}