/* Grundinställningar */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    letter-spacing: 1px;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: auto;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;

    background-image: url('../images/bakgrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* mörk overlay */
    z-index: -1;
}

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

.cta-button {
    border: 1px solid white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    transition: 0.3s;
}

.cta-button:hover {
    background-color: white;
    color: black;
}

/* Sektioner */
.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #111;
    padding: 1.5rem;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #111;
    color: #666;
    font-size: 0.9rem;
}

/* Mobilresponsivitet */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

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

    .cta-button {
        font-size: 0.9rem;
    }
}