/* ============================================
   Dataroo.nl – Native rebuild
   Palette: deep navy, purple accent, white cards
   ============================================ */

:root {
    --bg-hero:     #0d0b2e;
    --bg-hero-mid: #1a1050;
    --purple:      #7c3aed;
    --purple-soft: #a78bfa;
    --purple-bg:   #8b5cf6;
    --accent:      #7c3aed;
    --white:       #ffffff;
    --off-white:   #f8f9fa;
    --text:        #333;
    --text-light:  #666;
    --footer-bg:   #0a0a1a;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --radius:      12px;
    --max-w:       1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ───────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(13, 11, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    transition: background 0.3s;
}
.nav .wrap {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    font-size: 22px; font-weight: 700; color: var(--white);
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-lang {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--purple); color: var(--white);
    font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
    transition: transform 0.2s;
}
.nav-lang:hover { transform: scale(1.1); }

/* Hamburger (mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--white);
    margin: 5px 0; transition: 0.3s;
}


.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 8px;               /* control space between cube and text */
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

#logo-cube {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* ── HERO ──────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-hero-mid) 50%, #2d1b69 100%);
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Network node pattern (CSS-only) */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(124,58,237,0.4), transparent),
        radial-gradient(2px 2px at 30% 70%, rgba(124,58,237,0.3), transparent),
        radial-gradient(2px 2px at 50% 30%, rgba(167,139,250,0.3), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(124,58,237,0.25), transparent),
        radial-gradient(2px 2px at 85% 25%, rgba(167,139,250,0.35), transparent),
        radial-gradient(2px 2px at 15% 80%, rgba(124,58,237,0.2), transparent),
        radial-gradient(2px 2px at 90% 85%, rgba(167,139,250,0.3), transparent),
        radial-gradient(1.5px 1.5px at 25% 45%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1.5px 1.5px at 60% 15%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1.5px 1.5px at 75% 75%, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Connecting lines effect */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(124,58,237,0.06) 49%, rgba(124,58,237,0.06) 51%, transparent 52%),
        linear-gradient(-30deg, transparent 48%, rgba(167,139,250,0.04) 49%, rgba(167,139,250,0.04) 51%, transparent 52%),
        linear-gradient(120deg, transparent 48%, rgba(124,58,237,0.05) 49%, rgba(124,58,237,0.05) 51%, transparent 52%);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    pointer-events: none;
}

