/* ============================================================
   NOCTURNE — Template Stylesheet
   Version 1.0 | Powered by xpsystems.eu / europehost.eu
   ─────────────────────────────────────────────────────────
   Aesthetic: Midnight Editorial
   Fonts: Cormorant Garamond (headings) + Epilogue (body)
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────
   TIP: Adjust --accent and --glacier to change the color
   scheme across the entire template in one place.
   ─────────────────────────────────────────────────────── */
:root {
    /* Core palette */
    --midnight:     #08090f;
    --deep-navy:    #0d1221;
    --navy:         #111827;
    --frost:        #d6eaf8;
    --ice:          #a8d8ea;
    --crystal:      #c9e8f5;
    --glacier:      #7fb3cc;
    --white:        #f7fafc;
    --muted:        #8fa3b8;

    /* Accent — change this to re-theme everything */
    --accent:       #b0d9f0;
    --accent-glow:  rgba(176, 217, 240, 0.18);

    /* Glass / blur */
    --glass-bg:     rgba(13, 18, 33, 0.72);
    --glass-border: rgba(168, 216, 234, 0.15);
    --glass-blur:   blur(18px);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Epilogue', sans-serif;

    /* Shape */
    --radius-sm:  6px;
    --radius-md:  14px;
    --radius-lg:  24px;
    --radius-xl:  36px;

    /* Motion */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(176, 217, 240, 0.12), 0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--midnight);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(176,217,240,0.09) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--white);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-style: italic; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
p  { font-size: clamp(0.9rem, 1.5vw, 1.05rem); color: var(--frost); }

/* ── Layout Utilities ──────────────────────────────────── */
.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}
.tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--glacier);
    background: rgba(127, 179, 204, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.35em 0.9em;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glacier), transparent);
    margin: 1.5rem 0;
}
section { padding: 6rem 0; }
.section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
}
.section-header p { margin-top: 1rem; font-size: 1.05rem; color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75em 1.7em;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--midnight); }
.btn-primary:hover {
    background: var(--white); color: var(--midnight);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(176,217,240,0.3);
}
.btn-ghost { background: transparent; color: var(--frost); border: 1px solid var(--glass-border); }
.btn-ghost:hover {
    background: var(--accent-glow); color: var(--white);
    border-color: rgba(176,217,240,0.35);
    transform: translateY(-2px);
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; pointer-events: none; }
.navbar-inner {
    pointer-events: all;
    margin: 1rem auto;
    width: min(1100px, 90%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.65rem 1.5rem 0.65rem 1.25rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.45), 0 0 0 0.5px rgba(176,217,240,0.08);
    transition: box-shadow var(--transition);
}
.navbar-inner:hover { box-shadow: 0 4px 40px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(176,217,240,0.2); }
.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-logo svg { width: 20px; height: 20px; stroke: var(--accent); }
.navbar-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.navbar-links a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 0.45em 0.9em;
    border-radius: 100px;
    transition: color var(--transition), background var(--transition);
}
.navbar-links a:hover { color: var(--white); background: rgba(176,217,240,0.07); }
.navbar-links .nav-cta { color: var(--accent); border: 1px solid var(--glass-border); margin-left: 0.5rem; }
.navbar-links .nav-cta:hover { background: rgba(176,217,240,0.12); color: var(--white); }

/* ── Hero / Header ─────────────────────────────────────── */
.site-header {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.header-image-wrap { position: absolute; inset: 0; }
.header-image-wrap img {
    width: calc(100% - 1.5rem);
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center 37%;
    border-radius: var(--radius-xl);
    margin: 0.75rem;
    display: block;
}
.header-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8,9,15,0.1) 0%,
        rgba(8,9,15,0.05) 30%,
        rgba(8,9,15,0.65) 70%,
        rgba(8,9,15,0.95) 100%
    );
    border-radius: var(--radius-xl);
    margin: 0.75rem;
}
.header-content {
    position: relative;
    z-index: 2;
    padding: 0 0 5rem;
    max-width: min(760px, 88%);
    margin-inline: auto;
    text-align: center;
}
.header-content .tag  { animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.header-content h1    { animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.35s both; text-shadow: 0 2px 40px rgba(0,0,0,0.6); }
.header-content p     { margin-top: 1.25rem; font-size: clamp(0.95rem,1.8vw,1.15rem); color: rgba(214,234,248,0.75); animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.5s both; }
.header-actions       { margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.65s both; }

.scroll-hint {
    position: absolute;
    bottom: 2rem; right: 2.5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-rl;
    animation: fadeIn 1.5s ease 1.2s both;
}
.scroll-hint::before {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--glacier));
}

/* ── About ─────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text .tag { margin-bottom: 1.25rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1.2rem; color: var(--muted); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); padding: 1.25rem;
    backdrop-filter: var(--glass-blur);
    transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: rgba(176,217,240,0.35); transform: translateY(-3px); }
.stat-card .num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 300; color: var(--accent); line-height: 1; }
.stat-card .label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.25rem; }

.about-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.about-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    padding: 3rem 2.5rem; text-align: center; position: relative;
    overflow: hidden; width: 100%; max-width: 380px;
}
.about-card::before {
    content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(176,217,240,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.about-card-icon { width: 64px; height: 64px; margin: 0 auto 1.5rem; color: var(--accent); opacity: 0.9; }
.about-card h3 { margin-bottom: 0.75rem; font-style: italic; }
.about-card p { font-size: 0.9rem; color: var(--muted); }

/* ── Timeline ──────────────────────────────────────────── */
.journey-section { background: linear-gradient(180deg, transparent 0%, rgba(13,18,33,0.6) 50%, transparent 100%); }
.timeline { position: relative; max-width: 680px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--glacier) 20%, var(--glacier) 80%, transparent);
    transform: translateX(-50%);
}
.timeline-item {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem; align-items: start; margin-bottom: 3rem;
    opacity: 0; animation: fadeIn 0.7s ease forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.55s; }
