/* ========== CSS RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ========== FIXED WIDTH CONTAINER ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 12, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    padding: 0 20px;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    transform: translateY(-2px);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    width: 100%;
    padding: 90px 0 40px;
    overflow-x: hidden;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(
            135deg,
            rgba(80, 0, 255, 0.7) 0%,
            rgba(0, 150, 255, 0.6) 50%,
            rgba(0, 255, 200, 0.5) 100%
        ),
        url('https://files.catbox.moe/tq28cs.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(to right, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.badge {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.badge i {
    color: #ff4e50;
    font-size: 1rem;
}

.random-advice {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto 0;
}

#random-advice {
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

#random-advice:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ========== ADVICE SECTION ========== */
.advice-container {
    width: 100%;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 3px;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.advice-card {
    width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.advice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.advice-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(106, 17, 203, 0.3);
    box-shadow: 0 20px 40px rgba(106, 17, 203, 0.3);
}

.advice-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

.advice-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.advice-content li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.advice-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff4e50;
    font-size: 1.2rem;
    font-weight: bold;
}

.card-button {
    text-align: center;
    margin-top: 25px;
}

.btn-primary {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.5);
}

/* ========== FAQ SECTION ========== */
.faq-section {
    width: 100%;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.01);
}

.faq-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(106, 17, 203, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #ff4e50;
    font-weight: 300;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer.active {
    max-height: 500px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== COMMUNITY SECTION ========== */
.community-section {
    width: 100%;
    padding: 80px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.community-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.community-card {
    width: 100%;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-align: center;
}

.community-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(106, 17, 203, 0.3);
    box-shadow: 0 20px 40px rgba(106, 17, 203, 0.3);
}

.community-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.community-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.join-btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.5);
}

/* ========== FOOTER ========== */
.footer {
    width: 100%;
    background: rgba(15, 12, 41, 0.98);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(106, 17, 203, 0.3);
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
    color: #ff4e50;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.copyright p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ========== SCROLL BAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: rgba(15, 12, 41, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transition: left 0.3s ease;
        z-index: 999;
        border-top: 1px solid rgba(106, 17, 203, 0.3);
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .main-content {
        padding: 70px 0 20px;
    }
    
    .hero {
        min-height: 70vh;
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 250px;
    }
    
    .advice-container,
    .faq-section,
    .community-section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .advice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advice-card {
        padding: 25px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .advice-content li {
        font-size: 0.95rem;
    }
    
    .community-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-card {
        padding: 30px 20px;
    }
    
    .community-icon {
        font-size: 2.8rem;
    }
    
    .join-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .advice-card,
    .community-card,
    .faq-item {
        padding: 20px;
    }
    
    .btn-primary,
    .join-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advice-card,
.faq-item,
.community-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.advice-card:nth-child(1) { animation-delay: 0.1s; }
.advice-card:nth-child(2) { animation-delay: 0.2s; }
.advice-card:nth-child(3) { animation-delay: 0.3s; }
.advice-card:nth-child(4) { animation-delay: 0.4s; }
.advice-card:nth-child(5) { animation-delay: 0.5s; }
.advice-card:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.community-card:nth-child(1) { animation-delay: 0.2s; }
.community-card:nth-child(2) { animation-delay: 0.4s; }

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a081f 0%, #1c1940 50%, #141228 100%);
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .footer,
    .menu-toggle,
    .join-btn,
    .btn-primary,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .advice-card,
    .community-card,
    .faq-item {
        border: 1px solid #ddd !important;
        background: white !important;
        color: black !important;
        break-inside: avoid;
        box-shadow: none !important;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero h1 {
        -webkit-text-fill-color: black;
        color: black;
    }
}