/* 
 * Kate Briscoe Art - Enhanced Website
 * Main Stylesheet
 */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Source+Sans+Pro:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ----- Variables ----- */
:root {
  /* --- Dark Theme: Deep Earth & Contrast --- */
  --bg-primary: #2F3E46; /* Very Dark Desaturated Blue */
  --bg-secondary: #3A4A53; /* Slightly Lighter Dark Blue/Grey */
  --bg-dark: #263238; /* Darker shade for headers/footers */
  --text-primary: #F5F5F5; /* Off-White */
  --text-secondary: #E0E0E0; /* Lighter Grey (for headings) */
  --accent-color: #C19A6B; /* Soft Ochre */
  --secondary-accent: #708090; /* Slate Grey */
  --highlight: rgba(193, 154, 107, 0.1); /* Soft Ochre low opacity */

  /* --- Original names mapped to new theme (adjust as needed) --- */
  --slate-blue: var(--secondary-accent); /* #708090 */
  --deep-green: var(--accent-color); /* #C19A6B - Now primary action */
  --earth-brown: var(--accent-color); /* #C19A6B */
  --subtle-beige: var(--bg-secondary); /* #3A4A53 */
  --off-white: var(--bg-primary); /* #2F3E46 */
  --soft-black: var(--text-primary); /* #F5F5F5 */

  /* --- Ensure functional colors use new theme --- */
  /* --text-primary: var(--text-primary); */ /* Already defined */
  /* --text-secondary: var(--text-secondary); */ /* Already defined */
  /* --accent-color: var(--accent-color); */ /* Already defined */
  /* --bg-primary: var(--bg-primary); */ /* Already defined */
  /* --bg-secondary: var(--bg-secondary); */ /* Already defined */
  /* --highlight: var(--highlight); */ /* Already defined */
  /* Typography */
  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --font-special: 'EB Garamond', serif;
  
  /* Layout */
  --container-width: 1200px;
  --gutter: 30px;
  --header-height: 80px;
}

/* ----- Base Styles ----- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-secondary); /* Use lighter grey for headings */
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color); /* Links use accent color */
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--text-primary); /* Link hover brightens to primary text */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-center {
  text-align: center;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 20px auto 0;
}

/* ----- Animations & Effects ----- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.zoom-in {
  animation: zoomIn 1s ease forwards;
}

/* ----- Buttons ----- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  border: 1px solid var(--deep-green);
  color: var(--accent-color); /* Button border/text uses accent */
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 100%;
  background-color: var(--accent-color); /* Button hover bg uses accent */
  transform: skewX(-15deg);
  z-index: -1;
  transition: width 0.3s ease;
}

.btn:hover {
  color: var(--bg-primary); /* Button hover text uses dark bg color */
}

.btn:hover:before {
  width: 120%;
}

.btn-primary {
  background-color: var(--accent-color); /* Primary button bg uses accent */
  color: var(--bg-primary); /* Primary button text uses dark bg color */
  border: none;
}

.btn-primary:before {
  background-color: var(--secondary-accent); /* Primary button hover uses secondary accent */
}

.btn-lg {
  padding: 15px 35px;
  font-size: 16px;
}

/* ----- Header ----- */

header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 14px;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--bg-dark); /* Use solid background color */
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 65px;
}

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

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

.logo a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary); /* Header logo uses primary text color */
  letter-spacing: 1px;
}

.logo a:hover {
  opacity: 0.9;
}

nav {
  height: 100%;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
}

nav li {
  margin-left: 40px;
  height: 10%;
  display: flex;
  align-items: center;
}

nav a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

nav a.active {
  color: var(--accent-color); /* Active nav link uses accent */
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-primary); /* Mobile menu button uses primary text */
}

/* ----- Hero Section ----- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 2s ease;
}

.hero-image.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  padding-top: 120px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.1;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards 0.5s;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-special);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards 1s;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.hero-button {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s, bounce 2s infinite 3s;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* ----- Featured Artwork ----- */

.featured-artwork {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.featured-artwork:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  z-index: -1;
  transform: skewY(-3deg);
  transform-origin: top left;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.artwork-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.artwork-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.artwork-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.artwork-image {
  position: relative;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.artwork-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

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

.artwork-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.artwork-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: white;
}

.artwork-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

.view-all-btn {
  text-align: center;
  margin-top: 60px;
}

/* ----- About Section ----- */

.about-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 30px 30px 0 rgba(122, 108, 93, 0.15);
}

.about-image img {
  width: 100%;
  transform: scale(1.05);
  transition: transform 1.5s ease;
}

.about-image img.loaded {
  transform: scale(1);
}

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

.about-content p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.quote {
  font-family: var(--font-special);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent-color);
  border-left: 3px solid var(--accent-color);
  padding-left: 20px;
  margin: 40px 0;
  line-height: 1.5;
}

/* ----- Gallery ----- */

.gallery-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%); /* Use hero overlay gradient */
}

.gallery-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  margin: 0 10px 10px;
  border: 1px solid var(--deep-green);
  background-color: transparent;
  color: var(--accent-color); /* Filter button text/border uses accent */
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.filter-btn:hover {
  background-color: var(--highlight); /* Filter button hover uses highlight */
}