.timeline-item:nth-child(5) { animation-delay: 0.7s; }
.timeline-dot {
    width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
    border: 2px solid var(--midnight); box-shadow: 0 0 12px rgba(176,217,240,0.4);
    margin-top: 0.35rem; flex-shrink: 0;
}
.timeline-content {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px); transition: border-color var(--transition);
}
.timeline-content:hover { border-color: rgba(176,217,240,0.3); }
.timeline-year { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--glacier); margin-bottom: 0.35rem; }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-content p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.tl-left { text-align: right; }
.tl-right { text-align: left; }

/* ── Social Cards ──────────────────────────────────────── */
.follow-section { text-align: center; }
.social-cards { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.social-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 2rem 2.5rem; min-width: 160px;
    backdrop-filter: var(--glass-blur); transition: all var(--transition); color: var(--frost);
}
.social-card:hover { transform: translateY(-6px); border-color: rgba(176,217,240,0.35); color: var(--white); box-shadow: var(--shadow-glow); }
.social-card svg { width: 28px; height: 28px; color: var(--accent); }
.social-card .platform { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.social-card .handle { font-size: 0.95rem; font-weight: 500; }

/* ── Contact ───────────────────────────────────────────── */
.contact-wrap { max-width: 580px; margin: 0 auto; text-align: center; }
.contact-box {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 3rem 2.5rem;
    backdrop-filter: var(--glass-blur); margin-top: 2.5rem;
    position: relative; overflow: hidden;
}
.contact-box::before {
    content: ''; position: absolute; bottom: -80px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(176,217,240,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.contact-emails { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.contact-email-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.95rem; color: var(--accent); padding: 0.5em 1em;
    border-radius: 100px; border: 1px solid transparent;
    transition: all var(--transition); justify-content: center;
}
.contact-email-link:hover { border-color: var(--glass-border); background: var(--accent-glow); color: var(--white); }
.contact-email-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--glass-border); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.footer-note { font-size: 0.72rem; color: var(--muted); opacity: 0.65; max-width: 360px; text-align: center; line-height: 1.6; }
.footer-note a { color: var(--glacier); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.footer-links { display: flex; align-items: center; gap: 1rem; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-socials { display: flex; align-items: center; gap: 0.75rem; }
.footer-social-link {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--glass-border); color: var(--muted);
    transition: all var(--transition);
}
.footer-social-link:hover { border-color: rgba(176,217,240,0.3); color: var(--accent); background: var(--accent-glow); }
.footer-social-link svg { width: 16px; height: 16px; }
.footer-bottom {
    text-align: center; padding-top: 1.5rem; margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.72rem; color: var(--muted); opacity: 0.5;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--glacier); }

/* ── Nocturne Watermark ────────────────────────────────── */
.powered-by {
    display: inline-flex; align-items: center; gap: 0.4em;
    font-size: 0.65rem; letter-spacing: 0.08em;
    opacity: 0.45; color: var(--muted);
}
.powered-by a { color: var(--muted); }
.powered-by a:hover { color: var(--glacier); opacity: 1; }

/* ── Imprint ───────────────────────────────────────────── */
.imprint-section { padding: 10rem 0 6rem; }
.imprint-card {
    max-width: 680px; margin: 0 auto;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 3rem 3.5rem;
    backdrop-filter: var(--glass-blur);
}
.imprint-card h2 { font-size: 2.2rem; font-style: italic; margin-bottom: 0.5rem; }
.imprint-card h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glacier); margin: 2rem 0 0.5rem; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; }
.imprint-card h3:first-of-type { margin-top: 1.5rem; border-top: none; padding-top: 0; }
.imprint-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.3rem; }
.imprint-card a { color: var(--accent); }

/* ── 404 ───────────────────────────────────────────────── */
.error-section { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.error-num {
    font-family: var(--font-heading); font-size: clamp(7rem, 20vw, 14rem);
    font-weight: 300; font-style: italic; line-height: 1;
    background: linear-gradient(135deg, var(--glacier), var(--accent), var(--frost));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: block; margin-bottom: 1rem;
}
.error-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-section p { color: var(--muted); margin-bottom: 2rem; }

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

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { order: -1; }
    .timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: auto 1fr; }
    .tl-left:not(.timeline-dot) { display: none; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-right { align-items: center; }
    .footer-note { text-align: center; }
}
@media (max-width: 600px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
    .social-cards { gap: 0.75rem; }
    .social-card { padding: 1.5rem; min-width: 130px; }
    .imprint-card { padding: 2rem 1.5rem; }
    .navbar-links { display: none; }
    .scroll-hint { display: none; }
    .contact-box { padding: 2rem 1.25rem; }
}
