/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Montserrat, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header & Nav */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  text-decoration: none;
  font-family: Oswald, sans-serif;
  letter-spacing: 5px;
  font-size: 1.25rem;
  color: #333;
}

.nav ul {
  list-style: none;
  display: flex;
}

.nav li+li {
  margin-left: 20px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  width: 30px;
  height: 3px;
  background: #333;
  position: relative;
  cursor: pointer;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  background: #333;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Banner */
.banner {
  height: 450px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  color: #fff;
}

.banner-content img {
  max-width: 200px;
  display: block;
  margin: 0 auto 20px;
}

.banner-content h1 {
  font-size: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Sections */
main section {
  padding: 60px 0;
}

main h2 {
  font-family: Oswald, sans-serif;
  letter-spacing: 5px;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.two-col {
  display: flex;
  gap: 40px;
  align-items: center;
}

.two-col>div {
  flex: 1;
}

.two-col figure {
  flex: 1;
  text-align: center;
}

.two-col img {
  max-width: 100%;
}

.two-col figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}

.three-col {
  display: flex;
  gap: 20px;
}

.three-col>div {
  flex: 1;
}

/* Social */
.social {
  text-align: center;
  margin-top: 20px;
}

.social a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
}

/* Footer */
footer {
  background: #f8f8f8;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media(max-width:768px) {
  .nav {
    display: none;
    flex-direction: column;
  }

  .nav.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .two-col {
    flex-direction: column;
  }

  .three-col {
    flex-direction: column;
  }
}

 /* gallery */
.text-banner {
  background: linear-gradient(135deg, #000000, #28282B, #000000);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text-banner-content h1 {
  color: #fff;
  font-size: 3rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  background: #e0e0e0;
}

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

.gallery-item img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #f00;
}

/* Tablet: slightly smaller min width */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile: single column for narrow screens */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery {
    padding: 0 8px;
  }
}

/* contact */
.contact-section {
  padding: 80px 20px;
}
.contact-section .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.contact-section .contact-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-section .detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-section .detail-item i {
  font-size: 1.2rem;
  color: #007BFF;
}
.contact-section .detail-item a,
.contact-section .detail-item span {
  color: #555;
  text-decoration: none;
}
.contact-section .social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}
.contact-section .social-links a {
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.contact-section .social-links a:hover {
  transform: translateY(-5px);
}
.contact-section .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.contact-section .btn:hover {
  background-color: #0056b3;
}
.contact-section .tooltip {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #333;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: transform 0.2s ease-in-out;
}
.contact-section .tooltip.show {
  transform: translateX(-50%) scale(1);
}

@media (max-width: 600px) {
  .contact-section .contact-details {
    flex-direction: column;
    align-items: center;
  }
}

/* about */
.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
  font-family: sans-serif;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 1em;
}

.more-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
  transition: max-height 0.3s ease;
}

.more-text.hidden {
  max-height: 0;
  overflow: hidden;
}

.more-text.visible {
  max-height: 500px; /* big enough to show all text */
}

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  margin-bottom: 1.5em;
  border: none;
  background: #007acc;
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background: #005fa3;
}

.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.skills-list li {
  background: #fff;
  padding: 0.5em 1em;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-image img {
    width: 80%;
    max-width: 300px;
  }
}

    /* Projects Section */
    .projects-section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
    .projects-section h2 { text-align: center; margin-bottom: 20px; font-size: 2rem; }

    /* Filter Buttons */
    .filter-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
    .filter-btn {
      padding: 10px 20px; border: none; background: #e0e0e0; cursor: pointer;
      border-radius: 4px; transition: background 0.3s, color 0.3s; font-size: 0.9rem;
    }
    .filter-btn.active, .filter-btn:hover {
      background: #007BFF; color: #fff;
    }

    /* Projects Grid */
    .projects-grid {
      display: grid; gap: 20px;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Project Card */
    .project-card {
      background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s;
    }
    .project-card:hover { transform: translateY(-5px); }
    .project-card img { width: 100%; height: auto; }
    .project-content {
      padding: 20px; flex-grow: 1; display: flex; flex-direction: column;
    }
    .project-content h3 { margin-bottom: 10px; font-size: 1.2rem; }
    .project-content p { flex-grow: 1; margin-bottom: 15px; font-size: 0.95rem; line-height: 1.4; color: #555; }
    .project-content a {
      align-self: flex-start; padding: 8px 16px; background: #007BFF;
      color: #fff; text-decoration: none; border-radius: 4px; transition: background 0.3s;
      font-size: 0.9rem;
    }
    .project-content a:hover { background: #0056b3; }

    /* Responsive Padding */
    @media (max-width: 768px) {
      .projects-section { padding: 20px 10px; }
    }