html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-image: linear-gradient(to bottom right, grey, white);
}

img {
    border-radius: 50%;
}

.button {
  display: inline-block;
  border-radius: 4px;
  background-color: dodgerblue;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 15px;
  padding: 20px;
  width: 120px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: dodgerblue;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: darkslateblue;
}

    .socials-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 50px;
        min-height: 400px; /* Ensures the container takes up more vertical space */
    }

    .socials-header {
        text-align: center;
        font-size: 2.5em; /* Increase header font size */
        margin-bottom: 20px;
    }

    .socials-list {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 40px; /* Increase spacing between items */
        margin-top: 30px;
    }

    .socials-list li {
        display: flex;
        align-items: center;
    }

    .socials-list a {
        text-decoration: none;
        color: #333;
        font-size: 1.5em; /* Increase link font size */
        display: flex;
        align-items: center;
        transition: color 0.3s, transform 0.3s;
    }

    .socials-list a:hover {
        color: #007bff;
        transform: scale(1.2); /* Slightly increase hover scale */
    }

    .social-icon {
        width: 50px; /* Increase icon size */
        height: 50px;
        display: inline-block;
        background-size: cover;
        background-position: center;
        margin-right: 15px; /* Increase margin between icon and text */
    }

.social-icon.github {
    background-image: url('../images/github-icon.png');
}

.social-icon.linkedin {
    background-image: url('../images/linkedin-icon.png');
}

.social-icon.twitter {
    background-image: url('../images/twitter-icon.png');
}

@media (max-width: 768px) {
    .socials-list {
        flex-direction: column;
        gap: 20px;
    }
}

.socials-list li {
    text-align: center;
}

.skills-container {
        margin: 50px auto;
        max-width: 1200px;
        padding: 20px;
        text-align: center;
    }

    .skills-header {
        font-size: 2.5em;
        margin-bottom: 30px;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .skill-item {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .skill-item h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

.skill-item p {
    font-size: 1.2em;
    color: #555;
}

.skill-bar {
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    height: 25px;
    margin-top: 10px;
    position: relative;
}

.skill-bar span {
    display: block;
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 1s ease-in-out;
}

.skill-bar[data-skill="HTML"] span { width: 90%; }
.skill-bar[data-skill="CSS"] span { width: 75%; }
.skill-bar[data-skill="JavaScript"] span { width: 20%; }
.skill-bar[data-skill="C#"] span { width: 90%; }
.skill-bar[data-skill=".NET"] span { width: 85%; }
.skill-bar[data-skill="CI/CD"] span { width: 70%; }

.projects-container {
    margin: 50px auto;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
}

.projects-header {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    display: flex;
    flex-direction: column; /* Ensures the image and description stack vertically */
    margin-bottom: 30px; /* Adds space between each project */
}

.project-preview img {
    width: 100%; /* Ensure the image takes up the full width of its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Crop the image to fit the container */
    aspect-ratio: 1 / 1; /* Force the image to be a square */
    border-radius: 10px; /* Optional: Keeps the square shape but rounds the corners */
    margin-bottom: 10px; /* Adds space between image and description */
}

/*
    .project-preview:hover img {
    transform: scale(1.05);
}
*/

.project-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 20px; /* Space between description and next project */
}

.project-item.expanded .project-details {
    display: block; /* Show details when expanded */
}

.project-details h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.project-details p {
    font-size: 1.2em;
    color: #555;
}
