/* ============================================
   WINECODING — Light Feel-Good Theme 2026
   Warm cream base · muted pastels · wine accent
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
    --bg-primary: #fdf8f4;
    --bg-secondary: #fbf1ea;
    --bg-card: #ffffff;
    --bg-card-hover: #fffdfb;
    --bg-glass: rgba(255,255,255,0.65);
    --border-glass: rgba(157,36,73,0.10);
    --border-glass-hover: rgba(157,36,73,0.22);
    --border-soft: #f1e3da;

    --wine: #9d2449;
    --wine-light: #c23a63;
    --wine-glow: rgba(157,36,73,0.18);
    --wine-pale: rgba(157,36,73,0.07);
    --accent: #e08a5b;
    --accent-glow: rgba(224,138,91,0.25);

    /* Soft pastel accents */
    --peach: #ffe0c7;
    --rose: #fbd0dc;
    --lavender: #e4def5;
    --mint: #cfe9d8;

    --text-primary: #3a2730;
    --text-secondary: #6e5862;
    --text-muted: #a3909a;

    --gradient-hero: linear-gradient(120deg, #ef9f6e 0%, #d96b8f 45%, #9d2449 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255,224,199,0.6), rgba(251,208,220,0.45), rgba(228,222,245,0.5));
    --gradient-card: linear-gradient(135deg, rgba(255,224,199,0.5), rgba(251,208,220,0.35));
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x,50%) var(--mouse-y,50%), rgba(216,107,143,0.10), transparent 40%);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-glow: 0 16px 40px rgba(157,36,73,0.12);
    --shadow-card: 0 10px 30px rgba(157,36,73,0.07);
    --shadow-soft: 0 4px 18px rgba(157,36,73,0.06);

    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);

    /* Legacy compatibility (older inline styles in admin.html) */
    --white: #ffffff;
    --cream: #fbf1ea;
    --cream-dark: #f3e6dc;
    --wine-dark: #7a1838;
    --text-dark: #3a2730;
    --shadow-sm: 0 2px 10px rgba(157,36,73,0.06);
    --shadow-md: 0 10px 30px rgba(157,36,73,0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ---------- Background Mesh ---------- */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(255,224,199,0.55), transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(251,208,220,0.45), transparent 60%),
        radial-gradient(ellipse 60% 50% at 75% 85%, rgba(228,222,245,0.4), transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 90%, rgba(207,233,216,0.35), transparent 60%);
    pointer-events: none;
}

/* Remove old decorative layers */
.bg-pattern::after { content: none; }
.floating-shapes, .shape { display: none; }
body::before { content: none; }

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(253,248,244,0.7);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.7rem 2.5rem;
    background: rgba(253,248,244,0.92);
    border-bottom-color: var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover { color: var(--wine); }

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--wine);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    color: var(--wine-light);
    transform: rotate(-10deg) scale(1.1);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
    padding: 0.6rem 1.4rem;
    background: var(--wine);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(157,36,73,0.2);
}

.nav-cta:hover {
    background: var(--wine-light);
    box-shadow: 0 10px 24px rgba(157,36,73,0.3);
    transform: translateY(-1px);
}

/* ---------- Page Header ---------- */
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: fadeUp 0.8s ease-out;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 9rem 2rem 4rem;
    position: relative;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    z-index: 1;
    animation: floatY 6s ease-in-out infinite;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -8% -4% -4% -4%;
    background: var(--gradient-soft);
    filter: blur(40px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.8;
}

.hero-visual img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 50px rgba(157,36,73,0.16);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wine);
    margin-bottom: 1.75rem;
    animation: fadeUp 0.6s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 0 2.25rem;
    line-height: 1.7;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease-out 0.45s both;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: var(--wine);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(157,36,73,0.22);
}

.btn-primary:hover {
    background: var(--wine-light);
    box-shadow: 0 14px 30px rgba(157,36,73,0.32);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: #fff;
    color: var(--wine);
    border: 1.5px solid var(--border-glass-hover);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--wine-pale);
    border-color: var(--wine);
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
section {
    padding: 5rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ---------- Concept Section ---------- */
.concept-section {
    padding: 5rem 2rem;
    position: relative;
}

.concept-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.concept-intro h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.concept-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.concept-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.concept-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition);
}

.concept-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.concept-card:hover::before { opacity: 1; }

.concept-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.concept-card:hover .concept-card-icon {
    transform: scale(1.1) rotate(-6deg);
}

.concept-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Tag pills */
.concept-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    color: var(--text-secondary);
}

