/* ═══════════════════════════════════════════════
   Sebastian SF — style.css
   Palette: Warm white, sand, terracotta orange
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

:root {
    --white: #faf8f5;
    --sand: #f0ebe2;
    --stone: #d4cec4;
    --orange: #c8692a;
    --orange-lt: #e07840;
    --orange-pale: #f5e8dc;
    --brown: #6b4c35;
    --dark: #1a1510;
    --mid: #7a6e64;
    --text: #2e2520;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── SECTION LABEL ── */
.section-label {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 500;
    display: block;
    margin-bottom: 14px;
}

.green-label {
    color: #4caf72 !important;
}

/* ═══════════════════════════════════════════════
   NAVIGATION / HERO
   ═══════════════════════════════════════════════ */

.navigation {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: stretch;
}

.nav-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 8, 5, 0.35) 0%,
            rgba(10, 8, 5, 0.15) 40%,
            rgba(10, 8, 5, 0.55) 100%);
    z-index: 1;
}

.nav-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-toggle {
    display: none;
    position: absolute;
    top: 22px;
    left: 20px;
    z-index: 4;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
}

.nav-top {
    display: flex;
    width: 100%;
    padding: 1%;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left a,
.nav-right a {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(14px, 1.3vw, 18px);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    padding: 32px 30px;
    transition: color 0.3s ease;
    font-family: 'Jost', sans-serif;
    padding: 3% 10%;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--orange-lt);
}

.nav-toggle:hover span {
    background: var(--orange-lt);
}

.namn {
    margin: auto 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 60px;
    height: 50%;
}

.namn-tag {
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--orange-lt);
    margin-bottom: 12px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.namn h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 300;
    color: white;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 12px;
}

