/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Floating Items */
.floating-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.magnifying-glass {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.magnifying-glass:nth-child(1) { left: 10%; animation-delay: 0s; }
.magnifying-glass:nth-child(2) { left: 30%; animation-delay: 2s; }
.magnifying-glass:nth-child(3) { left: 50%; animation-delay: 4s; }
.magnifying-glass:nth-child(4) { left: 70%; animation-delay: 6s; }
.magnifying-glass:nth-child(5) { left: 85%; animation-delay: 8s; }
.magnifying-glass:nth-child(6) { left: 95%; animation-delay: 10s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a5c 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.badge-icon {
    font-size: 2rem;
    animation: sparkle 2s infinite;
}

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

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff6b9d, #ff8a5c, #ffd93d, #6bcf7f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 15px;
}

.tagline {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    background: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: #ff6b9d;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-image {
    position: relative;
    margin-bottom: 30px;
}

.detective-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff8a5c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.detective-accessories {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
}

.accessory {
    position: absolute;
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.hat { top: 0; left: 50%; transform: translateX(-50%); }
.magnifier { top: 50%; left: 0; }
.notebook { top: 50%; right: 0; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #ff6b9d;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a5c 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    font-family: 'Nunito', sans-serif;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.5);
}

/* Section Titles */
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 80px 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.about-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #ff6b9d;
    margin-bottom: 10px;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* Cases Section */
.cases {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-file {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #ff6b9d;
}

.case-file:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.case-header {
    margin-bottom: 15px;
}

.case-status {
    display: inline-block;
    background: #6bcf7f;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #333;
}

.case-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-footer {
    padding-top: 15px;
    border-top: 2px dashed #ddd;
    font-weight: 700;
    color: #ff6b9d;
}

/* Clues Section */
.clues {
    padding: 80px 20px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

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

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

.tool-card:hover {
    transform: translateY(-10px) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #ff6b9d;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.quiz-container {
    background: white;
    padding: 40px;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #ff6b9d;
    margin-bottom: 25px;
    text-align: center;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.option-btn.correct {
    background: linear-gradient(135deg, #6bcf7f 0%, #4caf50 100%);
}

.option-btn.wrong {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
}

.quiz-score {
    text-align: center;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
}

.quiz-score p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6b9d;
    margin-bottom: 15px;
}

/* Join Section */
.join {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.join-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.join-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.join-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #ff6b9d;
    margin-bottom: 15px;
}

.join-card p {
    color: #666;
    margin-bottom: 20px;
}

.detective-tips {
    list-style: none;
}

.detective-tips li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #555;
    border-bottom: 1px dashed #ddd;
}

.detective-tips li:last-child {
    border-bottom: none;
}

.detective-oath {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.detective-oath h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #ff6b9d;
    margin-bottom: 20px;
}

.oath-text {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
}

.oath-button {
    margin-top: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
}

.footer-text {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.3) rotate(15deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }

    .nav {
        gap: 10px;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .badge {
        flex-direction: column;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .about-content,
    .case-grid,
    .tools-grid,
    .join-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
