@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════
   DESIGN SYSTEM — Paapst Group B.V.
   Dark corporate with heraldic gold accents
   ═══════════════════════════════════════ */

:root {
    /* Backgrounds */
    --bg-deep: #050508;
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f17;
    --bg-card: #111119;
    --bg-card-hover: #16161f;

    /* Gold Palette — from the family shield */
    --gold-primary: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dim: #a08636;
    --gold-faint: rgba(201, 168, 76, 0.08);
    --gold-glow: rgba(201, 168, 76, 0.15);

    /* Accent colors per venture */
    --accent-aevyra: #2563EB;
    --accent-echoput: #D97D54;
    --accent-iso: #00cc66;
    --accent-vicerium: #00ff88;

    /* Text */
    --text-primary: #f0ece4;
    --text-secondary: #9a9590;
    --text-muted: #5a5550;

    /* Borders */
    --border-subtle: rgba(201, 168, 76, 0.08);
    --border-gold: rgba(201, 168, 76, 0.2);
    --border-light: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --nav-height: 72px;
    --section-padding: clamp(5rem, 10vh, 8rem);
    --max-width: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.4s var(--ease-out);
    --transition-slow: 0.7s var(--ease-out);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ─── Typography ─── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* ─── Layout ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ─── Decorative Separator ─── */
.section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 1.5rem auto 0;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-brand-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.nav-brand-text span {
    color: var(--gold-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language switch */
.nav-links a.lang-switch {
    padding: 3px 10px;
    border: 1px solid var(--border-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav-links a.lang-switch::after {
    display: none;
}

.nav-links a.lang-switch:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

/* Mobile menu button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all var(--transition-fast);
    transform-origin: center;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Radial glow behind the shield */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

/* Subtle top vignette */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--bg-deep), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-shield {
    width: clamp(180px, 20vw, 280px);
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 60px rgba(201, 168, 76, 0.12));
    animation: fadeInDown 1s var(--ease-out) 0.2s both;
}

.hero h1 {
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero h1 .gold {
    color: var(--gold-primary);
}

.hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    animation: fadeInUp 0.8s var(--ease-out) 0.7s both;
}

.hero-badge {
    display: inline-block;
    margin-top: 2rem;
    padding: 8px 24px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    background: var(--gold-faint);
    animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 1s var(--ease-out) 1.2s both;
    transition: opacity 0.4s var(--ease-out);
}

.hero-scroll-hint.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   PORTFOLIO / HOLDINGS
   ═══════════════════════════════════════ */
.portfolio {
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ─── Portfolio Card ─── */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-accent, var(--gold-primary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
}

.badge-full {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.badge-partial {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-concept {
    background: rgba(217, 125, 84, 0.1);
    color: var(--accent-echoput);
    border: 1px solid rgba(217, 125, 84, 0.2);
}

.card-entity {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.card-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border: 1px solid var(--border-light);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.card-link:hover {
    color: var(--gold-light);
    gap: 10px;
}

.card-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.card-link:hover svg {
    transform: translateX(2px);
}

/* Card accent color variations */
.portfolio-card[data-accent="aevyra"] {
    --card-accent: var(--accent-aevyra);
}

.portfolio-card[data-accent="aevyra"] .card-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-aevyra);
}

.portfolio-card[data-accent="echoput"] {
    --card-accent: var(--accent-echoput);
}

.portfolio-card[data-accent="echoput"] .card-icon {
    background: rgba(217, 125, 84, 0.1);
    color: var(--accent-echoput);
}

.portfolio-card[data-accent="iso"] {
    --card-accent: var(--accent-iso);
}

.portfolio-card[data-accent="iso"] .card-icon {
    background: rgba(0, 204, 102, 0.08);
    color: var(--accent-iso);
}

/* ─── Product Sub-cards ─── */
.product-subcard {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-left: 2px solid var(--text-muted);
    transition: border-color var(--transition-normal);
}

.product-subcard[data-accent="echoput"] {
    border-left-color: var(--accent-echoput);
}

.product-subcard[data-accent="vicerium"] {
    border-left-color: var(--accent-iso);
}

.subcard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.subcard-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.product-subcard[data-accent="echoput"] .subcard-icon {
    color: var(--accent-echoput);
}

.product-subcard[data-accent="vicerium"] .subcard-icon {
    color: var(--accent-iso);
}

.subcard-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 2px;
}

.subcard-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.subcard-description {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ═══════════════════════════════════════
   HERITAGE
   ═══════════════════════════════════════ */
.heritage {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.heritage-shield {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.08));
}

.heritage-content h2 {
    margin-bottom: 1.5rem;
}

.heritage-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.heritage-symbols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.symbol-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.symbol-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.symbol-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.symbol-meaning {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
    background: var(--bg-deep);
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    height: 28px;
    width: auto;
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    from {
        opacity: 0.6;
        transform: translate(-50%, -55%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.05);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 900px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .heritage-shield {
        max-width: 200px;
    }

    .heritage-symbols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .heritage-symbols {
        grid-template-columns: 1fr;
    }

    .hero::before {
        width: 300px;
        height: 300px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .card-tags {
        gap: 6px;
    }

    .card-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.25);
}