:root {
    --background-color: #f0f7fc;
    --primary: #2B1873;
    --secondary: #cad9f8;
    --text-main: #334155;
    --highlight: #ff9f43;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0rem 1rem;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 3rem;
    box-shadow: 0 8px 24px #dfdede;
    background-color: #ffffff;
}

header {
    background-color: #23446d;
    border-radius: 0.8rem;
    margin: 0 0 1.5rem 0;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 8px 24px #dfdede;
}

header h1 {
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
}

section:not(.info-grid):not(.avslut) {
    margin-top: 2rem;
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 2rem;
}

h1 {
    color: #edf3fd;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.teknisk-profil li {

}

.avslut {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: 3rem;
    border-bottom: none;
        padding-bottom: 2rem;
        margin-top: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.info {
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    box-shadow: 0 8px 24px #dfdede;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 10px #cccbcb;
}

.info h3 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.info p {
    margin-top: 0;
}

.om-mig {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.kontakt-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: #ffffff;
}

.kontakt-list a {
    color: var(--highlight);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kontakt-list a:hover {
    color: #ffb86c; 
    text-decoration: underline;
}

.kontakt-list li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.kontakt-list strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

#me-image {
    max-width: 15rem;
    border-radius: 12px;
    box-shadow: 0 8px 15px #0e0d0d;
    border-style: solid;
    border-bottom: 2px solid var(--highlight);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#me-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 10px #222222;
}

#underrubrik {
    color: #ffffff;
}

#site-note {
    background-color: rgba(0, 0, 0, 0.25);
    color: var(--highlight);
    border-radius: 0.8rem;
    padding: 0.5rem 0.5rem;
    font-weight: 350;
}

#github {
    background-color: var(--primary); 
    color: white;
    font-size: large;
    font-weight: bold;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 3px 5px -1px #989999;
    margin: 0.5rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

#github:hover {
    filter: brightness(1.25);
    box-shadow: 0 5px 10px -1px #292929;
}

#github:active {
    transform: translateY(0); 
    box-shadow: 0 2px 4px -1px #292929;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 2rem;
}

/* Mobilanpassning */
@media (max-width: 500px) {
    main {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }

    .info-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .info {
        
    }
}