.tag.peach { background: var(--peach); color: #a85a2b; }
.tag.rose { background: var(--rose); color: #b03a5f; }
.tag.lavender { background: var(--lavender); color: #6a5aa6; }
.tag.mint { background: var(--mint); color: #3f8862; }

/* ---------- Categories ---------- */
.categories-section { padding: 5rem 2rem; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.category-card:hover::before { opacity: 1; }

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon { transform: scale(1.2); }

.category-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ---------- Story Section ---------- */
.story-section { padding: 5rem 2rem; position: relative; }

.story-grid { max-width: 900px; margin: 0 auto; }

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-hero);
}

.story-card blockquote {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--wine);
}

.story-author { display: flex; align-items: center; gap: 1rem; }

.story-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.story-author-info h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--text-primary);
}

.story-author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- About / autorka ---------- */
.about-section { padding: 5rem 2rem; }

.about-inner {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.about-photo {
    position: relative;
}

.about-photo::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--gradient-soft);
    border-radius: var(--radius-xl);
    filter: blur(24px);
    opacity: 0.7;
    z-index: 0;
}

.about-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(157,36,73,0.18);
}

.about-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--wine-pale);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--wine);
    margin-bottom: 1rem;
}

.about-text h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-sign {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--wine);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.about-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--wine-pale);
    color: var(--wine);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.about-linkedin:hover {
    background: var(--wine);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(157,36,73,0.25);
}

@media (max-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
    .about-photo { max-width: 260px; margin: 0 auto; }
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 5rem 2rem;
    position: relative;
}

.cta-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--gradient-soft);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-card);
}

.cta-content h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-content .btn-primary { display: inline-flex; }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand { text-align: center; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-icon { width: 22px; height: 22px; color: var(--wine); }

.footer-tagline { color: var(--text-muted); font-size: 0.9rem; }

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--wine); }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- Form Styles ---------- */
.form-group { margin-bottom: 1.5rem; }

/* Inline chybová hláška formuláře */
.form-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
    background: #fdf0f2;
    border: 1.5px solid #e8b4bd;
    border-radius: var(--radius-sm);
    color: #9d2449;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-error svg { flex-shrink: 0; }

/* Honeypot pole — past na spam boty. Schované mimo obrazovku
   (ne display:none, to si někteří boti hlídají), nefokusovatelné. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: #fff;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 4px var(--wine-pale);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239d2449' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option { background: #fff; color: var(--text-primary); }

/* ---------- Projects Grid ---------- */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.55rem 1.25rem;
    background: #fff;
    border: 1.5px solid var(--border-soft);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Nunito', sans-serif;
    box-shadow: var(--shadow-soft);
}

.filter-btn:hover {
    border-color: var(--border-glass-hover);
    color: var(--wine);
}

.filter-btn.active {
    background: var(--wine);
    border-color: var(--wine);
    color: #fff;
    box-shadow: 0 8px 20px rgba(157,36,73,0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ---------- Project Card ---------- */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.project-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.project-preview {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-preview .shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        var(--bg-secondary) 0%,
        rgba(255,255,255,0.7) 50%,
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.project-info { padding: 1.5rem; position: relative; z-index: 2; }

.project-category-badge {
    display: inline-block;
    padding: 0.28rem 0.8rem;
    background: var(--wine-pale);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--wine);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer { display: flex; justify-content: space-between; align-items: center; }

.project-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wine);
    transition: var(--transition);
}

.project-link:hover { color: var(--wine-light); gap: 0.5rem; }

/* ---------- Submit Page ---------- */
.submit-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.submit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.submit-card h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.submit-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58,39,48,0.45);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(157,36,73,0.18);
    animation: modalSlideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}

.modal-close {
    float: right;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1.2rem;
}

.modal-close:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stagger children */
.stagger > * {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Loading skeleton (galerie) ---------- */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-preview {
    aspect-ratio: 16/10;
    background: linear-gradient(90deg,
        var(--bg-secondary) 0%,
        rgba(255,255,255,0.7) 50%,
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-body { padding: 1.5rem; }

.skeleton-line {
    height: 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg,
        var(--bg-secondary) 0%,
        rgba(255,255,255,0.7) 50%,
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.w40 { width: 40%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w100 { width: 100%; }

/* ---------- Placeholder for broken images ---------- */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    color: var(--wine);
    font-size: 2.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-content { max-width: 640px; margin: 0 auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 460px; margin: 0 auto; order: -1; }
}

@media (max-width: 768px) {
    nav { padding: 0.75rem 1.25rem; }
    .nav-links { gap: 1rem; }
    .hero { padding: 7rem 1.5rem 3rem; }
    .concept-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .story-card { padding: 2rem; }
    .submit-card { padding: 1.5rem; }
    .modal-content { padding: 1.5rem; }
    .cta-content { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { gap: 0.35rem; }
    .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: rgba(157,36,73,0.2);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover { background: rgba(157,36,73,0.35); }

/* ---------- Selection ---------- */
::selection { background: var(--wine); color: #fff; }
