
/* ------------------------------
   SIGNALBRUDD – KORTFILMFESTIVAL
   ------------------------------ */

:root {
    --black: #070908;
    --dark: #101311;
    --dark-soft: #171b18;
    --orange: #e98231;
    --orange-light: #ffb15a;
    --cyan: #00e5e5;
    --white: #f3f1e8;
    --grey: #aaa99f;
    --line: rgba(243, 241, 232, 0.15);
}

/* Grunninnstillinger */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: var(--black);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Lett støy/tekstur over nettsiden */
.noise {
    position: fixed;
    z-index: 20;
    pointer-events: none;
    inset: 0;
    opacity: 0.035;
    background-image:
        repeating-radial-gradient(
            circle at 0 0,
            transparent 0,
            rgba(255, 255, 255, 0.7) 1px,
            transparent 2px
        );
    background-size: 4px 4px;
}

/* Bevegelig cyber-linje */
.scanline {
    position: fixed;
    z-index: 19;
    top: -10px;
    width: 100%;
    height: 2px;
    pointer-events: none;
    background: rgba(0, 229, 229, 0.18);
    box-shadow: 0 0 15px var(--cyan);
    animation: scan 8s linear infinite;
}

@keyframes scan {
    from {
        top: -10px;
    }

    to {
        top: 110vh;
    }
}

/* ------------------------------
   FELLES STILER
   ------------------------------ */

.section {
    padding: 130px 9%;
}

.section-label {
    margin-bottom: 40px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.18em;
}

h2 {
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

h1 span,
h2 span,
.logo span {
    color: var(--cyan);
}

/* ------------------------------
   HERO / FORSIDE
   ------------------------------ */

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 7% 45px;
    overflow: hidden;

    /* Bildet brukes kun her */
    background:
        linear-gradient(
            90deg,
            rgba(4, 8, 7, 0.96) 5%,
            rgba(4, 8, 7, 0.45) 65%,
            rgba(4, 8, 7, 0.72)
        ),
        linear-gradient(
            0deg,
            rgba(4, 8, 7, 0.95),
            transparent 55%
        ),
        url("bilder/signalbrudd.png") center 42% / cover no-repeat;
}

/* Futuristiske linjer over bildet */
.hero::after {
    position: absolute;
    content: "";
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background:
        linear-gradient(
            90deg,
            transparent 0 49%,
            rgba(0, 229, 229, 0.13) 50%,
            transparent 51%
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 9.7%,
            rgba(0, 229, 229, 0.08) 10%,
            transparent 10.3%
        );
}

.navbar,
.hero-content,
.scroll-down {
    position: relative;
    z-index: 2;
}

/* ------------------------------
   NAVIGASJON
   ------------------------------ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

/* Navigasjonsknapper */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 229, 0.25);
    padding: 11px 14px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* Cyan-linjen nederst i nav-knappen */
.nav-links a::before {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    content: "";
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    transition: left 0.3s ease;
}

.nav-links a:hover {
    border-color: var(--cyan);
    background: rgba(0, 229, 229, 0.08);
    color: var(--cyan);
    transform: translateY(-3px);
}

.nav-links a:hover::before {
    left: 0;
}

.nav-links a:active {
    transform: scale(0.96);
    background: rgba(0, 229, 229, 0.18);
}

/* Knappen lengst til høyre i navigasjonen */
.nav-button {
    border: 1px solid var(--cyan);
    padding: 11px 16px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    transition: 0.25s ease;
}

.nav-button:hover {
    background: var(--cyan);
    color: var(--black);
    box-shadow: 0 0 22px rgba(0, 229, 229, 0.6);
}

.nav-button:active {
    transform: scale(0.96);
}

/* ------------------------------
   HERO-TEKST
   ------------------------------ */

.hero-content {
    max-width: 750px;
    padding: 90px 0;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--orange-light);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.2em;
}

.hero h1 {
    max-width: 100%;
    font-size: clamp(3.4rem, 10vw, 8.5rem);
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 0.9;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.18);
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%,
    91%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-3px, 1px);
    }

    94% {
        transform: translate(3px, -1px);
    }

    96% {
        transform: translate(-1px, 2px);
    }
}

