:root {
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --accent-lavender: #9999FF;
    --accent-indigo: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(153, 153, 255, 0.2);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(153, 153, 255, 0.1);
    border-top: 2px solid var(--accent-lavender);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1f 0%, #0d0d12 100%);
}

.title-container {
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(5.5rem, 18vw, 13rem);
    font-weight: 700;
    line-height: 0.9;
    padding-bottom: 0.2em;
    margin: 0;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.kalyna-decor {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

.k-1 {
    width: clamp(100px, 15vw, 250px);
    top: -50px;
    left: -60px;
    transform: rotate(-15deg);
}

.k-2 {
    width: clamp(80px, 12vw, 200px);
    bottom: -30px;
    right: -40px;
    transform: rotate(10deg);
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(var(--angle, -15deg)); }
    50% { transform: translate(5px, 15px) rotate(calc(var(--angle, -15deg) + 5deg)); }
}

.k-1 { --angle: -15deg; }
.k-2 { --angle: 10deg; }

.author-link {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    text-decoration: none;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    position: relative;
    z-index: 10;
}

.author-link:hover {
    color: var(--accent-indigo);
    border-bottom-color: var(--accent-lavender);
}

.hero .subtitle {
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #555, transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Grid & Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Card Styling */
.card {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fit the whole image into the card */
    transition: var(--transition-smooth);
}

.card:hover img {
    transform: scale(1.05);
}

/* Solo Font Styling */
.solo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

html {
    scroll-behavior: smooth;
}

.solo-item {
    background: rgba(153, 153, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 16px 32px;
    border-radius: 100px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1.4rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.solo-item:hover {
    background: var(--accent-lavender);
    border-color: var(--accent-lavender);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(153, 153, 255, 0.2);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards ease-out;
}

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

[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .hero h1 { font-size: clamp(4.5rem, 16vw, 8rem); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .grid { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: clamp(3.5rem, 14vw, 6rem); }
    .subtitle { font-size: 1rem; padding: 0 20px; }
    
    .k-1 {
        width: 120px;
        top: -30px;
        left: -20px;
    }
    
    .k-2 {
        width: 100px;
        bottom: -20px;
        right: -10px;
    }
    
    .title-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 1.8rem; }
    .solo-item { font-size: 1.2rem; padding: 15px 25px; }
    
    .k-1 { width: 80px; top: -20px; left: -10px; }
    .k-2 { width: 70px; bottom: -15px; right: -5px; }
}
