/* styles.css */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 2em;
}

.portfolio-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-item-description {
  padding: 1em;
  text-align: center;
  font-size: 1em;
}

/* === Styles from index.html === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    padding: 1rem;
    max-width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
}

#logo {
    width: 150px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #888;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h2 {
    margin-top: 4rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

#work {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 2rem;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    padding-bottom: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-content {
    opacity: 1;
}

.card:hover img {
    opacity: 0.3;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    #logo {
        width: 120px;
        margin-bottom: 0.5rem;
    }
    h2 {
        font-size: 1rem;
    }
    body {
        padding: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: 0;
    display: block;
    max-height: 90vh;
    max-width: 90vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* === Styles from about.html === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    padding: 2rem;
    margin: 0;
}

main {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

#home-icon {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
}

#home-icon img {
    width: 32px;
    height: auto;
}

.about-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.about-text {
    margin-bottom: 2rem;
    font-size: .9rem;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.skills-list li {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #666;
}

.about-flex {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.about-image-card {
    flex: 0 0 180px;
    max-width: 180px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-image-ratio {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    display: block;
}
.about-image-ratio::before {
    content: "";
    display: block;
    padding-top: 100%;
}
.about-image-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-flex .about-text {
    flex: 1;
}
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .about-content {
        padding: 1.5rem;
    }
    .skills-list {
        grid-template-columns: 1fr;
    }
    .about-flex {
        flex-direction: column;
        align-items: center;
    }
    .about-image-card {

        width: 100%;
    }
}

body.about-page header {
    margin-bottom: 0;
}

body.about-page .about-content {
    margin-top: 4rem;
}

body.about-page h2 {
    margin-top: 0;
}

/* === Styles from project-1.html === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

h2 {
  margin-top: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  margin-left: 150px;
  margin-right: 150px;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 100;
}

#project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

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

.gallery-item:hover img {
  opacity: 0.85;
}

.gallery-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-content h3 {
  white-space: normal;
  margin: 10px auto;
  font-weight: 400;
  font-size: 0.9rem;
}

.gallery-item:hover .gallery-content {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: 0;
  display: block;
  max-height: 90vh;
  max-width: 90vw;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#home-icon {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
}

#home-icon img {
  width: 32px;
  height: auto;
}

@media (max-width: 768px) {
  header {
    margin-bottom: 3rem;
  }
  body {
    padding: 1rem;
  }
  h2 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
  }
  h3 {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.95rem;
  }
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  z-index: 1002;
  background: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
  color: #bbb;
  transform: translateY(-50%) scale(1.2);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* === Styles from project-2.html === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

h2 {
  margin-top: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  margin-left: 150px;
  margin-right: 150px;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 100;
}

#project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item.landscape {
  grid-column: 1 / -1;
  padding-bottom: 0;
  height: auto;
}

.gallery-item.landscape img {
  position: relative;
  height: auto;
}

.gallery-item.landscape .gallery-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

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

.gallery-item:hover img {
  opacity: 0.85;
}

.gallery-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-content h3 {
  white-space: normal;
  margin: 10px auto;
  font-weight: 400;
  font-size: 0.9rem;
}

.gallery-item:hover .gallery-content {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: 0;
  display: block;
  max-height: 90vh;
  max-width: 90vw;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #616161;
  font-size: 30px;
  font-weight: bold;
  z-index: 1001;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#home-icon {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
}

#home-icon img {
  width: 32px;
  height: auto;
}

@media (max-width: 768px) {
  header {
    margin-bottom: 3rem;
  }
  body {
    padding: 1rem;
  }
  h2 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
  }
  h3 {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.95rem;
  }
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  z-index: 1002;
  background: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
  color: #bbb;
  transform: translateY(-50%) scale(1.2);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* === Styles from project-3.html === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  padding: 2rem;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

h2 {
  margin-top: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  margin-left: 150px;
  margin-right: 150px;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 100;
}

#project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item.landscape {
  grid-column: 1 / -1;
  padding-bottom: 0;
  height: auto;
}

.gallery-item.landscape img {
  position: relative;
  height: auto;
}

.gallery-item.landscape .gallery-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

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

.gallery-item:hover img {
  opacity: 0.85;
}

.gallery-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-content h3 {
  white-space: normal;
  margin: 10px auto;
  font-weight: 400;
  font-size: 0.9rem;
}

.gallery-item:hover .gallery-content {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: 0;
  display: block;
  max-height: 90vh;
  max-width: 90vw;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#home-icon {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
}

#home-icon img {
  width: 32px;
  height: auto;
}

@media (max-width: 768px) {
  header {
    margin-bottom: 3rem;
  }
  body {
    padding: 1rem;
  }
  h2 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
  }
  h3 {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.95rem;
  }
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  z-index: 1002;
  background: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
  color: #bbb;
  transform: translateY(-50%) scale(1.2);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}