.festival-type {
    margin: 18px 0 35px;
    color: var(--white);
    font-size: clamp(0.8rem, 2vw, 1.15rem);
    letter-spacing: 0.5em;
}

.hero-text {
    max-width: 530px;
    color: #e0ddd3;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

/* ------------------------------
   KNAPPER
   ------------------------------ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 16px 22px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    transform: translateY(-4px);
}

.button:active {
    transform: scale(0.97);
}

.primary-button {
    background: var(--cyan);
    color: var(--black);
}

.primary-button:hover {
    box-shadow: 0 0 30px rgba(0, 229, 229, 0.5);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.secondary-button:hover {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--black);
}

/* Scroll ned-knapp */
.scroll-down {
    display: flex;
    align-items: center;
    gap: 15px;
    align-self: flex-start;
    color: var(--grey);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.arrow {
    color: var(--cyan);
    font-size: 1.5rem;
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* ------------------------------
   INTRO
   ------------------------------ */

.two-column {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 90px;
}

.intro-text {
    max-width: 550px;
    color: #c9c8c0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.intro-text p + p {
    margin-top: 23px;
}

.intro-text strong {
    color: var(--orange-light);
}

/* ------------------------------
   SIGNAL-SEKSJON
   Bildet gjentas IKKE her
   ------------------------------ */

.poster-section {
    position: relative;
    display: flex;
    min-height: 600px;
    align-items: center;
    padding: 80px 9%;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(233, 130, 49, 0.38),
            transparent 12%
        ),
        radial-gradient(
            circle at 75% 48%,
            rgba(255, 177, 90, 0.12),
            transparent 28%
        ),
        linear-gradient(
            115deg,
            #050706 10%,
            #16110b 55%,
            #090d0c 100%
        );
}

/* Vertikale signallinjer */
.poster-section::before {
    position: absolute;
    top: 0;
    right: 9%;
    bottom: 0;
    width: 1px;
    content: "";
    opacity: 0.6;
    background: var(--cyan);
    box-shadow:
        40px 0 0 rgba(0, 229, 229, 0.22),
        80px 0 0 rgba(0, 229, 229, 0.1),
        120px 0 0 rgba(0, 229, 229, 0.05);
}

/* Sirkelformet signal-effekt */
.poster-section::after {
    position: absolute;
    right: 12%;
    bottom: 14%;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(0, 229, 229, 0.45);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 28px rgba(0, 229, 229, 0.04),
        0 0 0 60px rgba(0, 229, 229, 0.025),
        0 0 45px rgba(0, 229, 229, 0.2);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 39px,
            rgba(0, 229, 229, 0.06) 40px
        );
}

.poster-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.poster-content h2 {
    margin-bottom: 35px;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
}

/* ------------------------------
   DELTA
   ------------------------------ */

.section-heading {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 90px;
    margin-bottom: 65px;
}

.section-heading p {
    max-width: 500px;
    color: var(--grey);
    font-size: 1.05rem;
    line-height: 1.75;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.requirement-card {
    min-height: 260px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--dark);
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.requirement-card:hover {
    z-index: 1;
    border-color: rgba(0, 229, 229, 0.45);
    background: #1f2823;
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.card-number {
    display: block;
    margin-bottom: 45px;
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.requirement-card h3 {
    margin-bottom: 14px;
    color: var(--orange-light);
    font-size: 1.05rem;
}

.requirement-card p {
    color: var(--grey);
    font-size: 0.92rem;
    line-height: 1.65;
}

.center-button {
    margin-top: 50px;
    text-align: center;
}

/* ------------------------------
   PROGRAM
   ------------------------------ */

.dark-section {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(233, 130, 49, 0.13),
            transparent 28%
        ),
        var(--dark);
}

.timeline {
    margin-top: 80px;
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 30px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    transition:
        padding-left 0.3s ease,
        background 0.3s ease;
}

.timeline-item:hover {
    padding-left: 18px;
    background: rgba(0, 229, 229, 0.04);
}

.timeline-time {
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.16em;
}

.timeline-item h3 {
    margin-bottom: 8px;
    color: var(--orange-light);
    font-size: 1.2rem;
}

.timeline-item p {
    color: var(--grey);
    line-height: 1.6;
}

/* ------------------------------
   PRAKTISK INFORMASJON
   ------------------------------ */

.info-section h2 {
    margin-bottom: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    min-height: 250px;
    padding: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #151916, #0c0e0d);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.info-card:hover {
    border-color: var(--cyan);
    background: linear-gradient(145deg, #18221e, #0c0e0d);
    transform: translateY(-7px);
}

.info-icon {
    display: block;
    margin-bottom: 35px;
    color: var(--cyan);
    font-size: 1.9rem;
}

.info-card h3 {
    margin-bottom: 12px;
    color: var(--orange-light);
    font-size: 1rem;
}

.info-card p {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: bold;
}

.info-card small {
    color: var(--grey);
    line-height: 1.5;
}

/* ------------------------------
   CTA + FOOTER
   ------------------------------ */

.cta-section {
    padding: 130px 9%;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(233, 130, 49, 0.3),
            transparent 38%
        ),
        linear-gradient(180deg, #17120d, #070908);
}

.cta-section .eyebrow {
    color: var(--cyan);
}

.cta-section h2 {
    margin-bottom: 24px;
}

.cta-section > p:not(.eyebrow) {
    max-width: 500px;
    margin: 0 auto 38px;
    color: #c9c8c0;
    line-height: 1.7;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 35px 7%;
    border-top: 1px solid var(--line);
    color: var(--grey);
    font-size: 0.78rem;
}

.footer-small {
    color: #666;
}

/* ------------------------------
   NETTBRETT / MINDRE SKJERMER
   ------------------------------ */

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
    }

   .nav-button {
    display: none;
}

    /* Navigasjonen kommer under logoen på små skjermer */
    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 8px;
        padding-bottom: 8px;
        overflow-x: auto;
        white-space: nowrap;

        /* Gjør det mulig å dra menyen med en finger */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

   .hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 9vw, 5rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    white-space: nowrap;
   }
   
    .nav-links a {
        display: inline-block;
        min-height: 46px;
        padding: 13px 16px;
        font-size: 0.76rem;
    }

    .two-column,
    .section-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
   MOBIL
   ------------------------------ */

@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
        padding: 20px 6% 32px;
        background-position: 57% center;
    }

    .navbar {
        gap: 12px;
    }

   .nav-button {
    display: none;
}

    .logo {
        font-size: 0.7rem;
    }


    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        min-height: 46px;
        padding: 13px 14px;
        font-size: 0.7rem;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3.7rem);
    letter-spacing: 0.025em;
    line-height: 0.95;
    white-space: nowrap;
   }

    .festival-type {
        font-size: 0.72rem;
        letter-spacing: 0.28em;
    }

    .section {
        padding: 85px 7%;
    }

    .poster-section {
        min-height: 520px;
        padding: 70px 7%;
    }

    .poster-section::after {
        right: -50px;
        bottom: 8%;
        width: 180px;
        height: 180px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .requirement-card {
        min-height: auto;
    }

    .timeline-item {
        grid-template-columns: 65px 1fr;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Store knapper er enklere å trykke på med finger */
    .button {
        width: 100%;
        min-height: 54px;
        padding: 17px 20px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ------------------------------
   TOUCH-SKJERM EFFEKTER
   ------------------------------ */

@media (hover: none) {
    .button:active,
    .nav-button:active,
    .nav-links a:active {
        transform: scale(0.97);
        opacity: 0.82;
    }

    .requirement-card:active,
    .info-card:active {
        border-color: var(--cyan);
        background: rgba(0, 229, 229, 0.08);
    }

    /* Fjerner unødvendig hover-animasjon på touch-skjermer */
    .button:hover,
    .requirement-card:hover,
    .info-card:hover {
        transform: none;
    }
}
