/* ============================
   ANDREAS OTTO – Personal Site
   Dark, minimal, hypermodern
   ============================ */

:root {
    --bg: #0c0c14;
    --bg-elevated: #141420;
    --bg-card: #1c1c2b;
    --text: #f0f0f8;
    --text-muted: #b0b0c8;
    --text-dim: #7a7a96;
    --accent: #00f0d0;
    --accent-dim: rgba(0, 240, 208, 0.15);
    --blue: #3b9eff;
    --purple: #a370ff;
    --orange: #ff9f1a;
    --red: #ff5555;
    --green: #30e870;
    --cyan: #00d4ff;
    --amber: #ffbf00;
    --radius: 12px;
    --radius-lg: 20px;
    --max-w: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(ellipse 90vw 70vh at 0% 8%, rgba(0, 240, 208, 0.30) 0%, transparent 45%),
        radial-gradient(ellipse 70vw 80vh at 100% 0%, rgba(163, 112, 255, 0.35) 0%, transparent 45%),
        radial-gradient(ellipse 80vw 60vh at 85% 50%, rgba(59, 158, 255, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse 60vw 70vh at 5% 65%, rgba(255, 159, 26, 0.20) 0%, transparent 45%),
        radial-gradient(ellipse 70vw 50vh at 50% 25%, rgba(0, 212, 255, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse 50vw 60vh at 75% 90%, rgba(0, 240, 208, 0.22) 0%, transparent 45%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-size: 18px;
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

/* ============ BLOCKQUOTE / PULLQUOTE ============ */

blockquote, .pullquote {
    border-left: 3px solid var(--accent);
    padding: 20px 28px;
    margin: 40px 0;
    background: rgba(0, 240, 208, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 20px;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}

blockquote footer, .pullquote-author {
    font-size: 15px;
    font-style: normal;
    color: var(--text-dim);
    margin-top: 12px;
    display: block;
}

/* ============ NAV ============ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); opacity: 1; }

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    transition: all 0.3s;
}

/* ============ HERO ============ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 40px 60px;
    gap: 40px;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-content { flex: 1; max-width: 620px; }

.hero-tag {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 5.5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    color: #fff;
}

.hero-sub {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
}

/* Hero navigation grid */
.hero-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
}

.hero-nav-item:hover {
    border-color: var(--accent);
    background: rgba(0, 240, 208, 0.06);
    opacity: 1;
    transform: translateY(-2px);
}

.hero-nav-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-nav-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.hero-nav-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-nav-item:hover .hero-nav-title {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline {
    border: 1px solid rgba(92, 224, 210, 0.3);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-dim);
    opacity: 1;
}

.btn-ghost {
    color: var(--text-muted);
}

.btn-ghost:hover { color: var(--text); opacity: 1; }

/* Hero portraits */
.hero-portraits {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.img-frame-hero img {
    width: 80px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
}

.img-frame-hero .img-frame-bg {
    border-radius: 14px;
}

.hero-portrait-2 {
    margin-top: 24px;
}

.hero-contact-reveal {
    text-align: center;
    margin-top: 16px;
}

.hero-contact-reveal a {
    font-size: 17px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.hero-contact-reveal a:hover {
    color: var(--accent);
    opacity: 1;
}

/* ============ IMAGE FRAMES ============ */

.img-frame {
    position: relative;
    display: inline-block;
}

.img-frame img {
    display: block;
    width: 320px;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.img-frame-bg {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: var(--accent);
    opacity: 0.35;
    z-index: 1;
}

/* Small frame variant */
.img-frame-sm img {
    width: 100%;
    height: 240px;
    border-radius: 14px;
}

.img-frame-sm .img-frame-bg {
    top: 8px;
    left: 8px;
    border-radius: 14px;
}

/* Wide frame variant */
.img-frame-wide {
    width: 100%;
    margin-top: 40px;
}

.img-frame-wide img {
    width: 100%;
    height: 300px;
    border-radius: 16px;
}

.img-frame-wide .img-frame-bg {
    border-radius: 16px;
}

/* BG color variants */
.bg-blue { background: var(--blue) !important; }
.bg-purple { background: var(--purple) !important; }
.bg-orange { background: var(--orange) !important; }
.bg-red { background: var(--red) !important; }
.bg-green { background: var(--green) !important; }
.bg-cyan { background: var(--cyan) !important; }
.bg-amber { background: var(--amber) !important; }

/* Contain variant - show full image without cropping */
.img-frame-contain img {
    object-fit: contain;
    background: var(--bg-card);
    border-radius: 16px;
}

.img-frame-contain .img-frame-bg {
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    top: 14px;
    left: 14px;
}

/* YouTube embed */
.video-container {
    position: relative;
    margin: 48px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    width: 100%;
}

.video-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.video-play-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.video-thumbnail:hover .video-play-btn {
    background: rgba(92, 224, 210, 0.3);
    border-color: var(--accent);
}

.video-consent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(8px);
    padding: 16px 20px;
}

.video-consent p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.img-caption {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* ============ SECTIONS ============ */

.section {
    padding: 120px 40px;
}

.section-dark {
    background: rgba(20, 20, 32, 0.7);
    backdrop-filter: blur(1px);
}

.section-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 60px;
}

.section-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 120px;
    align-self: start;
}

.label-num {
    font-family: var(--mono);
    font-size: 15px;
    color: var(--accent);
    opacity: 0.6;
}

.label-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-content h2 {
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 32px;
    color: #fff;
}

.section-content h3 {
    margin-top: 56px;
    margin-bottom: 16px;
}

.section-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 660px;
    font-size: 18px;
    line-height: 1.8;
}

.section-content p strong {
    color: var(--text);
    font-weight: 600;
}

/* ============ TIMELINE ============ */

.timeline { margin-top: 48px; }

.tl-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tl-item:last-child { border-bottom: none; }

.tl-year {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--accent);
    padding-top: 4px;
    opacity: 0.7;
}

.tl-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    margin-top: 0;
}

.tl-role {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 17px;
    margin-left: 4px;
}

.tl-body p {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.link-arrow {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
    border: 1.5px solid rgba(0, 240, 208, 0.35);
    border-radius: 12px;
    background: rgba(0, 240, 208, 0.06);
    transition: all 0.25s;
    letter-spacing: 0.2px;
}

.link-arrow:hover {
    background: rgba(0, 240, 208, 0.15);
    border-color: var(--accent);
    opacity: 1;
    transform: translateX(4px);
}

/* ============ CARDS ============ */

.card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 16px;
}

.card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.highlight-box {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 240, 208, 0.2);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 40px;
}

.highlight-box p {
    color: var(--text);
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.7;
}

/* ============ GALLERY ============ */

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.gallery-three {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ============ PROJECTS ============ */

.project-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.project {
    padding: 24px;
    border-left: 2px solid var(--accent);
    background: rgba(0, 240, 208, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.project h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.project p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============ TRAVEL ============ */

.travel-block {
    margin-bottom: 64px;
}

.travel-block h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

/* ============ CONTACT ============ */

.contact-center {
    text-align: center;
    max-width: 100%;
}

.contact-center p {
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
}

.contact-item {
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
}

.contact-location {
    font-size: 17px;
    color: var(--text-muted) !important;
    margin-top: 20px;
}

/* ============ FOOTER ============ */

.footer {
    padding: 48px 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 15px;
    color: var(--text-dim);
}

/* ============ ANIMATIONS ============ */

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

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

.tl-item.fade-in:nth-child(2) { transition-delay: 0.1s; }
.tl-item.fade-in:nth-child(3) { transition-delay: 0.2s; }
.tl-item.fade-in:nth-child(4) { transition-delay: 0.3s; }

.card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.card.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
    .hero {
        padding-top: 90px;
        gap: 28px;
    }

    .hero-top {
        flex-direction: column-reverse;
        text-align: center;
        gap: 24px;
    }

    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-nav-grid { grid-template-columns: 1fr 1fr; }

    .hero-portraits {
        justify-content: center;
    }

    .img-frame-hero img {
        width: 90px;
        height: 115px;
    }

    .section { padding: 80px 40px; }

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

    .section-label {
        position: static;
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .card-row {
        grid-template-columns: 1fr 1fr;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .gallery-three {
        grid-template-columns: 1fr 1fr;
    }

    .tl-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 99;
    }

    .nav-links.open { display: flex; }
    .nav-links a { font-size: 20px; color: var(--text); }
    .nav-toggle { display: flex; z-index: 101; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 600px) {
    .section { padding: 60px 20px; }
    .nav { padding: 16px 20px; }
    .hero { padding: 80px 20px 60px; }
    .hero-nav-grid { grid-template-columns: 1fr; }
    .card-row { grid-template-columns: 1fr; }
    .gallery-row { grid-template-columns: 1fr; }
    .gallery-three { grid-template-columns: 1fr; }
}
