* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Reset browser defaults for clean inheritance */
h1,
h2,
h3,
h4,
h5,
h6,
p,
small {
  color: inherit;
  font-weight: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #1a1a1a;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY SYSTEM ===== */

/* ==> GLOBAL HEADING STYLES */
h1 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
}

h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 15px;
}

h4 {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 10px;
}

p {
  color: #999;
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 40px;
}

small {
  color: #666;
  font-size: 10px;
  font-style: italic;
}

a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f0f0f0;
}

/* Navigation specific styles */
.nav-menu a {
  color: #999;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  display: block;
  text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #f0f0f0;
}

/* ==> TEXT STYLING CLASSES */
.artwork-title {
  font-size: 14px;
  font-weight: 400;
}

.experience-item strong {
  font-size: 12px;
  font-weight: 400;
}

.experience-item p {
  color: #666;
  font-size: 12px;
  font-weight: 300;
}

.lightbox-caption {
  color: #ccc;
  font-size: 14px;
}

.social-link {
  color: #666;
  font-size: 12px;
  font-weight: 300;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #999;
}

.contact-note {
  color: #ccc;
  font-style: italic;
}

/* De-emphasized sections (experience/education) */
.method-section:nth-child(4) h4,
.method-section:nth-child(5) h4 {
  color: #ccc;
  font-size: 14px;
  font-weight: 300;
}

/* ===== END UNIFIED TYPOGRAPHY =====*/

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: #0f0f0f;
  z-index: 1000;
  border-right: 1px solid #333;
}

/* Mobile Logo */
.mobile-logo {
  display: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1001;
  width: 25px;
  height: 18px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #f0f0f0;
  transition: 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-content {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-container {
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-start;
}

.logo {
  max-width: 120px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}

.nav-menu {
  list-style: none;
  flex-grow: 1;
  padding-left: 10px;
}

.nav-menu li {
  margin-bottom: 24px;
}

.nav-link {
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  display: block;
  text-transform: uppercase;
}

.social-links {
  margin-top: auto;
  padding-left: 10px;
}

.social-link {
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

/* Main Content */
.main-content {
  margin-left: 200px;
  min-height: 100vh;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(10%) contrast(95%) brightness(0.9);
}

.carousel-image.top-align img {
  object-fit: contain;
  object-position: center;
  background-color: #1a1a1a;
}

.artwork-item.top-align img {
  object-position: center top;
}

/* Artwork Grid */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  padding: 0;
}

.featured-artwork,
.artwork-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.featured-artwork img,
.artwork-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(10%) contrast(95%);
}

.featured-artwork:hover img,
.artwork-item:hover img {
  transform: scale(1.02);
}

/* Artwork Info Overlay */
.artwork-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 40px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-info {
  transform: translateY(0);
}

.artwork-title {
  display: block;
  margin-bottom: 4px;
}

/* Sections */
.artwork-section {
  padding: 0;
  margin-bottom: 0;
}

.store-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

.store-container iframe {
  width: 100%;
  height: 100%;
  /*border: 1px solid #333;*/
  background: #0f0f0f;
  display: block;
}

.default-section {
  padding: 80px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

/* About Section Styles */
.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
  align-items: start;
  margin: 40px 0;
}

.about-image img {
  width: 100%;
  height: auto;
  filter: grayscale(10%) contrast(95%);
}

.about-text p {
  margin-bottom: 20px;
}

/* Teaching Page Professional Layout */

/* Main teaching gallery - hero section */
.double-gallery,
.triple-gallery {
  display: grid;
  gap: 30px;
  /*margin: 40px 0 20px 0; */
  margin-left: auto;
  margin-right: auto;
}

.double-gallery {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
}

.triple-gallery {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

/* Special styling for middle image in children's section */
.triple-gallery:nth-child(2) {
  aspect-ratio: 4/3;
}

.teaching-example {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.teaching-example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(95%);
}

.teaching-methods {
  margin-top: 20px;
}

.method-section {
  margin-bottom: 50px;
  position: relative;
}

.group-photo {
  margin-top: 30px;
  text-align: center;
}

.group-photo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(20%) contrast(90%);
}

.contact-note {
  margin-top: 30px;
  font-style: italic;
  color: #ccc;
}

.teaching-section {
  margin-bottom: 30px;
}

/* Global Form Styles */
form {
  margin: 30px 0;
  max-width: 600px;
}

/* Services Section */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
  align-items: center;
}

