/* CSS Variables - Deep Blue Art Gallery Theme */
:root {
  --primary-blue: #1a237e;
  --deep-blue: #0d1421;
  --navy: #1e2a4a;
  --accent-blue: #3f51b5;
  --light-blue: #e3f2fd;
  --cream: #faf8f5;
  --warm-white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #64748b;
  --gold-accent: #d4af37;
  --shadow: rgba(26, 35, 126, 0.15);
  --shadow-strong: rgba(26, 35, 126, 0.25);
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-blue) 100%);
  min-height: 100vh;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 35, 126, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--shadow);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--shadow-strong);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(63, 81, 181, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(26, 35, 126, 0.08) 0%, transparent 50%);
}

/* Gallery Section */
.gallery {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.artwork-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.4s ease;
  cursor: pointer;
}

.artwork-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-strong);
}

.artwork-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.artwork-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 35, 126, 0.9));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.artwork-card:hover .artwork-overlay {
  transform: translateY(0);
}

.artwork-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* About Section */
.about {
  padding: 6rem 2rem;
  background: rgba(255, 255, 255, 0.7);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about-logo {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  box-shadow: 0 15px 40px var(--shadow);
}

/* Contact Section */
.contact {
  padding: 6rem 2rem;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-email {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--deep-blue);
  color: white;
  text-align: center;
  padding: 2rem;
}

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

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

#lightbox-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  padding: 2rem;
  background: white;
}

#lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

#lightbox-medium {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .about-content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .hero {
    min-height: 80vh;
    padding: 4rem 1rem 3rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
  }
  
  .gallery {
    padding: 4rem 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .artwork-card {
    border-radius: 12px;
  }
  
  .artwork-image {
    height: 250px;
  }
  
  .about {
    padding: 4rem 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .contact {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-email {
    font-size: 1.1rem;
    word-break: break-all;
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: 1rem;
  }
  
  .lightbox-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .artwork-image {
    height: 200px;
  }
  
  .about-logo {
    width: 100px;
    height: 100px;
  }
  
  .gallery, .about, .contact {
    padding: 3rem 1rem;
  }
}
