body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #333;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.section-selector {
  margin: 0;
  display: flex;
  align-items: center;
}

.selector-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.3rem 0.8rem;
  margin: 0 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.selector-btn:hover {
  background: #fff;
  color: #333;
}

.selector-btn.active {
  background: #fff;
  color: #333;
}

main {
  padding: 0;
  flex: 1;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

#about {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background: #333;
}

.about-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: flex-start;
}

.profile-column {
  background: #333;
  flex: 0 0 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  padding-top: 3rem;
}

.profile-content {
  text-align: left;
}

.profile-name {
  color: #fff;
  font-size: 2rem;
  margin: 1.5rem 0 0 0;
  font-weight: 500;
}

.profile-location {
  color: #fff;
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
  font-style: italic;
  opacity: 0.8;
}

.profile-title {
  color: #fff;
  font-size: 1.2rem;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
  opacity: 0.9;
}

.content-column {
  background: #8eb386;
  flex: 1;
  padding: 3rem 3rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2rem;
  margin: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  align-self: flex-start;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-column img {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.resume {
  flex: 1;
  min-width: 300px;
}

.content-column h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 2.5rem;
}

.content-column .location {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
}

.content-column p {
  line-height: 1.8;
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

#pottery {
  padding: 1.4rem 0;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.7rem;
}

.pottery-intro {
  text-align: left;
  margin-bottom: 3rem;
  padding: 0;
}

.pottery-intro p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
  font-style: italic;
  margin: 0;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 1.4rem;
  column-gap: 1.4rem;
}

.gallery .grid img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery .grid img.loaded {
  opacity: 1;
}

.gallery .grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ccc;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 48px;
  font-weight: 300;
  padding: 20px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

footer {
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
  flex-shrink: 0;
  opacity: 0.8;
}

footer p {
  margin: 0;
}

.about-footer {
  color: #fff;
  opacity: 0.8;
  background: #333;
}

.pottery-footer {
  color: #666;
  opacity: 0.8;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .content-column {
    padding: 2rem 4rem 2rem 2rem;
  }
  
  .profile-column {
    flex: 0 0 350px;
    padding: 1.5rem;
  }
  
  .profile-column img {
    width: 250px;
    height: 250px;
  }
  
  .profile-name {
    font-size: 1.8rem;
  }
  
  .content-column h2 {
    font-size: 2rem;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .section-selector {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
  }
  
  .selector-btn {
    padding: 0.4rem 0.6rem;
    margin: 0 0.2rem;
    font-size: 0.8rem;
    min-width: 80px;
  }
  
  /* About Me - Stack columns vertically on mobile */
  .about-layout {
    flex-direction: column;
    min-height: auto;
  }
  
  .profile-column {
    flex: 1;
    width: 100%;
  }
  
  #about {
    min-height: auto;
  }
  
  .profile-column {
    flex: 1;
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  .profile-content {
    text-align: center;
  }
  
  .profile-column img {
    width: 200px;
    height: 200px;
  }
  
  .profile-name {
    font-size: 1.6rem;
    margin: 1rem 0 0 0;
  }
  
  .profile-location,
  .profile-title {
    font-size: 1rem;
    margin: 0.3rem 0 0 0;
  }
  
  .content-column {
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1rem;
  }
  
  .content-column h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .content-column p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Pottery Gallery */
  #pottery {
    padding: 1rem 0;
  }
  
  .gallery {
    padding: 0 1rem;
  }
  
  .pottery-intro {
    margin-bottom: 2rem;
  }
  
  .pottery-intro p {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .gallery .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .gallery .grid img {
    height: 450px;
  }
  
  /* Lightbox adjustments */
  .close-btn {
    top: 15px;
    right: 20px;
    font-size: 35px;
  }
  
  .nav-btn {
    display: none;
  }
  
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  header {
    padding: 0.6rem 0.8rem;
  }
  
  .section-selector {
    gap: 0.2rem;
    justify-content: flex-end;
  }
  
  .selector-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    min-width: 70px;
    margin: 0 0.1rem;
  }
  
  .profile-column {
    flex: 1;
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  .profile-column img {
    width: 180px;
    height: 180px;
  }
  
  .profile-name {
    font-size: 1.4rem;
  }
  
  .profile-location,
  .profile-title {
    font-size: 0.9rem;
  }
  
  .content-column {
    padding: 1.5rem 1rem;
    margin: 0.8rem;
  }
  
  .content-column h2 {
    font-size: 1.6rem;
  }
  
  .content-column p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .gallery {
    padding: 0 0.8rem;
  }
  
  .pottery-intro p {
    font-size: 1rem;
  }
  
  .gallery .grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .gallery .grid img {
    height: 450px;
  }
  
  footer {
    padding: 0.8rem;
    font-size: 0.8rem;
    margin-top: 2rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .selector-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
    min-width: 60px;
  }
  
  .profile-column img {
    width: 150px;
    height: 150px;
  }
  
  .profile-name {
    font-size: 1.3rem;
  }
  
  .content-column h2 {
    font-size: 1.4rem;
  }
  
  .gallery .grid img {
    height: 450px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .gallery .grid img:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .selector-btn:hover {
    background: transparent;
    color: #fff;
  }
  
  .selector-btn.active:hover {
    background: #fff;
    color: #333;
  }
  
  .nav-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
  }
  
  .close-btn:hover {
    color: #fff;
  }
}

