/* ========================================
   BONCHEM.IN - Index Landing Page
   Aesthetic: Minimalist, Brutalist-Premium
   Background: Custom Noise Pattern
   ======================================== */

@font-face {
    font-family: 'Adobe Caslon Pro';
    src: url('/fonts/acaslon/fonnts.com-ACaslonPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Adobe Caslon Pro';
    src: url('/fonts/acaslon/fonnts.com-ACaslonPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Adobe Caslon Pro';
    src: url('/fonts/acaslon/fonnts.com-ACaslonPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --text-primary: #f0f0f0;
    --text-secondary: rgba(240, 240, 240, 0.6);
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Adobe Caslon Pro', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1%, -1%);
    }

    20% {
        transform: translate(1%, 1%);
    }

    30% {
        transform: translate(-2%, -3%);
    }

    40% {
        transform: translate(3%, 2%);
    }

    50% {
        transform: translate(-1%, 3%);
    }

    60% {
        transform: translate(-3%, -2%);
    }

    70% {
        transform: translate(2%, 1%);
    }

    80% {
        transform: translate(1%, -3%);
    }

    90% {
        transform: translate(-2%, 2%);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding-top: 4vh;
}

.main-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* Section Label */
.section-label {
    font-size: 1.1rem;
    letter-spacing: normal;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Artists Grid */
#artists-container {
    width: 100%;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 3rem;
    width: 100%;
}

.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.artist-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) contrast(1.1);
    border: 1px solid transparent;
    transition: all 0.5s ease;
}

.artist-card span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: normal;
    transition: all 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-8px);
}

.artist-card:hover img {
    filter: grayscale(0%);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.artist-card:hover span {
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Loading & Footer */
.loading {
    display: flex;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.footer {
    margin-top: auto;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.3);
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* Good for very small screens */
}

.footer p a {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 15px;
    width: auto;
    margin: 0 10px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        margin-bottom: 4rem;
    }

    .main-logo {
        max-width: 300px;
    }

    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .artist-card img {
        width: 90px;
        height: 90px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/media/index/grain.gif');
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}