/* ═══════════════════════════════════════════════════════════════
   Screencase.com — Webdesign & Webprogramming
   dl, 2026-02-28
   Pure CSS, no frameworks. Mobile-first, responsive.
   Brand colors from original logo (ca. 2000–2014)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-deep:    #232d9e;   /* primary — from original logo */
    --blue-mid:     #3d4ec0;   /* hover, accents */
    --blue-light:   #a0c1e0;   /* subtle highlights */
    --blue-pale:    #eef2fb;   /* backgrounds */
    --text-dark:    #1a1a2e;
    --text-mid:     #3a3a5c;
    --text-light:   #6b7280;
    --white:        #ffffff;
    --gray-100:     #f8f9fc;
    --gray-200:     #e8eaf6;
    --timeline-line: #c5cae9;

    --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --radius: 8px;
    --shadow: 0 2px 16px rgba(35, 45, 158, 0.10);
    --shadow-hover: 0 8px 32px rgba(35, 45, 158, 0.18);

    --container-width: 860px;
    --section-gap: 5rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Links ── */
a {
    color: var(--blue-deep);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--blue-mid); }


/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
header {
    background: linear-gradient(135deg, #0d1464 0%, var(--blue-deep) 50%, #3d4ec0 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* White card around logo in hero */
.logo-card {
    display: inline-block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Subtle grid overlay */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 1;
}

.header-tagline {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.80);
    font-weight: 300;
    letter-spacing: 0.03em;
}

.header-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.50);
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}


/* ══════════════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════════════ */
.intro {
    padding: var(--section-gap) 0;
    background: var(--gray-100);
}

.intro h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--blue-deep);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-mid);
    max-width: 680px;
    margin-bottom: 1rem;
}

.lead em { color: var(--blue-deep); font-style: normal; font-weight: 600; }


/* ══════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════ */
.timeline-section {
    padding: var(--section-gap) 0;
    background: var(--white);
}

.timeline-section h2,
.projects-section h2,
.contact-section h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--blue-deep);
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
}

.timeline-section h2::after,
.projects-section h2::after,
.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--blue-deep);
    border-radius: 2px;
}

/* Timeline structure */
.timeline {
    position: relative;
    padding-left: 0;
}

/* Vertical line on left side */
.timeline::before {
    content: '';
    position: absolute;
    left: 64px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}

.timeline-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Year bubble */
.timeline-marker {
    flex-shrink: 0;
    width: 128px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 1.5rem;
    padding-top: 0.25rem;
    position: relative;
}

/* Dot on the line */
.timeline-marker::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 0.6rem;
    width: 12px;
    height: 12px;
    background: var(--blue-deep);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--blue-deep);
}

.year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-deep);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    padding-top: 0.1rem;
}

/* Content card */
.timeline-content {
    background: var(--blue-pale);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    flex: 1;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Location labels in timeline headings */
.timeline-content h3 small {
    font-weight: 400;
    font-size: 0.82em;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

.timeline-content p {
    color: var(--text-mid);
    font-size: 0.97rem;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child { margin-bottom: 0; }

/* Tech pills */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.tech-pills span {
    font-size: 0.75rem;
    background: var(--blue-deep);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* "..." pill — ghost style, signals "and much more" */
.tech-pills .pill-more {
    background: transparent;
    color: var(--blue-deep);
    border: 1.5px dashed var(--blue-mid);
    padding: 0.15rem 0.55rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    cursor: default;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tech-pills .pill-more:hover {
    opacity: 1;
}


/* ══════════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════════ */
.projects-section {
    padding: var(--section-gap) 0;
    background: var(--gray-100);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.project-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.project-card h3 {
    font-size: 1rem;
    color: var(--blue-deep);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-deep);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.project-link:hover {
    color: var(--blue-mid);
    border-bottom-color: var(--blue-mid);
}


/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.contact-section {
    padding: var(--section-gap) 0;
    background: linear-gradient(135deg, #0d1464 0%, var(--blue-deep) 60%, #3d4ec0 100%);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    color: var(--white);
}

.contact-section h2::after {
    background: rgba(255,255,255,0.5);
    left: 50%;
    transform: translateX(-50%);
}

.contact-section p {
    color: rgba(255,255,255,0.80);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-email {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.40);
    border-radius: 100px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-email:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.80);
    color: var(--white);
}


/* ══════════════════════════════════════════════════════
   DISCLAIMER
══════════════════════════════════════════════════════ */
.disclaimer-section {
    padding: 2rem 0 0.5rem;
    text-align: center;
}
.disclaimer-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #888;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
    background: #0d1464;
    color: rgba(255,255,255,0.60);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem 1.2rem;
}

.footer-logo img {
    display: block;
}

.footer-copy {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    font-size: 0.875rem;
}

.footer-links a {
    color: rgba(255,255,255,0.60);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    :root {
        --section-gap: 3rem;
    }

    /* Timeline: collapse side-by-side into stacked on mobile */
    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.75rem;
        padding-left: 2.5rem;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        width: auto;
        justify-content: flex-start;
        padding-right: 0;
        padding-top: 0;
        position: absolute;
        left: 0;
        top: 0;
    }

    /* Reset position on item for absolute marker */
    .timeline-item {
        position: relative;
    }

    .timeline-marker::after {
        right: auto;
        left: -2.2rem;
        top: 0.05rem;
    }

    .year {
        font-size: 0.8rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .contact-section h2::after {
        transform: none;
        left: 0;
    }

    .contact-section {
        text-align: left;
    }
}

@media (max-width: 400px) {
    header { min-height: 80vh; }
    .logo { max-width: 280px; }
}
