@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* ==========================================================================
   1. BAREVNÁ PALETA A PROMĚNNÉ
   ========================================================================== */
:root {
    --bg-linen: #EAE6E1;        /* Světlé premium pozadí (Lněný základ) */
    --green-velvet: #061B12;    /* Temně zelená / Mechová */
    --gold-metallic: #C5A059;   /* Základní matná zlatá */
    --gold-gradient: linear-gradient(135deg, #B58D3D 0%, #E8D08F 50%, #B58D3D 100%);
    --text-dark: #1A1A1A;
    --white: #FFFFFF;
}

/* ==========================================================================
   2. ZÁKLADNÍ RESET A STYLY STRÁNKY
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    scroll-behavior: auto;
    overflow: hidden; /* Vypne nativní scrollbar */
    width: 100%;
    min-height: 100vh;
}

body {
    background-color: var(--bg-linen);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Obal pro plynulý JavaScript scroll */
#smooth-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

/* Custom luxury scrollbar */
.custom-scrollbar {
    position: fixed;
    right: 8px;
    top: 0;
    width: 6px;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.custom-scrollbar:hover {
    opacity: 1;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    background: var(--gold-metallic, #C5A059);
    border-radius: 3px;
    will-change: transform;
}

/* ==========================================================================
   3. SEKCIONÁLNÍ STRUKTURA & TYPOGRAFIE
   ========================================================================== */
section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-subtitle {
    font-family: 'Cinzel', serif;
    color: var(--gold-metallic);
    letter-spacing: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* ==========================================================================
   5. HERO SEKCE
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 150px;
    padding-bottom: 30px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--green-velvet);
}

.hero h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 750px;
    font-size: 1.15rem;
    margin-top: 10px;
    opacity: 0.85;
}

/* ==========================================================================
   6. PORTFOLIO GRID A HIGH-INTENSITY GOLD GLOW KARTY
   ========================================================================== */
@keyframes spinGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.showcase-section {
    padding-top: 20px;
    padding-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    position: relative;
    border-radius: 20px;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 4px;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: conic-gradient(
        transparent 0deg,
        transparent 180deg,
        rgba(197, 160, 89, 0.2) 240deg,
        var(--gold-metallic) 300deg,
        #E8D08F 340deg,
        var(--gold-metallic) 360deg
    );
    animation: spinGlow 3.5s linear infinite;
    z-index: 1;
    opacity: 0.95;
}

.card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: conic-gradient(
        transparent 0deg,
        transparent 180deg,
        rgba(197, 160, 89, 0.2) 240deg,
        var(--gold-metallic) 300deg,
        #E8D08F 340deg,
        var(--gold-metallic) 360deg
    );
    animation: spinGlow 3.5s linear infinite;
    z-index: 0;
    opacity: 0.7;
    filter: blur(16px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.project-card {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--green-velvet);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover {
    transform: translateY(-8px);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
    filter: blur(24px);
}

.project-mockup {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030a07;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.project-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.card:hover .project-mockup img {
    transform: scale(1.05);
}

.project-meta {
    margin-bottom: 8px;
}

.project-category {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold-metallic);
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--white);
}

.project-text {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 25px;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.85);
}

.project-link {
    text-decoration: none;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-metallic);
    position: relative;
    padding-bottom: 4px;
    transition: transform 0.3s ease, color 0.3s ease;
    width: fit-content;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.6);
}

.project-link:hover {
    transform: translateX(6px);
    color: #E8D08F;
}

.project-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   7. PATIČKA
   ========================================================================== */
footer {
    background: var(--green-velvet);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}

/* ==========================================================================
   8. RESPONSIVITA
   ========================================================================== */
@media (max-width: 900px) {

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}