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

body {
    background-color: #08080a; /* Dyp, mørk kosmisk bakgrunn */
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.container {
    max-width: 650px;
    width: 100%;
}

/* Logo-styling (uten glow-effekt) */
.logo {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 30px;
}

.divider {
    width: 40px;
    height: 1px;
    background-color: rgba(56, 189, 248, 0.3);
    margin: 0 auto 30px auto;
}

.tagline {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 40px;
}

/* Prosjekt-grid */
.projects {
    margin-bottom: 30px;
}

.project-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.project-card:hover {
    background-color: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-3px);
}

.project-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Tvinger bildet til å bli helt kvadratisk (1:1) */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image {
    opacity: 1;
}

.project-info {
    padding: 12px;
}

.project-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.project-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* Kontakt-knapp på forsiden */
.contact {
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    width: auto !important;
    max-width: 220px;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 12px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-btn:hover {
    background-color: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
}

/* Styling for kontaktskjema */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    margin: 30px auto 40px auto;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: left;
}

.form-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    background-color: rgba(56, 189, 248, 0.03);
}

.form-input::placeholder {
    color: #64748b;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-form .contact-btn {
    display: block;
    margin: 10px auto 0 auto;
}

.back-link {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    margin-bottom: 10px;
}

.back-link:hover {
    color: #38bdf8;
}

/* Footer / Copyright */
.footer {
    margin-top: 40px;
}

.footer p {
    font-size: 0.8rem;
    color: #475569;
    letter-spacing: 0.5px;
}

/* Responsiv tilpasning for mobil (stabler kortene under hverandre) */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}