﻿/* FONT */

    html {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        color: #fff5e6;
        scroll-behavior: smooth;
        overflow-x:hidden;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: 'Poppins', sans-serif;
        color: #fff;
        background: linear-gradient(135deg, #0a192f, #0d0d0d, #1e2a47, #3a0d0d);
        background-attachment: fixed;
        background-size: cover;

    }

    /* NAVBAR */
    .navbar {
        background-color: rgba(10, 20, 35, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(12px);
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 5px 40px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

        .navbar::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(270deg, #ff4d6d, /* neon pinkish red */
            #ff9800, /* orange glow */
            #3f51b5, /* deep modern blue */
            #ff4d6d /* tillbaka till startfärg */
            );
            background-size: 400% 400%;
            animation: gradientMove 8s linear infinite;
            border-radius: 2px;
        }

    @keyframes gradientMove {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .nav-container {
        max-width: 1200px;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .logo {
        display: flex;
        align-items: center;
        left: 50vw;
        gap: 10px;
        justify-items: start;
    }

        .logo img {
            height: 60px;
        }

        .logo h2 {
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            font-size: 1.3rem;
            color: white;
            justify-content: start;
            margin-bottom: -20px; /* Ta bort standardmarginal */
        }

    .nav-links {
        display: flex;
        gap: 30px;
        margin-left: auto;
    }

        .nav-links a {
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            font-size: 18px;
            letter-spacing: 0.5px;
            font-family: 'poppins';
            font-weight: 300;
            transition: color 0.3s;
        }

            .nav-links a:hover {
                color: #ff3d00; /* röd siren-hover */
            }

    /* HERO */
    .hero {
        position: relative;
        height: 100vh;
        overflow: hidden;
        width: 100%;
    }


    .video {
        position: absolute;
        bottom: 43%;
        backdrop-filter: blur(100px);
        right: 0;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
        z-index: 1;
        /* Mask för att smälta ut nederdelen */
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: cover;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        mask-repeat: no-repeat;
        mask-size: cover;
    }


    /* Texten */
    .hero-text {
        position: absolute;
        bottom: 150px;
        left: 7vw;
        max-width: 800px;
        z-index: 2; /* Ligger ovanför bilden */
        text-align: left;
    }

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 700;
        color: white;
        font-family: 'Poppins', sans-serif;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.2rem;
        color: #ffe0b2;
        font-family: 'Poppins', sans-serif;
    }

    .hero-counter {
        position: absolute;
        top: 55%;
        right: 7vw;
        background: rgba(255, 111, 0, 0.1);
        padding: 20px 30px;
        border-radius: 12px;
        text-align: center;
        color: #fff;
        font-family: 'Poppins', sans-serif;
        z-index: 2;
    }

        .hero-counter h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #ff9100;
        }

        .hero-counter span {
            font-size: 2.5rem;
            font-weight: 700;
        }

    /*  senaste annonsen*/
    .live {
        position: relative;
        display: inline-block;
        padding: 5px 12px;
        font-size: 14px;
        font-weight: bold;
        color: white;
        text-transform: uppercase;
        border-radius: 999px;
        background: linear-gradient(90deg, #ff3d00, #ff9100);
        overflow: hidden;
        z-index: 1;
        animation: pulse 2s infinite;
    }

        /* Lysande puls bakgrund */
        .live::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,61,0,0.5) 0%, rgba(255,145,0,0) 70%);
            animation: glow 2s infinite;
            z-index: -1;
            border-radius: 50%;
        }

    @keyframes glow {
        0% {
            transform: scale(0.8);
            opacity: 0.6;
        }

        50% {
            transform: scale(1.2);
            opacity: 1;
        }

        100% {
            transform: scale(0.8);
            opacity: 0.6;
        }
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 5px #ff3d00, 0 0 10px #ff9100;
        }

        50% {
            box-shadow: 0 0 20px #ff3d00, 0 0 30px #ff9100;
        }

        100% {
            box-shadow: 0 0 5px #ff3d00, 0 0 10px #ff9100;
        }
    }

    .hero-ad {
        position: absolute;
        top: 40%;
        right: 25vw;
        background: rgba(15, 23, 42, 0.85);
        padding: 20px;
        border-radius: 999px;
        color: #fff;
        width: 15vw;
        text-align: left;
        box-shadow: 0 6px 12px rgba(0,0,0,0.4);
        z-index: 2;
    }

        .hero-ad h4 {
            font-size: 1.2rem;
            margin: 10px 0;
        }

        .hero-ad p {
            font-size: 0.9rem;
            color: #ffcc80;
            margin-bottom: 10px;
        }

        .hero-ad .btn {
            background: linear-gradient(90deg, #ff6f00, #ff9100);
            font-size: 0.9rem;
            padding: 6px 12px;
            border-radius: 999px;
        }

    /* MAIN CONTENT */
    .main-content {
        max-width: 1200px;
        margin: auto;
        padding: 60px 20px;
    }

        .main-content h2 {
            font-size: 2.3rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
            color: white;
            font-family: 'poppins';
        }

    .senaste {
        font-size: 1rem;
        font-weight: 400;
        text-align: center;
        margin-bottom: 40px;
        color: #cccccc;
        font-family: 'poppins';
    }



    /*söka efter stad*/



    .city-form {
        margin: 20px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'poppins';
    }

        .city-form label {
            font-size: 1rem;
            color: #ccc;
        }

        .city-form select {
            padding: 8px 12px;
            border-radius: 6px;
            border: 1px solid #444;
            background: #1a1a1a;
            color: #fff;
            font-family: 'Poppins', sans-serif;
        }

        .city-form button {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            background: linear-gradient(90deg, #ff5722, #ff9800);
            color: #fff;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s ease;
        }

            .city-form button:hover {
                opacity: 0.9;
            }







    /* CARDS */
    .cards .card {
        transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease, padding 0.5s ease;
        max-height: 1000px;
        opacity: 1;
        overflow: hidden;
    }

        .cards .card.hide {
            max-height: 0;
            opacity: 0;
            margin: 0;
            padding: 0;
        }


    .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        border: 1px solid rgba(255, 145, 0, 0.3); /* orange kant */
        box-shadow: 0 6px 12px rgba(0,0,0,0.25);
        transition: all 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* trycker ner footer */
    }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
            background: rgba(255, 111, 0, 0.1); /* orange highlight */
        }

    .card-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .alert-badge {
        background: #ff3d00; /* stark röd badge */
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 12px;
        color: #fff;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .date {
        font-size: 12px;
        color: #ffcc80;
    }

    .card h3 {
        font-size: 20px;
        font-weight: 500;
        margin: 10px 0;
        color: #ffffff;
    }

    .title {
        font-weight: 700 !important;
    }

    .desc {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.8s ease, opacity 0.8s ease;
    }

        .desc.show {
            max-height: 500px; /* välj ett värde större än din längsta text */
            opacity: 1;
        }

    .sender {
        font-size: 14px;
        color: #ffb74d;
    }

    .card-footer {
        margin-top: auto;
    }

    .city-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: #ff3d00; /* samma färg som alert-badge */
        color: white;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn {
        background: linear-gradient(90deg, #ff6f00, #ff9100);
        color: white;
        padding: 10px 20px;
        border-radius: 999px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: inline-block;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
        box-shadow: 0 0 5px rgba(255, 111, 0, 0.6), 0 0 10px rgba(255, 111, 0, 0.5), 0 0 20px rgba(255, 145, 0, 0.4);
    }

        .btn:hover {
            background: linear-gradient(90deg, #ff3d00, #f44336); /* rödare vid hover */
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 0 12px rgba(255, 61, 0, 0.8), 0 0 24px rgba(244, 67, 54, 0.6), 0 0 48px rgba(244, 67, 54, 0.5);
        }

    .toggle-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 1.5vh;
    }

    #showMoreBtn, #showLessBtn {
        margin-top: 1.5vh;
        display: inline-block;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        color: white;
        background: linear-gradient(90deg, #ff512f, #dd2476);
        box-shadow: 0 4px 20px rgba(221, 36, 118, 0.8);
        transition: transform 0.2s, box-shadow 0.2s;
    }

        #showMoreBtn:hover, #showLessBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 40px rgba(221, 36, 118, 0.8);
        }

    .card-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
        margin-bottom: 10px;
    }



    /* About Us Sektion */
    .about-section {
        padding: 80px 20px;
        color: #fff;
        font-family: 'poppins';
    }

    .about-container {
        display: flex;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
        gap: 40px;
        align-items: center;
    }

    .about-text {
        flex: 1 1 500px;
    }

    .about-badge {
        display: inline-block;
        padding: 5px 15px;
        background-color: rgba(255, 111, 0, 0.5);
        color: #ffcc80;
        font-size: 14px;
        font-weight: 600;
        border-radius: 20px;
        margin-bottom: 15px;
    }

    .about-text h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: #fff;
    }

    .about-text p {
        font-size: 1.1rem;
        margin-bottom: 15px;
        line-height: 1.5;
        color: #ccc;
    }

    .about-features {
        display: flex;
        gap: 30px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .feature {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        background-color: rgba(255, 111, 0, 0.1);
        color: #ff9100;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .feature h4 {
        margin: 0;
        font-size: 1.1rem;
        color: #fff;
    }

    .feature p {
        margin: 0;
        font-size: 0.9rem;
        color: #ccc;
    }

    /* Bild */
    .about-image {
        flex: 1 1 500px;
    }

        .about-image img {
            width: 100%;
            border-radius: 12px;
            display: block;
        }






    /* Contact Sektion */
    /* Contact Sektion */
    .contact-section {
        padding: 80px 20px;
        color: #fff;
        font-family: 'Poppins', sans-serif;
    }

    .contact-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .contact-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .low-logo {
        height: 10vh;
        display: flex;
        justify-self: center;
        margin-bottom: -3vh;
    }

    .contact-badge {
        display: inline-block;
        padding: 5px 15px;
        background-color: rgba(255, 102, 0, 0.15); /* orange badge */
        color: #ff6600;
        font-size: 14px;
        font-weight: 600;
        border-radius: 20px;
        margin-bottom: 15px;
    }

    .contact-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .contact-header p {
        font-size: 1rem;
        color: #cccccc; /* ljusgrå text */
    }

    /* Formulär */
    .contact-form-wrapper {
        background-color: rgba(15, 23, 42, 0.85);
        padding: 40px;
        border-radius: 12px;
        border: 1px solid rgba(0, 123, 255, 0.4); /* blå kant */
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.15); /* blå glow */
    }

    .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
    }


        .form-group label {
            margin-bottom: 8px;
            font-weight: 500;
            color: #fff; /* orange labels */
        }

        .form-group input,
        .form-group textarea {
            padding: 12px 15px;
            background-color: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 102, 0, 0.25);
            border-radius: 8px;
            color: #fff;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s;
        }

            .form-group input:focus,
            .form-group textarea:focus {
                border-color: #ff6600;
                box-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
            }

    .btn-submit {
        width: 100%;
        padding: 12px;
        background: linear-gradient(90deg, #ff6600, #ff8533);
        color: white;
        font-weight: 600;
        font-size: 1rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        margin-top: 2vh;
    }

        .btn-submit:hover {
            background: linear-gradient(90deg, #e65c00, #ff751a);
            box-shadow: 0 6px 12px rgba(255, 102, 0, 0.5);
        }

    /* FOOTER */
    .footer {
        text-align: center;
        padding: 30px 20px;
        blur color: white;
        font-size: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }



    /*animations*/

    /* Scroll reveal base */
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.8s ease;
    }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

    /* Hero text fade from left */


    /* Cards pop animation */
    .card {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
        transition: all 0.7s ease;
    }

        .card.active {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

    /* Nav hover underline */
    .nav-links a {
        position: relative;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 0;
            background-color: #ff3d00;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }


    .hero-text, .hero-ad, .hero-counter {
        opacity: 1; /* OBS: vi sätter opacity via JS initialt */
        transform: translateY(0);
        transition: all 1s ease-out;
    }



/* ========================= */
/* MOBILANPASSNING HERO      */
/* ========================= */

@media (min-width: 600px) {
    .form-group {
        flex: 1 1 48%;
    }
}
@media (max-width: 470px) {
    .hero {
        height: 100vh;
    }

    body{
        overflow-x: hidden;
    }

    .video {
        bottom: 95vh; /* 🔥 Dra upp videon så den fyller mer */
        height: 100%;
        object-fit: cover;
        border-radius: 0;
       
       
    }

    .hero-text {
        bottom: 20%; /* 🔥 Flytta upp texten */
        left: 5vw;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2rem; /* Mindre text på mobil */
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-ad {
        position: static; /* 🔥 Gör den under texten istället för till höger */
        width: 80vw;
        margin: 20px auto;
        text-align: center;
        z-index:2;
    }

    .hero-counter {
        position: static; /* 🔥 Samma här – flytta under */
        margin: 20px auto;
        width: fit-content;
        display:none;
        

    }


    .alert-badge{
        border-radius:999px;
    }


    #logo-text {
        display: none;
    }


    .logo{
        display:block
    }

   


    .scroll-down {
        display: none; /* gömd på desktop */
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2rem;
        color: white;
        text-decoration: none;
        animation: bounce 1.5s infinite;
        cursor: pointer;
    }

    /* Animation så pilen pulserar/bouncar */
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }

        40% {
            transform: translateX(-50%) translateY(-10px);
        }

        60% {
            transform: translateX(-50%) translateY(-5px);
        }
    }

    /* Visa bara på mobil */
    @media (max-width: 768px) {
        .scroll-down {
            display: block;
        }
    }
}