/* =======================
   IMPORTS
======================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* =======================
   RESET
======================= */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#081424;
    color:#ffffff;
    overflow-x:hidden;
}

/* =======================
   SCROLLBAR
======================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#081424;
}

::-webkit-scrollbar-thumb{
    background:#fecc00;
    border-radius:10px;
}

/* =======================
   NAVIGATION
======================= */

nav{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 50px;

    background:rgba(0,0,0,.4);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.1);
}

.logo{
    font-family:'Cinzel',serif;
    font-size:1.6rem;
    font-weight:700;
    color:#fecc00;
}

nav ul{
    display:flex;
    align-items:center;
    gap:25px;
    list-style:none;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#fecc00;
}

/* =======================
   HERO
======================= */

.hero{
    min-height:70vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    padding:50px;
}

.hero-content{
    max-width:900px;
}

.hero h1{
    font-family:'Cinzel',serif;
    font-size:5rem;
    margin-bottom:20px;
    text-shadow:0 4px 15px rgba(0,0,0,.5);
}

.hero p{
    font-size:1.4rem;
    color:#f0f0f0;
}

/* =======================
   HERO BACKGROUNDS
======================= */

.hero-viking{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/vikings.jpg");
    background-size:cover;
    background-position:center;
}

.hero-1500{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/gustav-vasa.jpg");
    background-size:cover;
    background-position:center;
}

.hero-stormakt{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/stormakt.jpg");
    background-size:cover;
    background-position:center;
}

.hero-industri{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/industry.jpg");
    background-size:cover;
    background-position:center;
}

.hero-modern{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/stockholm.jpg");
    background-size:cover;
    background-position:center;
}

.hero-kungar{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/kungar.jpg");
    background-size:cover;
    background-position:center;
}

.hero-kultur{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/midsommar.jpg");
    background-size:cover;
    background-position:center;
}

.hero-geografi{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url("assets/images/sweden-nature.jpg");
    background-size:cover;
    background-position:center;
}

/* =======================
   SECTIONS
======================= */

section{
    padding:80px 20px;
}

.history-section{
    max-width:1300px;
    margin:auto;
}

.section-title{
    text-align:center;
    font-family:'Cinzel',serif;
    font-size:3rem;
    color:#fecc00;
    margin-bottom:50px;
}

/* =======================
   CONTENT GRID
======================= */

.content{
    max-width:1300px;
    margin:auto;

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:25px;
}

/* =======================
   CARDS
======================= */

.card{
    background:rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:20px;

    padding:30px;

    transition:.35s;
}

.card:hover{
    transform:translateY(-10px);

    box-shadow:
    0 20px 40px rgba(0,0,0,.35);
}

.card h2{
    color:#fecc00;
    margin-bottom:15px;
    font-size:1.5rem;
}

.card p{
    line-height:1.8;
    color:#e0e0e0;
}

/* =======================
   FACT CARDS
======================= */

.facts-grid{
    max-width:1300px;

    margin:auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.fact-card{
    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.1);

    backdrop-filter:blur(15px);

    border-radius:20px;

    padding:25px;

    transition:.3s;
}

.fact-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.fact-card h3{
    color:#fecc00;
    margin-bottom:12px;
}

.fact-card p{
    line-height:1.7;
}

/* =======================
   TIMELINE
======================= */

.timeline{
    max-width:900px;
    margin:auto;
    position:relative;
}

.timeline::before{
    content:"";

    position:absolute;

    left:40px;
    top:0;
    bottom:0;

    width:4px;

    background:#fecc00;
}

.timeline-item{
    position:relative;
    padding-left:90px;
    margin-bottom:45px;
}

.timeline-item::before{
    content:"";

    position:absolute;

    left:28px;
    top:5px;

    width:24px;
    height:24px;

    border-radius:50%;

    background:#fecc00;
}

.timeline-item h3{
    margin-bottom:10px;
}

.timeline-item p{
    color:#e0e0e0;
}

.year{
    display:inline-block;

    background:#fecc00;
    color:black;

    font-weight:bold;
    padding:8px 15px;

    border-radius:40px;

    margin-bottom:10px;
}

/* =======================
   BUTTONS
======================= */

.btn{
    display:inline-block;

    padding:14px 30px;

    background:#fecc00;
    color:black;

    text-decoration:none;

    border-radius:30px;

    font-weight:600;

    transition:.3s;
}

.btn:hover{
    transform:translateY(-3px);
    background:white;
}

/* =======================
   TABLE
======================= */

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#fecc00;
    color:black;
}

table th,
table td{
    padding:15px;
    border:1px solid rgba(255,255,255,.1);
}

/* =======================
   FOOTER
======================= */

footer{
    margin-top:60px;

    text-align:center;

    padding:40px;

    background:#050d18;

    border-top:1px solid rgba(255,255,255,.1);
}

footer p{
    color:#cccccc;
}

/* =======================
   ANIMATIONS
======================= */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.card,
.fact-card,
.timeline-item{
    animation:fadeUp .8s ease;
}

/* =======================
   RESPONSIVE
======================= */

@media(max-width:1000px){

    .hero h1{
        font-size:4rem;
    }

}

@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:20px;
        padding:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        min-height:60vh;
    }

    .hero h1{
        font-size:3rem;
    }

    .hero p{
        font-size:1.1rem;
    }

    .section-title{
        font-size:2.2rem;
    }

    .timeline-item{
        padding-left:70px;
    }

    .timeline::before{
        left:25px;
    }

    .timeline-item::before{
        left:13px;
    }

}

@media(max-width:500px){

    .hero h1{
        font-size:2.3rem;
    }

    nav ul{
        gap:12px;
    }

    .logo{
        font-size:1.2rem;
    }

}