/* General Styles */
:root {
  --light-blue: #635cbd;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6;
}

.header img {
  width: 45px;
  height: 35px;
  border-radius: 100%;
  background-color: var(--light-blue);
}
.home h3 {
  padding: 0;
  font-size: 2.5em;
}

.nav-side-panel {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background-color: var(--light-blue);
  cursor: pointer;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 100%;
}

.home-content h1,
h3 {
  color: white;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

/* Header */
.header {
  background: linear-gradient(90deg, #4caf50, #81c784);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #ffeb3b;
}

/* Home Section */
.home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 2rem;
  background: var(--light-blue);
}

.home-content {
  flex: 1;
  padding-right: 2rem;
}

.home-content h1 {
  font-size: 2.5rem;
  color: #333;
}

.home-content span {
  color: #4caf50;
}

.img-box {
  width: 45%;
  height: 500px;
  position: sticky;
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid black;
}

.img-box img {
  width: 100%;
  object-fit: cover;
}

.buttons {
  display: flex;
  gap: 24px;
  align-items: center;
}
.hire-me {
  background-color: white;
  color: black;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 18px;
}
.hire-me:hover {
  background-color: #caca;
}
.davis {
  background-color: white;
  color: black;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 18px;
}
.davis:hover {
  background-color: gray;
}

.photo-container {
  max-width: 600px;
  margin: auto;
}

#photo {
  cursor: pointer;
  transition: transform 0.3s ease;
}

#photo:hover {
  transform: scale(1.1);
}

/* Modal */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 900;
  backdrop-filter: blur(5px);
  animation: fadeIn ease 0.3s;
  display: flex; /* Centering using Flexbox */
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Profile Area */

.profile-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.profile-table th {
  width: 40%;
  color: #555;
}

.close-button:hover {
  background-color: #005f99;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: left;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-button {
  background: #e53935;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  align-self: baseline;
}
.skills {
  padding: 50px 0;
  background-color: #f9f9f9;
  text-align: center;
  align-self: flex-start;
  gap: 10px;
  width: 100%;
}

.skills h2 {
  font-size: 35px;
  margin-bottom: 25px;
  color: white;
  font-weight: bold;
  background-color: var(--light-blue);
  margin-top: 25px;
}

.skill-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* allows responsiveness on small screens */
  max-width: 1200px;
  margin: 0 auto;
  height: 0 auto;
}

.skill-block {
  flex: 1 1 220px; /* allows 4 to fit horizontally on larger screens */
  max-width: 350px;
  max-height: 350px;
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.skills p {
  color: black;
  background-color: goldenrod;
  font-weight: bold;
}

.skill-block:hover {
  transform: translateY(-5px);
}

.skill-block img {
  width: 100%;
  border-radius: 10;
}
#profile {
  font-size: 20px;
}
/* Contact Section */
.contact {
  display: flex;
  align-items: center;
  flex-direction: column;
  align-self: center;
  background-color: var(--light-blue);
  padding: 40px;
}

#contact-form {
  width: 500px;
  padding: 20px;
  background-color: white;
  border-radius: 20px;
}
.contact h2 {
  background-color: #fff;
  font-size: 30px;
  gap: 10px;
  margin-bottom: 20px;
  border: 10px solid black;
}

.form-control {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-control input,
textarea {
  height: 40px;
  border-radius: 10px;
  padding: 0 10px;
}
#submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--light-blue);
  border: none;
  color: white;
  border-radius: 15px;
  font-size: 18px;
}

/* Footer */
footer {
  background: #333;
  color: var(--light-blue);
  text-align: center;
  padding: 1px;
  top: auto;
}
.footer-daniel {
  padding: 0;
  margin-bottom: 0;
  position: sticky;
}

/* responsive design */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .nav-side-panel {
    flex-direction: column;
    gap: 10px;
  }

  .home-content {
    width: 100%;
    padding-right: 0;
  }

  .img-box {
    width: 100%;
    height: auto;
    margin-top: 10px;
  }

  #contact-form {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    gap: 16px;
  }

  .hire-me,
  .davis {
    width: 100%;
    text-align: center;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 16px;
  }

  .home-content h1 {
    font-size: 24px;
  }

  .hire-me,
  .davis,
  .view-button,
  #submit-button {
    font-size: 16px;
    padding: 10px 14px;
  }
}