.service-item:last-of-type {
  border-bottom: none;
}

.service-image img {
  width: 100%;
  max-width: 300px;
  height: 180px;
  object-fit: cover;
  filter: grayscale(10%) contrast(95%);
}

.service-content h2 {
  margin-bottom: 15px;
}

.service-contact {
  text-align: center;
  margin-top: 40px;
}

.form-group,
.newsletter-field {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 12px;
}

input,
textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  padding: 15px;
  font-size: 13px;
  box-sizing: border-box;
  border-radius: 0;
  color: #f0f0f0;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #666;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #666;
}

/* Global Button Styles */
button:not(.hamburger) {
  background: transparent;
  border: 1px solid #666;
  padding: 15px 30px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  color: #f0f0f0;
}

button:not(.hamburger):hover {
  background: #f0f0f0;
  color: #1a1a1a;
  border-color: #f0f0f0;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 24px;
  cursor: pointer;
  z-index: 3001;
}

.lightbox-caption {
  color: #ccc;
  margin-top: 20px;
  font-size: 14px;
}

.lightbox-caption h3 {
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-logo {
    display: block;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 998;
  }

  .mobile-logo .logo {
    max-width: 80px;
  }

  .logo-container {
    display: none;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 30px;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .sidebar {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: 1px solid #333;
    transition: height 0.3s ease;
  }

  .sidebar.nav-open {
    height: 100vh;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav-content {
    padding: 80px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    height: calc(100vh - 60px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    width: 100%;
    overflow-y: auto;
  }

  .sidebar.nav-open .nav-content {
    opacity: 1;
    visibility: visible;
  }

  .logo {
    max-width: 80px;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    width: 100%;
  }

  .nav-menu li {
    margin-bottom: 0;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 10px 0;
  }

  .social-links {
    margin-top: 30px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-bottom: 20px;
  }

  .social-link {
    margin-bottom: 0;
  }

  .main-content {
    margin-left: 0;
    margin-top: 60px;
  }

  .hero-carousel {
    height: calc(100vh - 60px);
  }

  .artwork-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .store-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }

  .store-section {
    padding: 0;
    height: calc(100vh - 60px);
  }

  .store-container {
    height: 100%;
  }

  .about-section,
  .contact-section {
    padding: 40px 30px;
  }

  /* Mobile about layout */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Responsive teaching page */
  .teaching-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }

  .oil-examples {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 20px;
  }

  .children-examples {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 20px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .nav-content {
    flex-direction: column;
    gap: 15px;
  }

  .logo-container {
    margin-right: 0;
  }

  .logo {
    max-width: 60px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .artwork-grid {
    grid-template-columns: 1fr 1fr;
  }

  .store-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .store-section {
    padding: 0;
  }

  .store-container {
    height: 500px;
  }

  .about-section,
  .contact-section {
    padding: 30px 20px;
  }

  /* Mobile teaching page */
  .teaching-gallery,
  .oil-examples,
  .children-examples {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 300px;
  }

  .about-content,
  .contact-content {
    font-size: 13px;
  }
}

/* Hide sections by default for single-page app behavior */
.artwork-section,
.about-section,
.contact-section,
.store-section,
.newsletter-section {
  display: none;
}

.artwork-section.active,
.about-section.active,
.contact-section.active,
.store-section.active,
.newsletter-section.active {
  display: block;
}

#home {
  display: block;
}

/* Contact form messages */
.contact-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
}

.contact-message-success {
  background-color: #1a4d3a;
  color: #4ade80;
  border: 1px solid #4ade80;
}

.contact-message-error {
  background-color: #4d1a1a;
  color: #f87171;
  border: 1px solid #f87171;
}