.namn-sub {
    font-size: clamp(10px, 1vw, 13px);
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.715);
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* Hero fade */
.hero-fade {
    height: 100px;
    background: linear-gradient(to bottom, #000 0%, var(--white) 100%);
    margin-top: -10px;
}

@media (max-width: 850px) {
    .nav-top {
        justify-content: space-between;
    }

    .namn h1 {
        font-size: 8vw;
    }

    .hero-fade {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        justify-content: center;
        align-items: center;
    }

    .nav-top {
        display: none;
    }

    .navigation.menu-open .nav-top {
        display: flex;
        width: 90%;
        max-width: 420px;
        box-sizing: border-box;
        flex-direction: column;
        position: absolute;
        justify-content: center;
        top: 72px;
        background: rgba(10, 8, 5, 0.85);
        border-radius: 18px;
        padding: 18px;
        gap: 12px;
        z-index: 3;
        margin: 0 auto;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-left a,
    .nav-right a {
        width: 100%;
        padding: 14px 16px;
        font-size: 14px;
        text-align: center;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 12px;
    }

    .namn {
        padding-top: 86px;
    }

    .nav-scroll-hint {
        bottom: 16px;
    }
}

/* ═══════════════════════════════════════════════
   WHAT I DO
   ═══════════════════════════════════════════════ */

.what-section {
    background: var(--white);
    padding: 100px 8% 120px;
}

.section-label {
    font-size: 1vw;
}

.what-header {
    max-width: 700px;
    margin-bottom: 70px;
}

.what-title {
    font-family: 'Playfair Display', serif;
    font-size: 5vw;
    font-weight: 300;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.what-title em {
    font-style: italic;
    color: var(--orange);
}

.what-sub {
    font-size: 1.8vw;
    color: var(--mid);
    line-height: 1.8;
    font-weight: 300;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.skill-card {
    background: var(--white);
    border: 1px solid var(--sand);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease, background 0.3s ease, border-color 0.3s ease;
}

.skill-card:nth-child(1) {
    transition-delay: 0.05s;
}

.skill-card:nth-child(2) {
    transition-delay: 0.15s;
}

.skill-card:nth-child(3) {
    transition-delay: 0.25s;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.skill-card:hover {
    background: var(--sand);
    border-color: var(--stone);
}

.skill-card:hover::before {
    transform: scaleY(1);
}

.skill-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 300;
    color: #e07840;
    line-height: 1;
    margin-bottom: 16px;
}

.skill-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.skill-title {
    font-family: 'Playfair Display', serif;
    font-size: 2vw;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.skill-tags span {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e07840;
    border: 1px solid #e07840;
    padding: 4px 10px;
    font-weight: 400;
}

.skill-desc {
    font-size: 1.5vw;
    color: var(--mid);
    line-height: 1.8;
    font-weight: 300;
}

.skill-line {
    width: 40px;
    height: 2px;
    background: var(--stone);
    margin-top: 24px;
}

@media (max-width: 850px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .what-section {
        padding: 70px 6% 80px;
    }

    .section-label {
        font-size: 2vw;
    }

    .what-title {
        font-size: 8vw;
    }

    .what-sub {
        font-size: 4vw;
    }

    .skill-title {
        font-size: 5vw;
    }

    .skill-desc {
        font-size: 3vw;
    }

}

@media (max-width: 480px) {
    .what-section {
        padding: 50px 4% 60px;
    }

    .what-title {
        font-size: 9vw;
    }

    .what-sub {
        font-size: 5vw;
    }

    .skill-title {
        font-size: 6vw;
    }

    .skill-desc {
        font-size: 4vw;
    }
}

/* ═══════════════════════════════════════════════
   LYNX SECTION
   ═══════════════════════════════════════════════ */

.lynx-section {
    background: black;
    padding: 12% 10%;
    position: relative;
    overflow: hidden;
}

.lynx-section::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -300px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(76, 175, 114, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lynx-inner {
    display: flex;
    align-items: center;
    max-width: 1300px;
    padding: 5% 0%;
    gap: 40px;
}

.lynx-text {
    flex: 1;
}

.lynx-title {
    font-family: 'Playfair Display', serif;
    font-size: 4vw;
    font-weight: 300;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.lynx-title em {
    font-style: italic;
    color: #4caf72;
}

.lynx-desc {
    font-size: clamp(13px, 1.1vw, 16px);
    color: #979797;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 460px;
}

.lynx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4caf72;
    border: 1px solid #1f3d1f;
    padding: 14px 28px;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.lynx-btn:hover {
    background: #0d1a0d;
    border-color: #4caf72;
    color: white;
}

.lynx-logo-wrap {
    flex: 0 0 400px;
    opacity: 0.9;
}

.lynx-logo-wrap img {
    width: 40vw;
    height: auto;
    object-fit: contain;
}

@media (max-width: 850px) {
    .lynx-inner {
        flex-direction: column;
        gap: 40px;
    }

    .lynx-logo-wrap {
        flex: none;
        width: 80%;
    }

    .lynx-logo-wrap img {
        width: 100%;
    }

    .lynx-section {
        padding: 70px 8%;
    }

    .lynx-title {
        font-size: 6.5vw;
    }

    .lynx-desc {
        font-size: 2vw;
    }

    .lynx-btn {
        font-size: 1.7vw;
        padding: 3% 4%;
    }
}

@media (max-width: 480px) {
    .lynx-section {
        padding: 70px 4%;
    }

    .lynx-title {
        font-size: 8vw;
    }

    .lynx-desc {
        font-size: 3.5vw;
    }

    .lynx-btn {
        font-size: 3vw;
        padding: 4vw 6vw;
    }
}

/* ═══════════════════════════════════════════════
   PORTFOLIO SLIDESHOW
   ═══════════════════════════════════════════════ */

.portfolio-section {
    background: var(--white);
    padding: 100px 8%;
}

.portfolio-header {
    margin-bottom: 40px;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 300;
    color: var(--dark);
}

.portfolio-slideshow {
    position: relative;
    height: 70vh;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.slide-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(10, 8, 5, 0.7) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 48px;
    left: 48px;
    z-index: 2;
}

.slide-category {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.slide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    font-weight: 400;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.slide-link:hover {
    color: var(--orange-lt);
    border-color: var(--orange-lt);
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slide-dot.active {
    background: var(--orange-lt);
    transform: scale(1.3);
}

@media (max-width: 850px) {
    .portfolio-section {
        padding: 20% 5%;
    }

    .portfolio-slideshow {
        height: 50vh;
    }

    .slide-content {
        left: 24px;
        bottom: 32px;
    }

    .slide-dots {
        right: 24px;
    }
}

@media (max-width: 480px) {
    .portfolio-section {
        padding: 20% 4%;
    }

    .slide-content {
        left: 16px;
        bottom: 24px;
    }

    .slide-dots {
        right: 16px;
    }

    .slide-content {
        font-size: 3vw;
    }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
    background: var(--dark);
    padding: 70px 8% 40px;
    border-top: 1px solid #1a1510;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 300;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    color: #979797;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 14px;
    color: #979797;
    font-weight: 300;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--orange-lt);
}

.footer-bottom {
    border-top: 1px solid #111;
    font-size: 11px;
    color: #555;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-bottom img {
    width: 120px;
    object-fit: contain;
}

@media (max-width: 850px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}