/* === Base styles === */
body {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    color: #1e293b;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
    animation: bgFade 20s ease-in-out infinite alternate;
}

@keyframes bgFade {
    0% {
        background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    }
    100% {
        background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
    }
}

html, body {
    height: 100%;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu a {
    color: #334155;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

/* === Main Section === */
main.container {
    min-height: calc(100vh - 80px); /* fylder mindst hele skærmen minus navbar */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* === Profile Section === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile {
    background-color: white;
    padding: 70px 30px;
    border-radius: 20px;
    max-width: 700px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* === Profile Image === */
.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 5px solid #3b82f6;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.7);
}

/* === Headings & Text === */
h1 {
    font-size: 32px;
    margin: 10px 0;
    font-weight: 700;
    color: #1e293b;
}

.subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    padding: 0 10px;
    margin-bottom: 30px;
}

/* === Call to action === */
.cta-button {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.cta-button:hover {
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
}

/* === Footer === */
footer {
    margin-top: 60px;
    padding: 1rem;
    font-size: 14px;
    color: #64748b;
}

/* === Mobile friendly === */
@media (max-width: 768px) {
    .profile {
        margin: 20px;
        padding: 40px 20px;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .cta-button {
        width: 100%;
    }
}

/* === Logo med outline animation === */
.logo {
    position: relative;
    font-size: 1.8rem;
    font-weight: 400;
    color: #3b82f6;
    font-family: 'Inter', sans-serif;
}

.logo::after {
    content: 'Mooorten';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    overflow: hidden;
    color: transparent;
    -webkit-text-stroke: 2px #3b82f6;
    animation: outlineDrawText 2.5s ease forwards;
    white-space: nowrap;
}

@keyframes outlineDrawText {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Projekter */
.projects-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1e293b;
}

.projects-intro {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #64748b;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 340px;
    width: 100%;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-img.placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.project-img.placeholder span {
    opacity: 0.8;
}

.project-content {
    padding: 20px;
}

.project-content h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #1e293b;
}

.project-content p {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}


/* Teknologier */

.tech-title {
    font-size: 32px;
    margin-top: 30px;
}

.tech-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #64748b;
    font-size: 18px;
    text-align: center;
}

.tech-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    font-size: 16px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    text-align: center;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Farver pr. teknologi */
.java     { background: #fcd34d; }
.js       { background: #fde68a; }
.css      { background: #93c5fd; }
.html     { background: #fca5a5; }
.php      { background: #a5b4fc; }
.mysql    { background: #6ee7b7; }
.mongo    { background: #86efac; }
.agile    { background: #e0e7ff; }
.xp       { background: #f9a8d4; }

.tech-wrapper {
    padding-top: 50px;
    scroll-margin-top: 100px; /* sikrer det ser pænt ud ved navigation */
}

/* Om mig */
.about-preview {
    background-color: #ffffff;
    margin-top: 60px;
    padding: 40px 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.about-preview h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 16px;
}

.about-preview p {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 10px;
}

.about-preview a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-preview a:hover {
    color: #2563eb;
}

.description a {
    color: #3b82f6; /* Tailwind blue-500 */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.description a:hover {
    color: #2563eb; /* Tailwind blue-600 */
    text-decoration: underline;
}

/* Kontakt */
.contact-wrapper {
    padding-top: 80px;
    padding-bottom: 60px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 10px;
}

.contact-subtext {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.contact-title {
    font-size: 32px;
    margin-top: 40px; /* <- denne linje rykker den ned */
    margin-bottom: 10px;
    color: #1e293b;
}