/*
Theme Name: Sivupaja Teema v9.0
Theme URI: https://sivupaja.com
Author: Sivupaja
Description: Sivupaja.com premium WordPress-teema — huoltotila + parannukset
Version: 9.0
Text Domain: sivupaja
*/

:root {
    --candy-blue: #4da6ff;
    --candy-blue-light: #66b3ff;
    --bg-dark: #060b14;
    --text-secondary: #b8c5d6;
    --gradient-candy: linear-gradient(135deg, #4da6ff, #66b3ff, #80bfff);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: #fff;
    overflow-x: hidden;
    cursor: none;
    line-height: 1.7;
}

/* ===== CURSOR — CROSSHAIR ===== */
.cursor-cross {
    position: fixed; pointer-events: none; z-index: 10000;
    width: 28px; height: 28px;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cursor-cross::before, .cursor-cross::after {
    content: ''; position: absolute;
    background: var(--candy-blue);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(77, 166, 255, 0.5);
    transition: all 0.2s ease;
}
.cursor-cross::before { width: 1.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.cursor-cross::after { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.cursor-cross.hover { width: 44px; height: 44px; }
.cursor-cross.hover::before, .cursor-cross.hover::after {
    background: var(--candy-blue-light);
    box-shadow: 0 0 14px rgba(77, 166, 255, 0.7);
}

/* ===== FLOATING SHAPES BACKGROUND ===== */
.bg-shapes {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-shape {
    position: absolute;
    border: 1px solid rgba(77, 166, 255, 0.06);
    opacity: 0;
    animation: floatShape linear infinite;
}
.bg-shape.diamond { transform: rotate(45deg); }
.bg-shape.circle { border-radius: 50%; }
.bg-shape.ring { border-radius: 50%; background: none; border-width: 1.5px; }

@keyframes floatShape {
    0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px) rotate(180deg); }
}

.bg-vignette {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(6, 11, 20, 0.6) 100%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(6, 11, 20, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(77, 166, 255, 0.1);
    padding: 16px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; }
.logo span { color: var(--candy-blue); }
.logo img, .custom-logo-link img, .custom-logo { max-height: 48px; width: auto; display: block; }
.custom-logo-link { display: flex; align-items: center; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
    padding: 6px 0; position: relative; transition: color 0.3s ease; cursor: none;
}
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--candy-blue);
    transition: width 0.3s ease; box-shadow: 0 0 8px var(--candy-blue);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; background: none; border: none;
    width: 32px; height: 24px; position: relative;
    cursor: pointer; z-index: 1001; padding: 0;
}
.mobile-menu-toggle span {
    display: block; width: 100%; height: 2px;
    background: #fff; border-radius: 2px;
    position: absolute; left: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }
.mobile-menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    padding: 80px 20px 60px; position: relative; z-index: 2;
}
.hero-inner { width: 100%; }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(44px, 8vw, 110px);
    font-weight: 900; line-height: 1.05;
    margin-bottom: 24px; letter-spacing: -2px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
    display: inline-block; transform: translateY(110%);
    animation: lineReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.3s; }
.hero h1 .line:nth-child(2) span {
    animation-delay: 0.55s;
    background: linear-gradient(135deg, var(--candy-blue), #00d4ff, var(--candy-blue-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: lineReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards, shimmer 4s ease-in-out infinite 1.6s;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub {
    font-size: 19px; color: var(--text-secondary); font-weight: 300;
    max-width: 520px; margin: 0 auto 40px;
    opacity: 0; animation: fadeUp 1s ease 0.8s forwards;
}

.magnetic-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 18px 48px; background: transparent;
    border: 1.5px solid rgba(77, 166, 255, 0.5); color: #fff;
    font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
    border-radius: 60px; cursor: none; overflow: hidden;
    opacity: 0; animation: fadeUp 1s ease 1s forwards;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.magnetic-btn .btn-arrow { display: inline-block; transition: transform 0.4s ease; }
.magnetic-btn:hover .btn-arrow { transform: translateX(6px); }
.magnetic-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--candy-blue), #00c8ff);
    border-radius: 60px; transform: scaleX(0); transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); z-index: -1;
}
.magnetic-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.magnetic-btn:hover { border-color: transparent; box-shadow: 0 0 40px rgba(77, 166, 255, 0.4); }

