@import url('clash-display.css');

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  font-family: "ClashDisplay-Regular", sans-serif;
  background-color: #e6820060;
}

.contact-container {
  position: absolute;
  top: 100px;
  right: 320px;
  z-index: 100;
}

.contact-button {
  background-color: white;
  border: 2px solid black;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #f0f0f0;
}

.contact-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 2px solid black;
  padding: 15px;
  margin-top: 5px;
  min-width: 200px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  width: 20px;
}

/* Animation classes */
.dropdown-active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.profile-image-circle {
  width: 300px;
  height: 300px;
  border: 2px solid black;
  border-radius: 50%;
  margin-bottom: 30px;
  margin-top: -350px;
  overflow: hidden;
  position: relative;
}

.profile-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container {
  width: 100%;
  max-width: 1440px;
  background-image: url('images/background.png');
  background-repeat: repeat-y;
  background-size: 100%;
}

.content {
  padding: 100px;
  color: black;
}

.document-header {
  margin-left: 50px;
  width: 300px;
  border: 2px solid black;
}

.header-row {
  display: flex;
  border-bottom: 2px solid black;
}

.header-row:last-child {
  border-bottom: none;
}

.black-block {
  width: 80px;
  background-color: black;
  height: 40px;
}

.text-block {
  flex-grow: 1;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.right-image {
  width: 400px;
  margin-left: 1020px;
  margin-top: -500px;
}

.right-image img {
  width: 100%;
  height: 400px;
}

.smalltext {
  text-transform: uppercase;
  font-weight: lighter;
  font-size: 20px;
  text-decoration: underline;
  margin-top: -6px;
}

.bio-text {
  margin-top: 400px;
  font-size: 30px;
  margin-left: 50px;
}

.name {
  font-size: 45px;
}

.skills-section, .languages {
  margin-left: 150px; /* Match the left margin of other sections */
  margin-top: 250px; /* Add space above the sections */
  font-size: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skills-column, .languages {
  margin-right: 100px;
  flex: 1;
  min-width: 250px;
}
.languages {
  margin-top: 30px;
}

.skills-column ul, .languages ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-column li, .languages li {
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 18px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.skills-column li:hover, .languages li:hover {
  background-color: #0056b3;
}

h3 {
  font-size: 24px;
  text-decoration: underline;
  margin-top: 20px;
  margin-bottom: 10px;
}

.projects {
  margin-top: 40px;
  padding-left: 150px;
  font-family: 'ClashDisplay-Bold';
  font-size: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-left: -20px;
}

.project-container {
  position: relative;
  width: 600px;
}

.project-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-container:hover .hover-image {
  opacity: 1;
}

.footer {
  margin-left: 60px;
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.social-link i {
  font-size: 36px;
  color: #333;
}

.social-link:hover i {
  color: #666;
}

/* Updated Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-content {
  background-color: transparent;
  margin: 2% auto;
  padding: 0;
  width: 50%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
}

.modal-image-container {
  width: 100%;
  overflow-y: auto;
  line-height: 0;  /* Removes any potential spacing */
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

.close {
  position: fixed;
  right: 26%;  /* Adjusted to match new modal width */
  top: 4%;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  color: #ddd;
}

.modal-open {
  overflow: hidden;
}
