/* ====== Grundinställningar ====== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter', sans-serif;
    background:#f5f7fa;
    color:#333;
    line-height:1.7;
}

/* ====== Container ====== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ====== Header ====== */

header{
    background:#0f172a;
    color:#fff;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

header h1{
    font-size:1.6rem;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#60a5fa;
}

/* ====== Sektioner ====== */

.section{
    padding:80px 0;
}

.light{
    background:white;
}

.section h2{
    text-align:center;
    font-size:2rem;
    margin-bottom:40px;
    color:#0f172a;
}

.section p{
    max-width:850px;
    margin:auto;
    text-align:center;
}

/* ====== Cards ====== */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:40px;
}

.card{
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
}

.card h3{
    color:#0f172a;
    margin-bottom:15px;
}

/* ====== Kompetenser ====== */

.skills{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.skill{
    background:#2563eb;
    color:white;
    padding:12px 20px;
    border-radius:30px;
    font-weight:500;
}

/* ====== Timeline ====== */

.timeline{
    max-width:850px;
    margin:auto;
}

.timeline-item{
    background:white;
    margin-bottom:25px;
    padding:25px;
    border-left:6px solid #2563eb;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.timeline-item h3{
    color:#2563eb;
    margin-bottom:8px;
}

.timeline-item h4{
    margin-bottom:10px;
    color:#0f172a;
}

/* ====== Uppdrag ====== */

.projects{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:15px;
    list-style:none;
    margin-top:30px;
}

.projects li{
    background:white;
    padding:18px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.projects li:hover{
    background:#2563eb;
    color:white;
}

/* ====== Knapp ====== */

.button{
    display:inline-block;
    margin-top:35px;
    background:#2563eb;
    color:white;
    padding:15px 30px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.button:hover{
    background:#1d4ed8;
}

/* ====== Kontakt ====== */

#kontakt{
    text-align:center;
}

/* ====== Footer ====== */

footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:25px 0;
}

/* ====== Responsiv ====== */

@media(max-width:768px){

    header .container{
        flex-direction:column;
        gap:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .section{
        padding:60px 0;
    }

    .section h2{
        font-size:1.8rem;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .projects{
        grid-template-columns:1fr;
    }
}