/* Scroll indicator */
.scroll-indicator {
    margin-top: 50px;
    opacity: 0; animation: fadeUp 1s ease 1.3s forwards;
    display: flex; flex-direction: column; align-items: center;
}
.scroll-mouse {
    width: 24px; height: 38px; border: 2px solid rgba(77, 166, 255, 0.35);
    border-radius: 12px; position: relative; margin-bottom: 10px;
}
.scroll-mouse::before {
    content: ''; width: 3px; height: 7px; background: var(--candy-blue);
    border-radius: 3px; position: absolute; top: 7px; left: 50%;
    transform: translateX(-50%); animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 22px; } }
.scroll-indicator span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(77, 166, 255, 0.4); }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4.5vw, 52px); font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, var(--candy-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 14px; display: inline-block; position: relative;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--gradient-candy); border-radius: 2px;
    box-shadow: 0 0 15px rgba(77, 166, 255, 0.4);
}
.section-header p { font-size: 16px; color: var(--text-secondary); font-weight: 300; margin-top: 28px; }

/* ===== HOLO CARDS ===== */
.services { padding: 80px 20px; position: relative; z-index: 2; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.holo-card {
    position: relative; border-radius: 24px; padding: 40px 32px;
    display: flex; flex-direction: column;
    overflow: hidden; cursor: none; transform-style: preserve-3d;
    transition: transform 0.2s ease;
    opacity: 0; transform: translateY(60px);
}
.holo-card.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.holo-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 24px;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(77, 166, 255, 0.1); z-index: 0;
    transition: border-color 0.5s ease;
}
.holo-card:hover::before { border-color: rgba(77, 166, 255, 0.3); }
.holo-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 24px;
    background: linear-gradient(var(--holo-angle, 135deg), transparent 0%, rgba(77, 166, 255, 0.08) 25%,
        rgba(0, 200, 255, 0.1) 40%, rgba(100, 200, 255, 0.06) 55%, transparent 70%);
    opacity: 0; transition: opacity 0.5s ease; z-index: 0; pointer-events: none;
}
.holo-card:hover::after { opacity: 1; }
.holo-card > * { position: relative; z-index: 1; }

.card-light {
    position: absolute; inset: 0; border-radius: 24px; pointer-events: none; z-index: 1;
    background: radial-gradient(400px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(77, 166, 255, 0.1), transparent 40%);
    opacity: 0; transition: opacity 0.3s ease;
}
.holo-card:hover .card-light { opacity: 1; }
.card-edge-glow {
    position: absolute; inset: -1px; border-radius: 24px; pointer-events: none; z-index: 0;
    background: radial-gradient(350px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(77, 166, 255, 0.3), transparent 40%);
    opacity: 0; transition: opacity 0.3s ease;
}
.holo-card:hover .card-edge-glow { opacity: 1; }

.card-icon-wrap {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.12), rgba(0, 200, 255, 0.06));
    border: 1px solid rgba(77, 166, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px; transition: all 0.5s ease;
}
.holo-card:hover .card-icon-wrap {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(77, 166, 255, 0.25);
    border-color: rgba(77, 166, 255, 0.4);
}
.card-icon-wrap svg { width: 28px; height: 28px; stroke: var(--candy-blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card-tag {
    display: inline-block; padding: 5px 12px;
    background: rgba(77, 166, 255, 0.06); border: 1px solid rgba(77, 166, 255, 0.12);
    border-radius: 50px; font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--candy-blue); margin-bottom: 14px; width: fit-content;
}
.holo-card h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 10px; transition: color 0.3s ease; }
.holo-card:hover h3 { color: var(--candy-blue-light); }
.holo-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }

