/* ============================================
   Isar Support — IT Consulting & Infrastructure
   ============================================ */

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

:root {
    --bg: #ffffff;
    --bg-light: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9fb;
    --text: #1a1a1a;
    --text-muted: #555555;
    --text-dim: #767676;
    --accent: #0043CE;
    --accent-hover: #0055ff;
    --accent-glow: rgba(0, 67, 206, 0.12);
    --border: #e0e0e0;
    --border-light: #d0d0d0;
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1100px;
    --nav-height: 64px;
}

[data-theme="dark"] {
    --bg: #0d1117;
    --bg-light: #161b22;
    --bg-card: #1c2128;
    --bg-card-hover: #21262d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --text-dim: #6e7681;
    --accent: #4d8eff;
    --accent-hover: #6da3ff;
    --accent-glow: rgba(77, 142, 255, 0.15);
    --border: #30363d;
    --border-light: #3d444d;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .nav {
    background: rgba(13, 17, 23, 0.9);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    order: 1;
}

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

.accent {
    color: var(--accent);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    order: 2;
    margin-left: auto;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text);
}

.lang-switch {
    background: var(--accent);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    background: var(--accent-hover);
    color: #ffffff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    order: 4;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Theme Toggle
   ============================================ */

.theme-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
    order: 3;
    margin-left: 20px;
    padding: 0;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--text);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   Hero with Parallax
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    inset: -20%;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(10, 10, 10, 0.88) 0%,
        rgba(13, 17, 23, 0.80) 50%,
        rgba(10, 10, 10, 0.92) 100%);
    z-index: 1;
}

/* Hero & Stats: dark text overrides */
.hero, .hero a, .hero h1 { color: #ffffff; }
.hero-sub { color: #a0a0a0 !important; }
.hero .btn { color: #ffffff; }
.hero .btn-outline { color: #a0a0a0; border-color: rgba(255,255,255,0.2); }
.hero .btn-outline:hover { color: #ffffff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 640px;
    padding: 80px 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-muted);
}

.btn-outline:hover {
    background: rgba(0, 67, 206, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin-top: 12px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 500px;
}

/* ============================================
   Value Pillars
   ============================================ */

.pillars {
    padding: 80px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar {
    text-align: center;
    padding: 40px 24px;
}

.pillar-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.pillar h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* ============================================
   Services
   ============================================ */

.services {
    background: var(--bg);
}

.service-block {
    margin-bottom: 24px;
    padding: 32px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

.service-block-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-block-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 700px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 67, 206, 0.1);
}

[data-theme="dark"] .service-item:hover {
    box-shadow: 0 4px 12px rgba(77, 142, 255, 0.15);
}

.service-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.service-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ============================================
   Services - Visual Hierarchy
   ============================================ */

.services-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.services-specialized .service-block {
    padding: 24px;
    margin-bottom: 16px;
}

.services-specialized .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.services-specialized .service-item {
    padding: 18px;
}

.services-specialized .service-item h4 {
    font-size: 0.88rem;
}

.services-specialized .service-item p {
    font-size: 0.78rem;
}

.services-cta {
    text-align: center;
    margin-top: 48px;
    padding: 48px 32px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.services-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ============================================
   About
   ============================================ */

.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.tech-stack h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ============================================
   Industries
   ============================================ */

.industries {
    padding: 60px 0;
    background: var(--bg);
}

.industries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.industry-tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.industry-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ============================================
   How We Work
   ============================================ */

.how-we-work {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 2px 8px rgba(0, 67, 206, 0.25);
}

.step-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/* ============================================
   Stats / Counters with Parallax
   ============================================ */

.stats {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.stats-parallax {
    position: absolute;
    inset: -20%;
    background: url('../img/stats-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    z-index: 1;
}

.stats, .stat-label { color: #ffffff; }
.stat-label { color: #a0a0a0 !important; }

.stats-inner {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    padding: 24px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -2px;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

/* ============================================
   Contact
   ============================================ */

.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-links li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.contact-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-links strong {
    display: block;
    color: var(--text);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.contact-links a,
.contact-links span {
    font-size: 0.9rem;
}

/* ============================================
   Form
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
}

.form-status.success {
    color: #2ea043;
}

.form-status.error {
    color: #f85149;
}

.form-status.info {
    color: var(--accent);
}

.form-hint {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.form-hint a {
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: var(--bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 4px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================
   Fade-in Animation
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-specialized .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(13, 17, 23, 0.97);
    }

    .nav-menu.open {
        max-height: 300px;
        padding: 16px 0;
    }

    .theme-toggle {
        order: 3;
        margin-left: auto;
        margin-right: 12px;
    }

    .nav-menu li {
        padding: 12px 0;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillar {
        padding: 24px;
    }

    .services-grid,
    .services-specialized .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .service-block {
        padding: 24px;
    }

    .service-item {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 16px 8px;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.cookie-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.cookie-link:hover {
    color: var(--text);
}

/* Cookie Policy Overlay */

[data-theme="dark"] .cookie-banner {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-policy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cookie-policy-overlay.visible {
    display: flex;
}

.cookie-policy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

[data-theme="dark"] .cookie-policy {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cookie-policy h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.cookie-policy p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.cookie-policy ul {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 16px 20px;
}

.cookie-policy .btn-small {
    margin-top: 12px;
}

/* ============================================
   Blog
   ============================================ */

.blog-preview {
    background: var(--bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 67, 206, 0.1);
}

[data-theme="dark"] .blog-card:hover {
    box-shadow: 0 4px 12px rgba(77, 142, 255, 0.15);
}

.blog-card-thumb {
    width: 100%;
    height: 160px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-date {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.blog-card-body h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body h2 a {
    color: var(--accent);
}

.blog-card-body h2 a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-all-link {
    text-align: center;
}

.blog-all-link a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Blog Listing Page */

.blog-listing {
    padding-top: calc(var(--nav-height) + 60px);
    background: var(--bg);
    min-height: 100vh;
}

.blog-listing .blog-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Article Page */

.article-page {
    padding-top: calc(var(--nav-height) + 60px);
    background: var(--bg);
    min-height: 100vh;
}

.article-header {
    margin-bottom: 40px;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-content {
    max-width: 720px;
}

.article-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 56px 0 20px;
    letter-spacing: -0.3px;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 40px 0 14px;
}

.article-content ul,
.article-content ol {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 0 20px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--text);
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-hero-img {
    max-width: 80px;
    margin: 0 0 32px;
}

.article-hero-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.article-hero-combo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 32px;
}

.article-hero-combo img {
    height: 100px;
    width: auto;
    border-radius: var(--radius);
}

.article-hero-combo .combo-plus {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

.article-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-back a {
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-listing .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-policy {
        padding: 24px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .nav,
    .footer,
    .cookie-banner,
    .cookie-policy-overlay,
    .hero-parallax,
    .hero-overlay,
    .stats-parallax,
    .stats-overlay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .hero, .hero a, .hero h1 {
        color: #000;
    }

    .hero-sub {
        color: #333 !important;
    }

    .stats, .stat-label {
        color: #000;
    }

    .stat-label {
        color: #333 !important;
    }

    section {
        padding: 30px 0;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-parallax,
    .stats-parallax {
        transform: none !important;
    }
}