.filter-btn.active {
  background-color: var(--accent-color); /* Active filter button bg uses accent */
  color: var(--bg-primary); /* Active filter button text uses dark bg */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: box-shadow 0.3s ease; /* Only transition box-shadow on base */
  opacity: 0; /* Ensure items start invisible until loading/visible/error state is set */
  transform: translateY(20px); /* Keep initial transform for animation */
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

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

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

.gallery-item-info {
  padding: 15px;
  background-color: var(--bg-secondary); /* Gallery item info uses secondary dark bg */
}

.gallery-item-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.gallery-item-info p {
  font-size: 0.9rem;
  color: var(--text-secondary); /* Gallery item meta text uses lighter grey */
  margin-bottom: 0;
}
/* Gallery Item Loading/Error States */
.gallery-item.loading {
    opacity: 0.5; /* Indicate loading state */
    transform: translateY(0); /* Allow transform animation from initial state */
    background-color: var(--bg-secondary); /* Placeholder background */
    /* Optional: Add a spinner or other loading indicator */
}

.gallery-item.visible {
    transition: opacity 0.5s ease, transform 0.5s ease; /* Add opacity/transform transition here */
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.error {
    transition: opacity 0.5s ease, transform 0.5s ease; /* Add opacity/transform transition here */
    opacity: 0.7; /* Indicate error state */
    transform: translateY(0); /* Allow transform animation */
    background-color: var(--bg-secondary); /* Placeholder background */
    /* Optional: Add an error icon */
}

.gallery-item.error .gallery-image img {
    object-fit: contain; /* Show placeholder SVG properly */
    opacity: 0.5;
}

.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-overlay-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.overlay-image {
  max-width: 100%;
  max-height: 80vh;
  border: 10px solid white;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.overlay-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.overlay-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 15px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.overlay-info.loaded {
  transform: translateY(0);
  opacity: 1;
}

.overlay-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.overlay-close:hover {
  background-color: #f0f0f0;
}

.overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.overlay-nav:hover {
  background-color: #f0f0f0;
}

.overlay-prev {
  left: -25px;
}

.overlay-next {
  right: -25px;
}

/* ----- Contact ----- */

.contact-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  padding-right: 40px;
}

.contact-info h2 {
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-details {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color); /* Contact icon uses accent */
  color: var(--bg-primary); /* Contact icon text uses dark bg */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.contact-text {
  font-size: 1.1rem;
}

.contact-form {
  background-color: var(--bg-secondary); /* Contact form uses secondary dark bg */
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary); /* Form label uses lighter grey */
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--secondary-accent); /* Form control border */
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background-color: var(--bg-primary); /* Form control background */
  color: var(--text-primary); /* Form control text */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color); /* Form control focus border */
  box-shadow: 0 0 0 3px var(--highlight); /* Form control focus shadow */
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ----- Footer ----- */

footer {
  background-color: var(--bg-secondary); /* Footer uses secondary background color */
  color: var(--text-primary); /* Footer text uses primary text color */
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-info p {
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-links h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary); /* Footer links use lighter grey */
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary); /* Footer link hover uses primary text */
}

.footer-contact h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-contact a {
  color: var(--accent-color); /* Footer contact link uses accent */
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(245, 245, 245, 0.15); /* Footer border uses primary text with low opacity */
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ----- Style Transfer Page ----- */

.style-header {
  padding: 180px 0 80px;
  background-color: var(--bg-secondary);
  text-align: center;
}

.style-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.style-header p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
}

.style-content {
  padding: 80px 0;
}

.style-explanation {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.style-explanation h2 {
  margin-bottom: 30px;
}

.style-explanation p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.style-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.upload-container {
  background-color: var(--bg-secondary); /* Upload container uses secondary dark bg */
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.upload-container h3 {
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.upload-area {
  border: 2px dashed var(--secondary-accent); /* Upload area border */
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 30px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.upload-area:hover {
  border-color: var(--accent-color); /* Upload area hover border */
  background-color: var(--highlight); /* Upload area hover bg */
}

.upload-icon {
  font-size: 3rem;
  color: var(--secondary-accent); /* Upload icon color */
  margin-bottom: 20px;
}

.upload-text {
  margin-bottom: 15px;
  font-weight: 500;
}

.upload-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-accent); /* Upload button bg */
  color: var(--bg-primary); /* Upload button text */
  font-weight: 500;
  border-radius: 4px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.upload-button:hover {
  background-color: var(--accent-color); /* Upload button hover bg */
}

input[type="file"] {
  display: none;
}

.style-options {
  margin-top: 30px;
  text-align: left;
}

.style-options h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.style-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--secondary-accent); /* Select border */
  border-radius: 4px;
  font-family: var(--font-sans);
  background-color: var(--bg-primary); /* Select background */
  color: var(--text-primary); /* Select text */
  appearance: none;
  /* SVG arrow color needs to be updated for dark theme - using accent color #C19A6B */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23C19A6B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
  cursor: pointer;
}

.preview-container {
  background-color: var(--bg-secondary); /* Preview container uses secondary dark bg */
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ----- Touch Device Handling ----- */

/* Add specific rules for touch devices to fix hover state issues */
@media (hover: none) {
  /* Prevent hover effects on filter buttons for touch devices */
  .filter-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--deep-green);
  }
  
  /* Ensure active state has higher specificity for touch devices */
  .filter-btn.active {
    background-color: var(--accent-color) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-color) !important;
  }
  
  /* Reset hover state for non-active buttons that were previously tapped */
  .filter-btn:not(.active) {
    background-color: transparent;
    color: var(--accent-color);
  }
}

/* ----- Media Queries ----- */

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3.8rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .about-grid,
  .contact-grid,
  .style-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    margin: 0 auto;
    max-width: 500px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary); /* Mobile menu uses secondary dark bg */
  z-index: 900;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
  /* Hide mobile elements on desktop */
  .mobile-menu,
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  /* Show mobile menu on small screens */
  .mobile-menu {
    display: block;
  }
}