.card-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card-feature {
    padding: 5px 12px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 6px;
    font-size: 11px; color: var(--text-secondary); transition: all 0.3s ease;
}
.holo-card:hover .card-feature { border-color: rgba(77, 166, 255, 0.15); background: rgba(77, 166, 255, 0.04); }

/* ===== ABOUT ===== */
.about-section { padding: 80px 20px; position: relative; z-index: 2; }
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 {
    font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--candy-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 24px; display: inline-block; position: relative;
}
.about-text h2::after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    width: 60px; height: 3px; background: var(--gradient-candy); border-radius: 2px;
}
.about-text p { color: var(--text-secondary); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-item {
    background: rgba(10, 20, 40, 0.5); backdrop-filter: blur(20px);
    border-radius: 18px; padding: 28px; text-align: center;
    border: 1px solid rgba(77, 166, 255, 0.1); transition: all 0.4s ease; cursor: none;
}
.stat-item:hover { transform: translateY(-4px); border-color: var(--candy-blue); box-shadow: 0 8px 30px rgba(77, 166, 255, 0.15); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 900; color: var(--candy-blue); display: block; margin-bottom: 4px; }
.stat-label { color: var(--text-secondary); font-size: 13px; font-weight: 500; }

/* ===== VALUES CAROUSEL ===== */
.values-section { padding: 60px 20px; position: relative; z-index: 2; }
.values-carousel {
    overflow: hidden; padding: 24px 0;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.values-track {
    display: flex; gap: 24px;
    animation: valuesScroll 30s linear infinite;
    width: max-content;
}
.values-track:hover { animation-play-state: paused; }
.value-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 28px;
    background: rgba(10, 20, 40, 0.5); backdrop-filter: blur(20px);
    border-radius: 14px; border: 1px solid rgba(77, 166, 255, 0.08);
    white-space: nowrap; transition: all 0.4s ease;
    cursor: none; flex-shrink: 0;
}
.value-item:hover { border-color: var(--candy-blue); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(77, 166, 255, 0.15); }
.value-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.12), rgba(0, 200, 255, 0.06));
    border: 1px solid rgba(77, 166, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.4s ease;
}
.value-item:hover .value-icon { border-color: rgba(77, 166, 255, 0.4); box-shadow: 0 0 15px rgba(77, 166, 255, 0.2); }
.value-icon svg { width: 18px; height: 18px; stroke: var(--candy-blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.value-item span { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.3s ease; }
.value-item:hover span { color: #fff; }
@keyframes valuesScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== TEXT REVEAL ===== */
.reveal-section { padding: 80px 20px; text-align: center; position: relative; z-index: 2; }
.reveal-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 56px); font-weight: 700;
    line-height: 1.5; max-width: 850px; margin: 0 auto;
}
.reveal-text .word {
    display: inline-block; opacity: 0.1; margin: 0 4px;
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease;
    transform: translateY(4px);
}
.reveal-text .word.active { opacity: 1; transform: translateY(0); }
.reveal-text .word.highlight { color: var(--candy-blue-light); }

.reveal-cta {
    margin-top: 50px;
    opacity: 0; transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-cta.visible { opacity: 1; transform: translateY(0); }
.reveal-arrow-btn {
    display: inline-flex; align-items: center; gap: 16px;
    text-decoration: none; color: #fff; cursor: none;
}
.reveal-arrow-btn:hover { gap: 22px; }
.reveal-arrow-btn span { font-size: 16px; font-weight: 500; color: var(--text-secondary); transition: color 0.3s ease; }
.reveal-arrow-btn:hover span { color: #fff; }
.arrow-circle {
    width: 50px; height: 50px; border-radius: 50%;
    border: 1.5px solid rgba(77, 166, 255, 0.35);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; animation: bounceDown 2s ease-in-out infinite;
}
.reveal-arrow-btn:hover .arrow-circle {
    background: var(--candy-blue); border-color: var(--candy-blue);
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.4); animation: none;
}
.arrow-circle svg { width: 20px; height: 20px; stroke: var(--candy-blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s ease; }
.reveal-arrow-btn:hover .arrow-circle svg { stroke: #fff; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== CONTACT ===== */
.contact-section { padding: 80px 20px; position: relative; z-index: 2; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.contact-form-wrapper {
    background: rgba(10, 20, 40, 0.5); backdrop-filter: blur(20px);
    border-radius: 24px; padding: 40px;
    border: 1px solid rgba(77, 166, 255, 0.1); transition: border-color 0.3s ease;
}
.contact-form-wrapper:hover { border-color: rgba(77, 166, 255, 0.25); }
.form-group { margin-bottom: 20px; }
.contact-form label {
    display: block; color: var(--text-secondary); font-size: 11px;
    font-weight: 500; margin-bottom: 6px; letter-spacing: 2px; text-transform: uppercase;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; padding: 14px 18px;
    background: rgba(6, 11, 20, 0.8);
    border: 1.5px solid rgba(77, 166, 255, 0.08); border-radius: 12px;
    color: #fff; font-family: 'Outfit', sans-serif; font-size: 14px;
    transition: all 0.3s ease; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--candy-blue);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.12);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(184, 197, 214, 0.35); }
.contact-form textarea { min-height: 140px; resize: vertical; }

.submit-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 40px; background: transparent;
    border: 1.5px solid rgba(77, 166, 255, 0.5); color: #fff;
    border-radius: 60px; font-weight: 500; font-size: 14px;
    font-family: 'Outfit', sans-serif; cursor: none;
    letter-spacing: 1px; position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.submit-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--candy-blue), #00c8ff);
    border-radius: 60px; transform: scaleX(0); transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); z-index: -1;
}
.submit-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.submit-btn:hover { border-color: transparent; box-shadow: 0 0 30px rgba(77, 166, 255, 0.3); }
.form-message { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.form-message.success { background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); color: #2ecc71; display: block; }
.form-message.error { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); color: #e74c3c; display: block; }

.contact-info h2 {
    font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--candy-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 22px; display: inline-block; position: relative;
}
.contact-info h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 3px; background: var(--gradient-candy); border-radius: 2px; }
.contact-info > p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    display: flex; align-items: center; gap: 18px; padding: 18px 24px;
    background: rgba(10, 20, 40, 0.5); backdrop-filter: blur(20px);
    border-radius: 16px; border: 1px solid rgba(77, 166, 255, 0.08);
    transition: all 0.4s ease; cursor: none;
}
.contact-item:hover { border-color: var(--candy-blue); transform: translateX(6px); box-shadow: 0 4px 24px rgba(77, 166, 255, 0.12); }
.contact-item-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.1), rgba(0, 200, 255, 0.05));
    border: 1px solid rgba(77, 166, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--candy-blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-text h3 { font-family: 'Playfair Display', serif; font-size: 15px; color: #fff; margin-bottom: 2px; }
.contact-item-text p { color: var(--text-secondary); font-size: 13px; }

/* ===== FOOTER ===== */
.sivuston-alapalkki {
    background: rgba(6, 11, 20, 0.95);
    border-top: 1px solid rgba(77, 166, 255, 0.08);
    padding: 32px 20px; text-align: center; position: relative; z-index: 2;
}
.sivuston-alapalkki p { font-size: 13px; color: var(--text-secondary); opacity: 0.6; }

/* ===== PAGE / BLOG / SINGLE ===== */
.page-section { padding: 120px 20px 80px; position: relative; z-index: 2; min-height: 60vh; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.post-card {
    border-radius: 20px; overflow: hidden;
    background: rgba(10, 20, 40, 0.5); backdrop-filter: blur(20px);
    border: 1px solid rgba(77, 166, 255, 0.08);
    transition: all 0.4s ease;
}
.post-card:hover { border-color: rgba(77, 166, 255, 0.25); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(77, 166, 255, 0.1); }
.post-card-inner { display: flex; flex-direction: column; height: 100%; }
.post-thumbnail { overflow: hidden; max-height: 220px; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }
.post-card-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-size: 11px; color: var(--candy-blue); letter-spacing: 2px; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.post-card-content h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.post-card-content h3 a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
.post-card-content h3 a:hover { color: var(--candy-blue-light); }
.post-card-content p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.read-more-link {
    color: var(--candy-blue); text-decoration: none; font-size: 13px; font-weight: 500;
    letter-spacing: 1px; margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.3s ease;
}
.read-more-link:hover { gap: 12px; }

.pagination { margin-top: 50px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px;
    border-radius: 12px; font-size: 14px; font-weight: 500; text-decoration: none;
    background: rgba(10, 20, 40, 0.5); border: 1px solid rgba(77, 166, 255, 0.08);
    color: var(--text-secondary); transition: all 0.3s ease;
}
.pagination a:hover { border-color: var(--candy-blue); color: #fff; }
.pagination .current { background: var(--candy-blue); color: #fff; border-color: var(--candy-blue); }

.no-posts { text-align: center; padding: 60px 0; }
.no-posts p { color: var(--text-secondary); font-size: 18px; margin-bottom: 30px; }

/* Single Article */
.single-thumbnail { border-radius: 20px; overflow: hidden; margin-bottom: 40px; max-height: 500px; }
.single-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Page Content (Gutenberg compat) */
.page-content { max-width: 780px; margin: 0 auto; }
.page-content p { color: var(--text-secondary); font-size: 16px; line-height: 1.9; margin-bottom: 20px; }
.page-content h1, .page-content h2, .page-content h3, .page-content h4 { color: #fff; font-family: 'Playfair Display', serif; margin: 30px 0 14px; }
.page-content h2 { font-size: 32px; }
.page-content h3 { font-size: 24px; }
.page-content a { color: var(--candy-blue); text-decoration: underline; transition: color 0.3s ease; }
.page-content a:hover { color: var(--candy-blue-light); }
.page-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 20px 0; }
.page-content ul, .page-content ol { color: var(--text-secondary); margin: 16px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; line-height: 1.8; }
.page-content blockquote {
    border-left: 3px solid var(--candy-blue); margin: 24px 0; padding: 16px 24px;
    background: rgba(77, 166, 255, 0.04); border-radius: 0 12px 12px 0;
}
.page-content blockquote p { color: #fff; font-style: italic; }

/* Post Navigation */
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(77, 166, 255, 0.08); }
.post-navigation a { color: var(--candy-blue); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.post-navigation a:hover { color: #fff; }
.post-nav-next { text-align: right; }

/* WordPress Classes */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: 16px; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 8px; }

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.scroll-animate.animate-in { opacity: 1; transform: translateY(0); }
.scroll-animate-scale { opacity: 0; transform: scale(0.93); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.scroll-animate-scale.animate-in { opacity: 1; transform: scale(1); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .about-wrapper, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-cross { display: none; }
    .mobile-menu-toggle { display: block; }
    .nav {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: rgba(6, 11, 20, 0.97);
        backdrop-filter: blur(30px);
        border-left: 1px solid rgba(77, 166, 255, 0.1);
        padding: 80px 32px 40px;
        transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 999;
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav li { border-bottom: 1px solid rgba(77, 166, 255, 0.06); }
    .nav a { display: block; padding: 16px 0; font-size: 16px; }
    .holo-card { padding: 32px 24px; }
    .about-text h2, .contact-info h2 { font-size: 30px; }
    .contact-form-wrapper { padding: 28px 20px; }
    .hero h1 { letter-spacing: -1px; }
    .hero-sub { font-size: 16px; }
    .magnetic-btn { padding: 14px 36px; cursor: pointer; }
    .submit-btn { cursor: pointer; }
}
@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
    .nav { width: 100%; }
}
