* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Martel', serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

/* Left Panel Styles */
.left-panel {
  flex: 1;
  background: #8A7548;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  color: white;
  position: relative;
  height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sewing-machine-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #FDFAE7;
}

.navigation {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
}

.section-title {
  font-family: 'Martel', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 15px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.description {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.95;
  font-family: 'Martel', serif;
}

.cta-button {
  background: #BC9C59;
  border: 1px solid #BC9C59;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background: #A08849;
  border-color: #A08849;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0);
}

/* Right Panel Styles */
.right-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.workshop-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.workshop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

/* Overlay Sections */
.overlay-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Desktop overlay positioning - over the right panel */
@media (min-width: 769px) {
  .overlay-section {
    position: absolute;
    left: 50%;
    width: 50%;
    height: 100vh;
    z-index: 100;
  }
}

.overlay-section.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  padding: 60px 50px;
  height: auto;
  max-height: calc(100vh - 40px);
  overflow: visible;
  color: white;
  font-family: 'Martel', serif;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  margin: auto;
  width: 100%;
  max-width: 600px;
}

.close-overlay {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 101;
}

.close-overlay:hover {
  opacity: 0.7;
}

.overlay-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #FDFAE7;
}

.overlay-content h3 {
  font-family: 'Martel', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #BC9C59;
}

.overlay-content p {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: #d0d0d0;
  margin-bottom: 16px;
}

/* Contact Overlay Specific Styles */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 500px;
  width: 100%;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #BC9C59;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.contact-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.contact-item p {
  margin-bottom: 0;
  color: #e8e8e8;
}

/* About Overlay Specific Styles */
.about-content {
  max-width: 600px;
}

.about-section {
  margin-bottom: 32px;
  border-left: 3px solid #BC9C59;
  padding-left: 24px;
}

.about-section:last-child {
  margin-bottom: 0;
}

/* Footer Styles */
.footer {
  background: #8A7548;
  color: #FDFAE7;
  padding: 40px 0 20px 0;
  font-family: 'Martel', serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 50px;
}

.footer-section h4 {
  color: #BC9C59;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

.footer-section p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #FDFAE7;
}

.footer-description {
  font-style: italic;
  opacity: 0.8;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 250, 231, 0.2);
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

/* Mobile breakpoint for small screens and fix overlay scrolling */
@media (max-width: 1024px), (max-height: 700px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    background-image: url('../images/caroline-badran-YWTNP6Y5AHc-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
  }

  /* Add overlay for better text readability */
  .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .left-panel {
    width: 100%;
    padding: 40px 30px;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 2;
  }

  .right-panel {
    display: none;
  }

  .header {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
    text-align: center;
  }

  .logo {
    justify-content: center;
    align-items: center;
  }

  .navigation {
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
  }

  .nav-link {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  }

  .nav-link:hover,
  .nav-link:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.25);
  }

  .brand-name {
    font-size: 28px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }

  .main-content {
    text-align: center;
    max-width: 100%;
  }

  .section-title {
    font-size: 14px;
    letter-spacing: 8px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }

  .description {
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }

  .cta-button {
    padding: 16px 32px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
    width: fit-content;
  }

  /* Footer mobile adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 30px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  /* Overlay fixes for small screens - single scroll only */
  .overlay-section {
    align-items: flex-start;
    padding: 0;
    overflow-y: auto;
  }

  .overlay-content {
    margin: 20px;
    max-height: none;
    min-height: calc(100vh - 40px);
    padding: 60px 30px 30px 30px;
    width: calc(100% - 40px);
    overflow: visible;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
  }

  .close-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  .overlay-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .contact-info {
    gap: 20px;
    max-width: 100%;
    width: 100%;
  }

  .contact-item {
    padding: 20px;
    text-align: left;
    margin-bottom: 10px;
  }

  .contact-item h3,
  .about-section h3 {
    font-size: 18px;
  }

  .contact-item p,
  .about-section p {
    font-size: 16px;
  }

  .about-section {
    margin-bottom: 25px;
    padding-left: 20px;
    text-align: left;
    max-width: 100%;
  }

  .about-content {
    max-width: 100%;
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* This breakpoint is now handled by the mobile breakpoint above */
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    flex-direction: column;
    height: auto;
    background-image: url('../images/caroline-badran-YWTNP6Y5AHc-unsplash.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
  }
  
  /* Add overlay for better text readability */
  .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
  .left-panel {
    padding: 40px 30px;
    min-height: 100vh;
    order: 1;
    height: auto;
    background: transparent;
    position: relative;
    z-index: 2;
  }
  
  .right-panel {
    display: none;
  }
  
  .header {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
    text-align: center;
  }
  
  .logo {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  
  .sewing-machine-icon {
    width: 36px;
    height: 36px;
  }
  
  .navigation {
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  }
  
  .nav-link:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.25);
  }
  
  .brand-name {
    font-size: 28px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }
  
  .main-content {
    text-align: center;
    max-width: 100%;
  }
  
  .section-title {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }
  
  .description {
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }
  
  .cta-button {
    padding: 16px 32px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
    width: fit-content;
  }
  
  /* Mobile overlay styles */
  .overlay-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
  }
  
  .overlay-content {
    padding: 60px 30px 30px 30px;
    text-align: center;
    height: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    justify-content: flex-start;
    align-items: center;
    width: calc(100% - 40px);
    margin: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
  }
  
  .close-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }
  
  .overlay-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 20px;
  }
  
  .overlay-content h3 {
    font-size: 18px;
  }
  
  .overlay-content p {
    font-size: 16px;
  }
  
  .contact-info {
    gap: 20px;
    max-width: 100%;
    width: 100%;
  }
  
  .contact-item {
    padding: 20px;
    text-align: left;
    margin-bottom: 10px;
  }
  
  .about-section {
    margin-bottom: 25px;
    padding-left: 20px;
    text-align: left;
    max-width: 100%;
  }
  
  .about-content {
    max-width: 100%;
    width: 100%;
  }
  
  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 30px;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer {
    padding: 40px 0 20px 0;
  }
}

@media (max-width: 480px) {
  .left-panel {
    padding: 30px 20px;
    min-height: 100vh;
  }
  
  .header {
    margin-bottom: 40px;
    gap: 20px;
  }
  
  .brand-name {
    font-size: 24px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .navigation {
    gap: 20px;
  }
  
  .section-title {
    font-size: 12px;
    letter-spacing: 11px;
  }
  
  .description {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  /* Small mobile overlay styles */
  .overlay-content {
    padding: 50px 20px 30px 20px;
  }
  
  .close-overlay {
    top: 15px;
    right: 15px;
    font-size: 28px;
    width: 45px;
    height: 45px;
  }
  
  .overlay-content h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .overlay-content h3 {
    font-size: 16px;
  }
  
  .overlay-content p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .contact-item {
    padding: 16px;
  }
  
  .contact-info {
    gap: 15px;
  }
  
  .about-section {
    margin-bottom: 20px;
    padding-left: 16px;
  }
  
  /* Footer mobile */
  .footer-content {
    padding: 0 20px;
    gap: 25px;
  }
  
  .footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .footer-section p {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .footer-brand {
    font-size: 18px;
  }
  
  .footer {
    padding: 30px 0 15px 0;
  }
}

/* Touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
  .nav-link:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.25);
  }
  
  .cta-button:active {
    transform: scale(0.98);
  }
  
  .close-overlay:active {
    transform: scale(0.95);
  }
}
