/* styles.css */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  color: black;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: black;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  margin-left: 1.5rem;
  color: white;
  text-transform: lowercase;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background-image: url('images/background-photo.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.card {
  display: flex;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 1000px;
  width: 90%;
  z-index: 1;
  position: relative;
}

.card-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 2rem;
}

.card-left img {
  width: 220px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid black;
}

.card-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-right h2 {
  margin: 0;
  font-size: 2rem;
  color: black;
}

.card-right p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: black;
}

.external-link {
  color: #3366cc;
  font-weight: bold;
  text-decoration: underline;
}

.project-card {
  display: flex;
  gap: 2rem;
  align-items: center;  
  justify-content: flex-start;
}

.project-img {
  width: 100%;     
  max-width: 140px;   
  height: auto;          
  border-radius: 10px;
  border: 2px solid #ccc;
  transition: transform 0.3s ease;
}


.project-text {
  flex: 2;
}

.project-img:hover {
  transform: scale(1.08);
}

.project-image-wrapper {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Footer */
footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

footer a {
  color: #4169e1;
}

footer a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  font-size: 1.2rem;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  background-color: #f1f1f1;
  transition: background-color 0.3s, transform 0.3s;
}

.contact-link:hover {
  background-color: #007bff;
  color: white;
  transform: translateX(5px);
}

.btn-download {
  display: inline-block;
  padding: 12px 24px;
  background-color: #4169e1;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
  background-color: #3b5ab7; 
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.btn-download:active {
  background-color: #365a8c; 
  transform: translateY(0); 
  box-shadow: none; 
}

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

  .card-left {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .card-left img {
    width: 180px;
    height: 200px;
  }

  .card-right h2 {
    font-size: 1.5rem;
  }

  .card-right p {
    font-size: 1rem;
    margin-top: 0.75rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav a {
    margin-left: 0;
    font-size: 1rem;
  }

  footer {
    font-size: 0.85rem;
    padding: 1rem;
  }
 
   .project-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-text {
    order: 1;
  }

  .project-image-wrapper {
    order: 2;
    margin-top: 1rem;
  }
}