/* styles.css */

/* General Styles */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f5f3f0;
  color: #333;
}

.site-header {
  background-color: #f5f3f0;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.75rem;
  padding-top: 80px;
  padding-bottom: 25px;
  margin: 0;
  color: #111;
}

.navbar ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin: 0 0 40px 0;
  padding: 0;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.navbar li {
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: #888;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.navbar .active a,
.navbar a:hover {
  color: #000;
}

/* Homepage Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 4rem 5rem;
  max-width: 1400px;
  margin: auto;
}

.project-item {
  background-color: #f5f3f0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  position: relative;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.project-item a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.project-item a:hover::before {
  background-color: rgba(255, 255, 255, 0.2);
}

.project-thumb {
  display: block;
}

.project-thumb img {
  width: 376px;
  height: 376px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.project-item p {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
  color: #222;
  position: relative;
  z-index: 2;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* Individual Project Page Styles */
.project-detail {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.project-header h2,
.project-content h2,
.project-content h3,
.project-content p {
  text-align: center;
}

.project-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #111;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-content p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.project-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

/* Main single project image */
.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Gallery images */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.back-link a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

.back-link a:hover {
  color: #000;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 4rem 2rem;
  }
}

@media (max-width: 600px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .navbar li {
    margin: 0.5rem 0;
  }

  .site-header {
    padding: 0 1rem;
  }

  .site-title {
    font-size: 2.5rem;
    padding-top: 80px;
    padding-bottom: 25px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
  }

  .project-item p {
    font-size: 0.95rem;
  }
}

.two-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.two-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 50%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media (max-width: 700px) {
  .carousel-slide {
    min-width: 100%;
    height: 400px;
  }
}

/* Video container */
.video-container {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.video-container video {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  border-radius: 8px;
}

/* Resume Page */
.resume-page {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resume-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.resume-intro-text {
  text-align: center;
  margin-bottom: 2rem;
}

.resume-intro-text h2 {
  font-weight: 400;
  font-size: 1.25rem;
  color: #333;
  line-height: 1.4;
}

.resume-card-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: #f9f9f9;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 1200px;
  margin-bottom: 3rem;
}

.resume-column h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.resume-column p {
  line-height: 1.6;
  color: #555;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .resume-card-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .resume-card-columns {
    grid-template-columns: 1fr;
  }
}

.custom-project8-img {
  object-fit: contain;
  object-position: top;
}