.hero .wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}
.hero-text h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800; color: var(--white);
    line-height: 1.15; margin-bottom: 24px;
}
.hero-text h1 .accent { color: var(--purple-soft); }
.hero-text p {
    color: rgba(255,255,255,0.7); font-size: 16px;
    max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85;
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

/* Optional: subtle overlay to improve text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.4));
    z-index: 1;
    pointer-events: none;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 30px; font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all 0.25s;
    border: 2px solid transparent;
}
.btn-outline {
    background: transparent; border-color: var(--white); color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--bg-hero); }
.btn-purple {
    background: var(--purple); color: var(--white); border-color: var(--purple);
}
.btn-purple:hover { background: #6d28d9; border-color: #6d28d9; }

/* Hero visual — code cards effect */
.hero-visual {
    position: relative; display: flex; justify-content: center;
}
.hero-visual .code-card {
    width: 320px; height: 220px;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, #1a1040, #0d0b2e);
    border: 1px solid rgba(124,58,237,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}
.hero-visual .code-card:nth-child(2) {
    position: absolute; top: 30px; left: 40px;
    transform: rotate(-8deg);
    z-index: 1;
}
.hero-visual .code-card:nth-child(1) {
    position: relative; z-index: 2;
    transform: rotate(5deg);
}
.code-card-inner {
    padding: 20px; font-family: 'Fira Code', monospace; font-size: 11px;
    color: #a5f3c4; line-height: 1.8; opacity: 0.7;
}
.code-card-inner .kw { color: #c084fc; }
.code-card-inner .fn { color: #60a5fa; }
.code-card-inner .str { color: #fbbf24; }

/* ── DIAGONAL TRANSITION ───────────────── */
.diagonal-purple {
    height: 80px; margin-top: -1px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.diagonal-purple::before {
    content: '';
    position: absolute;
    top: 0; left: -5%; right: -5%;
    height: 100%;
    background: var(--purple);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* ── SERVICES ──────────────────────────── */
.services {
    padding: 80px 0 100px;
    background: var(--white);
}
.services .wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: start;
}
.services-label {
    color: var(--purple); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 16px;
}
.services-title {
    font-size: clamp(28px, 3vw, 40px); font-weight: 800;
    line-height: 1.2; margin-bottom: 24px; color: #111;
}
.services-body {
    color: var(--text-light); font-size: 15px; line-height: 1.8;
    margin-bottom: 32px;
}

.service-cards { display: flex; flex-direction: column; gap: 20px; }
.service-card {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--white); padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.service-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: #f3f0ff; border-radius: 12px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--purple); }
.service-card h3 {
    font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #111;
}
.service-card p {
    font-size: 14px; color: var(--text-light); line-height: 1.6;
}

/* ── NEWS / BLOG ───────────────────────── */
.news {
    padding: 80px 0 100px;
    background: var(--off-white);
}
.section-label {
    text-align: center; color: var(--purple); font-size: 13px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.section-title {
    text-align: center; font-size: clamp(26px, 3vw, 38px);
    font-weight: 800; line-height: 1.25; margin-bottom: 48px; color: #111;
}

.post-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.post-card {
    border-radius: var(--radius); overflow: hidden;
    background: var(--white); box-shadow: var(--card-shadow);
    transition: transform 0.25s;
}
.post-card:hover { transform: translateY(-4px); }
.post-card-img {
    height: 200px; overflow: hidden;
    background: linear-gradient(135deg, #1a1040 0%, #111 100%);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.post-tag {
    font-size: 11px; font-weight: 600; padding: 4px 12px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em;
}
.post-tag.ai { background: var(--purple); color: var(--white); }
.post-tag.data { background: #e5e7eb; color: #555; }
.post-date {
    font-size: 13px; color: var(--text-light); margin-bottom: 8px;
}
.post-card h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #111;
}
.post-more {
    font-size: 13px; font-weight: 700; color: var(--purple);
    text-transform: uppercase; letter-spacing: 0.06em;
    display: inline-flex; align-items: center; gap: 6px;
}
.post-more:hover { gap: 10px; }

/* ── CONTACT ───────────────────────────── */
.contact {
    padding: 80px 0;
}
.contact .wrap {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.1);
}
.contact-info {
    background: var(--purple-bg); color: var(--white); padding: 48px;
}
.contact-info-label {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; opacity: 0.8; margin-bottom: 16px;
}
.contact-info h2 {
    font-size: 30px; font-weight: 800; line-height: 1.25;
    margin-bottom: 36px;
}
.contact-detail {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.2);
}
.contact-detail svg { width: 24px; height: 24px; flex-shrink: 0; }
.contact-detail span { font-size: 15px; }

.contact-form { background: var(--white); padding: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 15px; font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--purple);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ── FOOTER ────────────────────────────── */
.footer {
    background: var(--footer-bg); color: rgba(255,255,255,0.8);
    padding: 64px 0 0; position: relative;
}
.footer::before {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(rgba(10,10,26,0.92), rgba(10,10,26,0.92)),
        linear-gradient(45deg, transparent 48%, rgba(124,58,237,0.04) 49%, transparent 52%);
    background-size: 100%, 180px 180px;
    pointer-events: none;
}
.footer .wrap { position: relative; z-index: 1; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 48px;
}
.footer-brand { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex;
    align-items: center; justify-content: center;
    transition: background 0.2s;
}
.footer-social a:hover { background: var(--purple); }
.footer-social svg { width: 16px; height: 16px; color: var(--white); }

.footer h4 {
    font-size: 16px; font-weight: 700; color: var(--white);
    margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a {
    font-size: 14px; color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}
.footer li a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 24px; }
.footer-bottom a:hover { color: var(--white); }

/* ── SCROLL TO TOP ─────────────────────── */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--purple-bg); color: var(--white);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top svg { width: 20px; height: 20px; }

/* ── BLOG LIST PAGE ────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--bg-hero), var(--bg-hero-mid));
    padding: 140px 0 60px; text-align: center;
}
.page-header h1 { color: var(--white); font-size: 42px; font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 16px; margin-top: 12px; }

.page-content { padding: 60px 0 80px; }

/* Single post */
.post-single { max-width: 760px; margin: 0 auto; }
.post-single h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.post-single .post-meta { color: var(--text-light); margin-bottom: 32px; font-size: 14px; }
.post-single .post-body { font-size: 16px; line-height: 1.8; }
.post-single .post-body p { margin-bottom: 16px; }


/* page header */
.page-header-pages {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.grid-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: rgba(13, 11, 46, 0.98); padding: 24px;
        gap: 16px;
    }
    .nav-toggle { display: block; }

    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }

    .services .wrap { grid-template-columns: 1fr; }
    .contact .wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .post-grid { grid-template-columns: 1fr; }
}
