/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: #2563eb;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

/* Uppdatera din intro-text klass med dessa rader */
.hero p, .intro-text {
    max-width: 700px;        /* Hindrar texten från att sträcka ut sig för brett */
    margin-left: auto;       /* Centrerar textboxen horisontellt */
    margin-right: auto;      /* Centrerar textboxen horisontellt */
    font-size: 1.1rem;       /* Ökar textstorleken en aning så den blir lättläst och tydlig */
    line-height: 1.6;        /* Ger raderna ett luftigt och skönt avstånd */
    /* Lägg till denna rad för att trycka ner knapparna en aning och skapa perfekt andrum! */
    margin-bottom: 2.5rem;   /* Ger ett snyggt och luftigt avstånd till knapparna under */
}
Använd koden med försiktighet.Vad ändras?När du sparar din CSS-fil och uppdaterar webbläsaren kommer de två knapparna (Get In Touch och View My Work) att flyttas ner en liten bit. Det skapar en perfekt visuell balans i din Hero-sektion och gör att hela din landningssida ser ut som en modern premiumsajt!Gör den sista lilla justeringen i din text och din CSS – nu är sidan 100 % fläckfri!Spara och ladda om sidan i webbläsaren:Kändes det som att det nya avståndet gav sidan det rätta, luftiga andrummet? 🚀AI-svar kan innehålla fel. Läs mer

}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background-color: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* About Section */
.about {
    background-color: #f9fafb;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #6b7280;
    text-align: center;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #1f2937;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Styling för alla kompetenstaggar */
.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Dina nya AWS/DevOps-taggar får din snygga, klara blåa färg */
.skill-tag.cloud {
    background-color: #2563eb; /* Klarblå */
    color: #ffffff;
}

/* Dina historiska On-Prem-taggar får en mer diskret, professionell grå färg */
.skill-tag.legacy {
    background-color: #e5e7eb; /* Ljusgrå */
    color: #4b5563;            /* Mörkgrå text */
}


/* Container som håller korten på en snygg rad */
.certifications-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem auto 1rem auto;
    max-width: 1200px;
    padding: 0 20px;
    flex-wrap: wrap; /* Mobilvänlig */
}

/* Själva kortet - Ger texten andrum och centrerar elementen */
.cert-badge {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex !important;      
    flex-direction: row !important; 
    align-items: center !important; 
    gap: 1rem;
    width: 340px;                   /* Ger tillräckligt med bredd för texten */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    height: auto !important;         /* Tvingar kortet att anpassa sig efter texten så inget klipper */
}

/* Svävande effekt */
.cert-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Bilden */
.cert-badge img {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0;
}

/* Text-containern */
.cert-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cert-level {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 700;
}

/* Garanterar att hela titeln får plats utan att underkanten kapas */
.cert-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4 !important;    /* Ger textraden ett naturligt och luftigt utrymme */
    margin: 0;
    padding-bottom: 2px;
}



/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 150px;
    text-align: center;
    font-weight: 600;
    color: #2563eb;
    padding: 10px;
}

.timeline-content {
    flex: 1;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 30px;
    position: relative;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background-color: #f9fafb;
    width: 100%;
}

/* 1. Här tvingar vi fram 3 kolumner på datorskärmar */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tvingar exakt 3 kort i bredd */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.project-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* 2. Sätt en gemensam, fast och lägre höjd för ALLA bildbehållare */
.project-image, 
.placeholder-image {
    height: 160px;          
    width: 100%;
    overflow: hidden;       
    position: relative;
    display: flex;          
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4; 
}

/* 3. Rensat upp den trasiga kommentaren här */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Visar hela din diagrambild utan att klippa kanterna */
    display: block;
}

.placeholder-image {
    color: #9ca3af;
    font-weight: 500;
}

/* 4. Sammanslagen och städad padding för textinnehållet */
.project-content {
    padding: 25px;
    background: #ffffff;
    flex-grow: 1; /* Gör att korten blir lika höga även om textmängden varierar */
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Detta är det enda blocket du behöver för din projekt-brödtext: */
.project-content p, .project-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    
    /* Multiline Ellipsis - Klipp stabilt efter 3 rader */
    display: -webkit-box;
    -webkit-line-clamp: 3;           
    -webkit-box-orient: vertical;  
    overflow: hidden;                /* Döljer allt under rad 3 */
    text-overflow: ellipsis;         /* Garanterar att de tre prickarna ... ritas ut! */
    
    /* Ta bort den gamla height: 120px och använd denna dynamiska maxhöjd istället: */
    max-height: 4.8em;               /* 3 rader x 1.6 radavstånd = 4.8em */
}



.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Trycker ner teknologitaggarna till botten av kortet */
}

.project-tech span {
    background-color: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card-link {
    text-decoration: none; /* Tar bort understrykning på texten */
    color: inherit;        /* Gör att texten behåller sina ursprungliga färger */
    display: block;        /* Säkerställer att hela ytan blir klickbar */
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #374151;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #2563eb;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #2563eb;
    color: white;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        margin-left: 40px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content,
.project-card {
    animation: fadeInUp 0.6s ease-out;
}
