* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #ffffff;

}
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0);
  ; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}
.navbar {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, #667eea 0%, #6E62C3 100%);

    backdrop-filter: blur(60px);
}
.nav-item .nav-link{
    color: white;
}
.nav-item .nav-link:hover{
    color: rgb(233, 188, 247);
}
.hero-section {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.content-section {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 1rem;
}

.content-section h2 {
    color: #fff;
}

.content-section ul {
    list-style-type: none;
    padding-left: 0;
}

.content-section ul li {
    color: #f8f9fa;
    margin-bottom: 0.5rem;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background-color: #ffffff3a;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
}
.content-section {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Större bilder på projektsidan */
.project .project-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.tech-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}


.card-link {
    text-decoration: none;
}
.badge{
    font-size:medium;
}
/* Stil för formuläret */
#edit-form-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000; /* Ligger ovanpå overlay */
}



#edit-form-container h2 {
    text-align: center;
    margin-bottom: 15px;
}

#edit-form {
    display: flex;
    flex-direction: column;
}

#edit-form label {
    font-weight: bold;
    margin: 5px 0;
}

#edit-form input, 
#edit-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#edit-form textarea {
    height: 80px;
    resize: vertical;
}

#edit-form button {
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#edit-form button[type="submit"] {
    background-color: #007bff;
    color: white;
}

#edit-form button[type="submit"]:hover {
    background-color: #0056b3;
}

#edit-form button[type="button"] {
    background-color: #f44336;
    color: white;
}

#edit-form button[type="button"]:hover {
    background-color: #c62828;
}
/* Mörk overlay bakom formuläret */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Mörk halvtransparent bakgrund */
    z-index: 999; /* Lägre än formuläret men högre än resten av sidan */
}