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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #121212;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.navbar {
  background: #1e1e1e;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  background: linear-gradient(135deg, #2b2b2b, #4e54c8);
  color: #fff;
  padding: 150px 0 100px;
  text-align: center;
  margin-top: 70px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.4rem;
}

.section {
  padding: 4rem 0;
  background: #1e1e1e;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #fff;
}

.btn {
  display: inline-block;
  background: #4e54c8;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: #3a3f99;
}

.project-container {
  position: relative;
  overflow: hidden;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  color: #3c8ef9;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.scroll-button:hover {
  background: #3c8ef9;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(60, 142, 249, 0.4);
}

.scroll-button:active {
  transform: translateY(-50%) scale(0.98);
}

#scroll-left {
  left: 0.5rem;
}
#scroll-right {
  right: 0.5rem;
}

.project-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.project {
  background: #2a2a2a;
  padding: 1.5rem;
  width: 300px;
  height: 350px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.project h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.project-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.short-text {
  font-style: italic;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

.short-text strong {
  color: #3c8ef9;
  font-weight: 600;
}

.competences-section {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.competences-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.competences-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.competence-card {
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 2rem;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.competence-card h3 {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #3c8ef9;
}

.competence-card h3 i {
  margin-right: 0.5rem;
}

.competence-card ul {
  list-style: none;
  padding: 0;
}

.competence-card li {
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: #ccc;
}

.competence-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3c8ef9;
}

form {
  margin-top: 2rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #ccc;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2a2a2a;
  color: #fff;
}

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

footer {
  background: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #2a2a2a;
  color: #fff;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal.open .modal-content {
  transform: scale(1);
}

#modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.modal-content strong {
  color: #3c8ef9;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  .nav-links li {
    margin: 0.5rem 0;
  }

  .project-list {
    flex-direction: column;
  }

  .competences-container {
    flex-direction: column;
    align-items: center;
  }
  .competence-card {
    width: 100%;
    max-width: 400px;
  }
}

.section {
  padding: 4rem 0;
  margin: 2rem 0;
}

.dark-card {
  background-color: #1e1e1e;
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-family: 'Roboto', sans-serif;
  max-width: 800px;
  margin: 0 auto;
}

.soft-skills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-badge {
  background-color: #2a2a2a;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

.skill-badge:hover {
  background-color: #3a3a3a;
}

.presentation p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #ccc;
}

.presentation strong {
  color: #3c8ef9;
  font-weight: 600;
}

.presentation a {
  color: #3c8ef9;
  text-decoration: none;
}

.presentation a:hover {
  text-decoration: underline;
}

#contact a {
  color: #5ba8f5;
}

#contact a:hover {
  color: #7ec8ff;
}

.project-container {
  position: relative;
  overflow: hidden;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  color: #3c8ef9;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.scroll-button:hover {
  background: #3c8ef9;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(60, 142, 249, 0.4);
}

.scroll-button:active {
  transform: translateY(-50%) scale(0.98);
}

#scroll-left {
  left: 0.5rem;
}
#scroll-right {
  right: 0.5rem;
}

.project-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.project {
  background: #2a2a2a;
  padding: 1.5rem;
  width: 300px;
  height: 350px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.project h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.project-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.short-text {
  font-style: italic;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

.modal-content {
  background: #2a2a2a;
  color: #fff;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

