@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@300;400;600;700&display=swap');

/* === Variables === */
:root {
    --bg:           #1a1a2e;
    --bg-light:     #222240;
    --bg-card:      #2a2a4a;
    --text:         #e8e8f0;
    --text-muted:   #9999bb;
    --accent:       #ff6b9d;
    --accent-alt:   #c084fc;
    --accent-warm:  #fbbf24;
    --link:         #7dd3fc;
    --link-hover:   #ff6b9d;
    --border:       #3a3a5c;
    --font-heading: 'Quicksand', sans-serif;
    --font-body:    'Nunito', sans-serif;
    --radius:       12px;
    --radius-sm:    8px;
    --ease:         0.3s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

/* === Base === */
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* === Utilities === */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.accent      { color: var(--accent); }
.accent-alt  { color: var(--accent-alt); }

/* === Header === */
.site-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo img { height: 50px; width: auto; transition: transform var(--ease); }
.site-logo:hover img { transform: scale(1.05); }

.main-nav { display: flex; align-items: center; gap: 0.5rem; }

.main-nav a {
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--ease);
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    background: rgba(255, 107, 157, 0.1);
}

.main-nav .nav-donate {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: #fff !important;
    padding: 0.5rem 1.5rem;
}
.main-nav .nav-donate:hover {
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* === Hero === */
.hero-banner { width: 100%; overflow: hidden; background: var(--bg-light); }
.hero-banner img { width: 100%; height: auto; display: block; object-fit: cover; }

/* === Page Content === */
.page-content { flex: 1; padding: 4rem 0; animation: fadeIn 0.4s ease-out; }
.section { margin-bottom: 4rem; }

.section-title { margin-bottom: 1.5rem; position: relative; display: inline-block; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    border-radius: 2px;
}
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

.intro-text { max-width: 700px; margin: 0 auto 2.5rem; font-size: 1.05rem; line-height: 1.8; }
.intro-text strong { color: var(--accent); }

/* === Gallery Grid === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
    border: 1px solid var(--border);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item .caption {
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text);
}

.gallery-grid.dense {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.gallery-grid.dense .gallery-item img { aspect-ratio: auto; }

/* === Slideshow === */
.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.slideshow-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-card);
}
.slideshow-track::-webkit-scrollbar { height: 6px; }
.slideshow-track::-webkit-scrollbar-track { background: var(--bg-card); }
.slideshow-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.slideshow-track img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    object-fit: contain;
    max-height: 600px;
}

/* === Contact === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: transform var(--ease), box-shadow var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.contact-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--border);
}
.contact-card h3 { color: var(--accent); margin-bottom: 0.5rem; }
.contact-card .role { color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.contact-card .contact-links { display: flex; flex-direction: column; gap: 0.5rem; }

/* === Commissions === */
.commission-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}
.commission-block h3 { color: var(--accent); margin-bottom: 1rem; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.price-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
    transition: transform var(--ease);
}
.price-card:hover { transform: translateY(-3px); }
.price-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.price-card .price-info { padding: 1rem; }
.price-card .price { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--accent-warm); }
.price-card .price-label { font-size: 0.9rem; color: var(--text-muted); }

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-open  { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.status-closed { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }

.will-draw-list { list-style: none; padding: 0; }
.will-draw-list li { padding: 0.5rem 0 0.5rem 1.5em; position: relative; }
.will-draw-list li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }

/* === Donate === */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 2.5rem auto;
}
.donate-btn {
    display: block;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--ease);
}
.donate-btn:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.donate-btn img { max-height: 60px; margin: 0 auto 1rem; }
.donate-btn span { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--text); }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.7em 1.8em;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all var(--ease);
    cursor: pointer;
    border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-alt)); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,157,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* === Sub-nav === */
.sub-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sub-nav a {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--ease);
}
.sub-nav a:hover,
.sub-nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* === Portfolio & Animation Showcase === */
.animation-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.animation-showcase img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-showcase img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform var(--ease);
}
.portfolio-showcase img:hover { transform: scale(1.02); }

/* === Discord Banner === */
.discord-banner { text-align: center; margin-top: 2.5rem; }
.discord-banner img { max-width: 300px; margin: 0 auto; border-radius: var(--radius); transition: transform var(--ease); }
.discord-banner:hover img { transform: scale(1.03); }

/* === Footer === */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-top: auto;
}
.site-footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-badge { margin: 1rem auto 0; }
.footer-badge img { height: 40px; display: inline-block; }

/* === Note Block === */
.note {
    background: rgba(255,107,157,0.08);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-light);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 1rem; text-align: center; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .gallery-grid.dense { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .contact-grid, .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid.dense { grid-template-columns: repeat(2, 1fr); }
    .donate-grid { grid-template-columns: 1fr; }
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

::selection { background: var(--accent); color: #fff; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
