:root {
  /* New Color Palette - Deep Navy & Gold */
  --bg-color: #0f172a;
  --bg-darker: #020617;
  --surface-color: rgba(30, 41, 59, 0.5);
  --primary-color: #f8fafc;
  --secondary-color: #94a3b8;
  --accent-color: #e2b13c;
  /* Artisan Gold */
  --accent-glow: rgba(226, 177, 60, 0.3);

  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(226, 177, 60, 0.2);
  --nav-height: 80px;

  /* Frame Colors */
  --frame-gold: linear-gradient(135deg, #b45309 0%, #fbbf24 50%, #b45309 100%);
  --frame-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top right, var(--surface-color), transparent);
  color: var(--primary-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Base Layout */
main {
  min-height: 100vh;
  padding: var(--nav-height) 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Glassmorphism Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  transition: all 0.3s ease;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Animations removed for instant loading */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.fade-in,
.page-entrance {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Hero Section */
.hero {
  height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -4px;
  background: linear-gradient(to right, #fff, var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero p {
  color: var(--secondary-color);
  font-size: 1.2rem;
  max-width: 600px;
}

/* Art Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

/* Multilayered Blue Frame Implementation */
.art-card {
  position: relative;
  aspect-ratio: 4/5;
  padding: 16px;
  /* Slightly reduced mat space */
  background: var(--bg-darker);
  /* Dark navy matting */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid var(--glass-border);
}

/* Outer Blue Frame Layer - Deep Ocean Blue */
.art-card::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 12px solid transparent;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Inner Blue Frame Layer - Sky Blue */
.art-card::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 4px solid #60a5fa;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Additional thin blue edge for crispness */
.art-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(30, 64, 175, 0.3);
  pointer-events: none;
  z-index: 4;
}

.art-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.art-card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.art-card:hover img {
  transform: scale(1.1);
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.art-card:hover .art-overlay {
  opacity: 1;
}

.art-title {
  color: white;
  font-size: 1rem;
  text-transform: capitalize;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.about-image {
  position: relative;
  padding: 15px;
  background: var(--bg-darker);
  border: 8px solid var(--bg-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 4rem auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  color: white;
  font-family: inherit;
  border-radius: 4px;
}

.submit-btn {
  background: var(--accent-color);
  color: var(--bg-darker);
  border: none;
  padding: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--accent-glow);
  background: #f59e0b;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border: 4px solid white;
  box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 2001;
  transition: transform 0.3s ease;
}

.close-lightbox:hover {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links li a {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 15vw, 5rem);
    letter-spacing: -2px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 3rem;
  }

  .art-card {
    padding: 16px;
  }

  .art-card::before {
    inset: -10px;
    border-width: 8px;
  }

  .contact-container {
    padding: 2rem 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1rem;
  }
}