/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Paper texture background */
body {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.02) 1px, transparent 1px) 0 0/100% 18px,
        #FAFAF6;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #222;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px dashed #222;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1.5rem;
    color: #222;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: transform 0.1s ease;
}

.nav-link:hover {
    transform: rotate(-1deg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #222;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-gif-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.hero-gif {
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.hero-outline {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 4px dashed #2E6CF6;
    border-radius: 25px;
    z-index: 1;
}

.hero-divider {
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        #222 0,
        #222 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 2rem auto;
    max-width: 200px;
}

/* Buttons */
.btn {
    display: inline-block;
    border: 3px solid #222;
    border-radius: 18px;
    padding: 12px 18px 14px 16px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.06s ease;
    position: relative;
    box-shadow: 4px 4px 0 0 #222;
}

.btn:hover {
    transform: rotate(-1.2deg) scale(1.02);
}

.btn.primary {
    outline: 3px solid #2E6CF6;
    outline-offset: 2px;
}

.btn.ghost {
    outline: 3px solid #2FA84F;
    outline-offset: 2px;
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Art Section */
.art {
    padding: 4rem 0;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.art-card {
    background: #fff;
    border: 3px dashed #222;
    border-radius: 22px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 6px 6px 0 0 #222, 0 0 0 6px rgba(0,0,0,0.04) inset;
    transition: transform 0.2s ease;
}

.art-card:hover {
    transform: translateY(-5px);
}

.art-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.art-caption {
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1.1rem;
    color: #222;
}

/* Wobble animation */
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(0.8deg); }
}

.wobble:hover {
    animation: wobble 0.18s ease-in-out 1;
}

/* Lore Section */
.lore {
    padding: 4rem 0;
}

.lore-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lore-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.triangle-badge {
    display: inline-block;
    margin: 1rem 0;
    animation: wobble 2s ease-in-out infinite;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 3px dashed #222;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 4px 4px 0 0 #222;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: rgba(47, 168, 79, 0.1);
}

.faq-caret {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #222;
    transition: transform 0.2s ease;
}

details[open] .faq-caret {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 3px dashed #222;
    text-align: center;
}

.footer-text {
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1.1rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: 3px solid #222;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 0 #222;
    transition: transform 0.2s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) rotate(-2deg);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-gif-container {
        max-width: 88vw;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .art-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .wobble:hover {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .triangle-badge {
        animation: none;
    }
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
.faq-question:focus,
.back-to-top:focus {
    outline: 3px solid #2E6CF6;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
