/* ============================================
   Maia Chkonia - Artist Portfolio
   Lightweight Blue Theme Stylesheet
   ============================================ */

/* CSS Variables - Blue Color Palette */
:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #63b3ed;
  --light: #ebf8ff;
  --text: #2d3748;
  --white: #ffffff;
  --shadow: rgba(26, 54, 93, 0.15);
  --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--primary);
  font-weight: normal;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

/* Hero Section */
.hero {
  height: 50vh;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  margin-top: 60px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 4px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
}

.hero-small {
  height: 30vh;
  min-height: 200px;
}

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

.gallery-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.gallery-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.overlay p {
  color: var(--accent);
  font-size: 0.85rem;
}

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

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

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

.lightbox-info {
  text-align: center;
  color: var(--white);
  margin-top: 1rem;
}

.lightbox-info h3 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.lightbox-info p {
  color: var(--accent);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--accent);
  color: var(--white);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* About Page */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  text-align: justify;
}

.artist-statement {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 4px solid var(--accent);
}

.artist-statement h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.contact-section {
  background: var(--white);
  padding: 3rem 2rem;
  margin-top: 3rem;
  border-radius: 8px;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

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

.footer a {
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero h1 {
    letter-spacing: 2px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .gallery-item img {
    height: 280px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-text p {
    text-align: left;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .gallery-section {
    padding: 2rem 1rem;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* Loading Animation */
.gallery-item img {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Smooth page transitions */
.page-content {
  animation: slideUp 0.5s ease;
}

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