/* =========================================================
   Sylvesters legendariska CV och portfolio-sida 
   Css och tema för hela sidan
   ========================================================= */

/* ---------- färgschema och generella temainställningar ---------- */

:root {
    --background: #070707;
    --surface: #111111;
    --surface-light: #181818;
    --accent: #ff4d00;
    --accent-light: #ff7133;
    --text: #f5f5f5;
    --muted: #a5a5a5;
    --border: #292929;
    --max-width: 1180px;
    --font-main: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

/* ---------- navigationsmeny/sidhuvud ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(7, 7, 7, 0.95);
    border-bottom: 1px solid var(--border);
}

.navigation {
    width: min(92%, var(--max-width));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -2px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    padding: 1.5rem 0 0.4rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.menu-button {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ---------- gemensamma stilinställningar ---------- */

.section {
    width: min(92%, var(--max-width));
    margin: 0 auto;
    padding: 110px 0;
}

.dark-section {
    width: 100%;
    padding-left: max(4%, calc((100% - var(--max-width)) / 2));
    padding-right: max(4%, calc((100% - var(--max-width)) / 2));
    background-color: var(--surface);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1;
}

.section-heading h2 span {
    color: var(--accent);
}

/* ---------- hero-sektion ---------- */

.hero {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-content h1 {
    max-width: 750px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content h2 {
    margin: 24px 0;
    color: var(--accent);
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.hero-text {
    max-width: 650px;
    color: #d0d0d0;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid var(--accent);
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.primary-button {
    background-color: var(--accent);
    color: #050505;
}

.primary-button:hover {
    background-color: var(--accent-light);
}

.secondary-button {
    background-color: transparent;
    color: var(--text);
}

.secondary-button:hover {
    background-color: var(--accent);
    color: #050505;
}

.social-links {
    margin-top: 28px;
}

.social-links a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.social-links a:hover {
    color: var(--accent);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-orbit {
    width: min(420px, 75vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(255, 77, 0, 0.35);
    background: radial-gradient(circle, rgba(255, 77, 0, 0.3), transparent 62%);
}

.profile-circle {
    width: 82%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: #0b0b0b;
}

.profile-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.visual-caption {
    margin-top: 25px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
}

/* ---------- om mig-sektion ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.large-text {
    margin-top: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.25;
}

.about-text {
    color: #c4c4c4;
    font-size: 1.05rem;
}

.about-text p {
    margin-top: 0;
    margin-bottom: 25px;
}

/* ---------- kompetenser ---------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    min-height: 300px;
    padding: 30px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    transition: transform 0.2s, border-color 0.2s;
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent);
}

.skill-number {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
}

.skill-card h3 {
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.skill-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.skill-card li {
    margin: 8px 0;
}

/* ---------- tidslinje för relevant utbildning ---------- */

.timeline {
    max-width: 900px;
    border-left: 2px solid var(--accent);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 0 0 50px 35px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 18px rgba(255, 77, 0, 0.6);
}

.timeline-date {
    color: var(--accent);
    font-weight: 700;
}

.timeline-content h3 {
    margin: 0 0 5px;
    font-size: 1.45rem;
}

.school-logo {
    width: min(250px, 75%);
    height: auto;
    margin-bottom: 20px;
    background-color: #ffffff;
}

.institution {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 700;
}

.timeline-content p:last-child {
    color: #c4c4c4;
}

/* ---------- erfarenheter ---------- */

.experience-list {
    display: grid;
    gap: 1px;
    background-color: var(--border);
}

.experience-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 45px;
    padding: 35px;
    background-color: var(--background);
}

.experience-card:hover {
    background-color: var(--surface);
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.experience-card h3 {
    margin: 0;
    font-size: 1.6rem;
}

.experience-card h4 {
    margin: 4px 0 12px;
    color: var(--accent);
    font-size: 1rem;
}

.experience-card p {
    max-width: 800px;
    margin: 8px 0;
    color: var(--muted);
}

.older-experience {
    opacity: 0.75;
}

/* ---------- hobbyprojekt och besatthet ---------- */

.project-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.project-intro .large-text {
    max-width: 650px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 20px;
    transition: opacity 0.25s;
}

.project-grid.hidden {
    display: none;
}

.project-card {
    padding: 35px;
    border: 1px solid var(--border);
    background-color: var(--background);
}

.featured-project {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.08);
}

.project-label {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.project-card h3 {
    margin: 0 0 20px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.project-card p {
    color: #c4c4c4;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.project-tags span {
    padding: 6px 10px;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    color: var(--muted);
    font-size: 0.8rem;
}

.project-highlight {
    margin-top: 30px;
    padding: 18px;
    border-left: 3px solid var(--accent);
    background-color: var(--surface);
}

.project-highlight p {
    margin-bottom: 0;
}


.code-preview {
    margin-top: 25px;
    padding: 15px 18px;
    border: 1px solid #3a3a3a;
    background-color: #090909;
    font-family: "Courier New", monospace;
}

.code-caption {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.72rem;
}

.code-preview code {
    color: var(--accent);
    font-size: 0.95rem;
}

.future-project {
    border-style: dashed;
}

/* ---------- språk och troll ---------- */

.language-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.language-grid div {
    padding: 25px;
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.language-grid strong,
.language-grid span {
    display: block;
}

.language-grid strong {
    margin-bottom: 5px;
}

.language-grid span {
    color: var(--muted);
}

.recognition {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.recognition h3 {
    margin: 0;
}

/* ---------- kontaktgrejer ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 35px;
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    margin-top: 8px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px;
    color: var(--text);
    background-color: var(--background);
    border: 1px solid var(--border);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form textarea {
    resize: vertical;
}

.form-message {
    min-height: 25px;
    margin: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- footern ---------- */

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 4%;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

/* ---------- design med respons och nav's ---------- */

@media screen and (max-width: 1000px) {
    .hero,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .social-links {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .navigation {
        position: relative;
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px 4%;
        background-color: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
    }

    .section,
    .dark-section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 13vw, 5rem);
    }

    .skills-grid,
    .language-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .experience-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        flex-direction: column;
    }
}
/* PAPPASKÄMT 3000 */
.pappaskamt-card {
    position: relative;
    overflow: hidden;
}

.pappaskamt-controls {
    margin-top: 25px;
}

.pappaskamt-input-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pappaskamt-input-row input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--text);
    font: inherit;
    outline: none;
}

.pappaskamt-input-row input:focus {
    border-color: var(--accent);
}

.pappaskamt-input-row input::placeholder {
    color: var(--muted);
}

.pappaskamt-input-row .button {
    white-space: nowrap;
}

.pappaskamt-actions {
    margin-top: 12px;
}

.pappaskamt-actions .button {
    width: 100%;
    text-align: center;
}

.pappaskamt-result {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.pappaskamt-level {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.pappaskamt-level strong {
    color: var(--accent);
}

#jokeResult {
    margin: 15px 0 0;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.6;
}

.pappaskamt-card .project-tags {
    margin-top: 25px;
}

.pappaskamt-actions .button:disabled,
.pappaskamt-input-row .button:disabled {
    opacity: 0.5;
    cursor: wait;
}

@media screen and (max-width: 700px) {
    .pappaskamt-input-row {
        flex-direction: column;
    }

    .pappaskamt-input-row .button {
        width: 100%;
        text-align: center;
    }
}