/* Dark/Light Mode Support */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-text: #1a1a1a;
  --section-bg: #f8f8f8;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay-color: rgba(0, 0, 0, 0.5);
  --muted-text: #888888;
  --gold-color: #d4af37; /* Gold accent */
  --gold-hover: #9c7c38; /* Darker gold */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --header-bg: rgba(18, 18, 18, 0.85);
    --header-text: #f0f0f0;
    --section-bg: #1e1e1e;
    --card-bg: #2a2a2a;
    --border-color: #444444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-color: rgba(0, 0, 0, 0.7);
    --muted-text: #b0b0b0;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Header Styling - Making it transparent and adaptive */
.brand-logo {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--header-bg);
}

.logo-image {
  height: 70px;
  width: auto;
}

nav.about-nav {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
}

.fashion-header {
  background-color: var(--header-bg);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.fashion-header.transparent {
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: none;
}

.fashion-header.scrolled {
  background-color: var(--header-bg);
  box-shadow: 0 3px 10px var(--shadow-color);
}

/* Ensuring text visibility in any background */
.nav-link, .brand-tagline, .action-button {
  color: var(--header-text);
}

/* Section and content styling */
.about-section {
  background-color: var(--section-bg);
}

.section-content {
  color: var(--text-color);
}

.section-content h2 {
  color: var(--text-color);
}

.section-content p {
  color: var(--text-color);
}

/* Card elements with improved visibility */
.team-member, .modal-content, .stat {
  background-color: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Fixing contrast issues in sections */
.story-section::before,
.philosophy-section::before,
.craftsmanship-section::before,
.vision-section::before,
.team-section::before,
.instagram-feed-section::before {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

/* Improved visibility for modal elements */
.modal {
  background-color: var(--overlay-color);
}

.modal-content {
  background-color: var(--card-bg);
}

.modal h2, .modal p {
  color: var(--text-color);
}

.close-modal {
  color: var(--muted-text);
}

/* Footer styling with better contrast */
.about-footer {
  background-color: #121212; /* Always dark for better brand feel */
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

/* Form elements with proper contrast */
input, textarea, select {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

input::placeholder, textarea::placeholder {
  color: var(--muted-text);
}

/* Special elements that need fixed text visibility */
.footer-logo-text h2,
.footer-column h3,
.footer-description,
.footer-links-list li a,
.newsletter-heading {
  color: var(--text-light);
}

/* Team sections with improved visibility */
.team-slide .slide-front {
  background-color: var(--card-bg);
}

.team-slide .slide-back {
  background-color: var(--primary-color);
}

.member-info h3 {
  color: var(--text-color);
}

.member-title {
  color: var(--gold-color);
}

.bio-details p {
  color: rgba(255, 255, 255, 0.9);
}

/* Stats with improved visibility */
.stat-number {
  color: var(--gold-color);
}

.stat-text {
  color: var(--text-color);
}

/* Vision section with improved readability */
.vision-content h2,
.vision-content p {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Making buttons stand out in dark mode */
.vision-button, .submit-btn {
  background-color: var(--gold-color);
  color: white;
}

.vision-button:hover, .submit-btn:hover {
  background-color: var(--gold-hover);
}