:root {
  --primary: 90, 120, 230;
  --secondary: 245, 100, 135;
  --accent: 240, 200, 120;
  --text: #f6f6f6;
  --gap: 20px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-y: scroll; }
::-webkit-scrollbar { display: none; }

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0;
  font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #0b0b14, #000 70%);
  color: var(--text);
  line-height: 1.65;
  text-align: center;
}

main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 96px;
  padding: 0 24px;
  background: linear-gradient(90deg, rgba(var(--primary), 0.9), rgba(var(--secondary), 0.6));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.logo {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
}

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: rgba(var(--secondary), 1);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover { color: rgba(var(--secondary), 1); }
nav a:hover::after { width: 100%; }

#langToggle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 1.4rem;
  background: rgba(var(--secondary), 0.25);
  border: 2px solid rgba(var(--secondary), 0.8);
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 0 12px rgba(var(--secondary), 0.4);
}
#langToggle:hover {
  background: rgba(var(--secondary), 0.5);
  box-shadow: 0 0 20px rgba(var(--secondary), 0.9);
  transform: translateY(-50%) scale(1.08);
}

/* Instagram icon */
.instagram-btn {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.instagram-btn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: rgba(var(--secondary), 1);
  stroke-width: 2;
  transition: stroke 0.2s ease, transform 0.2s ease;
}
.instagram-btn svg .dot { fill: rgba(var(--secondary), 1); stroke: none; }
.instagram-btn:hover svg {
  stroke: rgba(var(--accent), 1);
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(var(--secondary), 0.75));
}
.instagram-btn:hover svg .dot { fill: rgba(var(--accent), 1); }

/* Basic effects */
.fade { opacity: 0; transition: opacity 0.6s ease; }
.fade.show { opacity: 1; }
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Carousel */
.gallery-section { margin: 5rem 0; }

.gallery-title {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: rgba(var(--secondary), 1);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.gallery-carousel { position: relative; overflow: hidden; width: 100%; }
.gallery-carousel .track { display: flex; gap: var(--gap); transform: translateX(0); }

.gallery-carousel .placeholder {
  width: 500px;
  background: linear-gradient(160deg, #111 0%, #1a1a1a 100%);
  border: 2px solid rgba(var(--primary), 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.gallery-carousel .placeholder:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0,0,0,0.65);
  border-color: rgba(var(--secondary), 0.9);
}
.gallery-carousel img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gallery-carousel .placeholder:hover img { transform: scale(1.1); }

.gallery-carousel::before, .gallery-carousel::after {
  content: "";
  position: absolute;
  top: 0; width: 100px; height: 100%;
  z-index: 2; pointer-events: none;
}
.gallery-carousel::before { left: 0; background: linear-gradient(to right, black 0%, transparent 100%); }
.gallery-carousel::after  { right: 0; background: linear-gradient(to left, black 0%, transparent 100%); }

/* Cards / grid (used elsewhere) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .gallery-grid { grid-template-columns: 1fr; } }

.art-card {
  background: linear-gradient(160deg, #111 0%, #1a1a1a 100%);
  border: 2px solid rgba(var(--primary), 0.8);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.art-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 28px rgba(0,0,0,0.7); border-color: rgba(var(--secondary), 0.9); }
.art-card img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.8s ease; }
.art-card:hover img { transform: scale(1.05); }
.art-info { padding: 1rem; text-align: center; color: var(--text); }
.art-info h4 { font-size: 1.3rem; margin-bottom: 0.4rem; font-family: "Playfair Display", serif; color: rgba(var(--secondary), 1); }
.art-info p { font-size: 1rem; color: #ddd; letter-spacing: 0.5px; }

/* Modal */
.modal {
  display: none;
  position: fixed; z-index: 2000; left: 0; top: 0;
  width: 100%; height: 100%;
  overflow-y: auto;
  background: rgba(5,5,15,0.9);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.35s ease;
}
.modal-content {
  display: flex; flex-direction: column; align-items: center;
  max-width: 1000px; margin: 5% auto;
  background: linear-gradient(160deg, rgba(15,15,25,0.95), rgba(25,10,20,0.9));
  border: 2px solid rgba(var(--primary), 0.8);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 14px 42px rgba(0,0,0,0.75);
  animation: slideUp 0.45s ease;
}
.modal-content img { width: 100%; max-height: 65vh; object-fit: contain; background: #0b0b14; border-bottom: 2px solid rgba(var(--secondary), 0.7); }
.modal-text { padding: 1.5rem 2rem; text-align: center; background: linear-gradient(180deg, rgba(10,10,20,0.9), rgba(20,10,20,0.95)); }
.modal-text h2 { font-family: "Playfair Display", serif; font-size: 1.8rem; margin-bottom: .6rem; color: rgba(var(--secondary), 1); text-transform: uppercase; letter-spacing: 1px; }
.modal-text p { font-family: "Poppins", sans-serif; font-size: 1.05rem; color: #eee; letter-spacing: .4px; margin: .3rem 0; }
.modal .close {
  position: absolute; top: 18px; right: 28px;
  font-size: 2.2rem; font-weight: bold; color: rgba(var(--accent), 0.9);
  cursor: pointer; transition: transform .25s ease, color .25s ease;
  text-shadow: 0 0 10px rgba(var(--accent), .5);
}
.modal .close:hover { color: rgba(var(--secondary), 1); transform: scale(1.15); text-shadow: 0 0 16px rgba(var(--secondary), 0.9); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Contact form */
.contact-form {
  max-width: 650px;
  margin: 5rem auto;
  padding: 3rem;
  background: linear-gradient(160deg, rgba(20,20,30,0.9), rgba(40,20,30,0.85));
  border: 2px solid rgba(var(--primary), 0.7);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.contact-form h2 {
  color: rgba(var(--secondary), 1);
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}
.contact-form label {
  display: block; margin-top: 1rem; margin-bottom: .5rem;
  font-weight: 600; color: var(--text); text-align: left;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem; border-radius: 14px;
  border: 2px solid rgba(var(--primary), 0.8);
  background: rgba(25,25,35,0.9); color: var(--text);
  font-size: 1rem; font-family: "Poppins", sans-serif;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(233,233,233,0.5); font-style: italic; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: rgba(var(--secondary), 1);
  background: rgba(40,40,50,0.95); box-shadow: 0 0 16px rgba(var(--secondary), 0.7);
}
.contact-form button {
  margin-top: 2rem; padding: 1rem 2rem;
  background: rgba(var(--primary), 0.8);
  border: 2px solid rgba(var(--secondary), 0.9);
  border-radius: 40px; font-size: 1.1rem; font-weight: 700;
  color: var(--text); cursor: pointer; transition: all .35s ease;
  box-shadow: 0 0 14px rgba(var(--secondary), 0.45);
}
.contact-form button:hover {
  background: rgba(var(--secondary), 0.9);
  box-shadow: 0 0 22px rgba(var(--secondary), 0.9);
  transform: scale(1.08);
}

/* Instagram grid (base) */
:root { --ig-item-width: 200px; --ig-gap: 16px; }
#instagram-feed { margin: 2rem auto 0; }
#instagram-feed h3 {
  margin-bottom: .75rem; font-family: "Playfair Display", serif;
  color: rgba(var(--secondary), 1); letter-spacing: 1px;
}
.ig-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ig-gap); justify-items: center; align-items: start;
}
.ig-item { width: 100%; max-width: 300px; }
.ig-item.reel, .ig-item.post { aspect-ratio: auto; }
.ig-item .instagram-media {
  width: 100% !important; margin: 0 auto !important;
  border: none !important; box-shadow: none !important; background: transparent !important;
}
.ig-item .instagram-media iframe { width: 100% !important; height: 100% !important; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ig-grid { grid-template-columns: 1fr; } }

/* ===================== 3D Cylinder ===================== */
.gallery-circle {
  perspective: 1200px;
  height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-container {
  height: 520px;
  width: 100%;
  max-width: 980px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* smooth spin */
}

.gallery-row {
  position: absolute;
  top: 50%; left: 50%;
  transform-style: preserve-3d;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
}

.gallery-row img {
  width: 180px; height: 240px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  cursor: pointer;
}

/* Cylinder buttons */
.cylinder-wrapper {
  display: flex; align-items: center; justify-content: center; position: relative;
}
.cylinder-btn {
  background: rgba(var(--secondary), 0.3);
  border: 2px solid rgba(var(--secondary), 0.8);
  color: var(--text);
  font-size: 2rem;
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}
.cylinder-btn:hover { background: rgba(var(--secondary), 0.7); transform: scale(1.15); }
.cylinder-btn.left  { position: absolute; left: -60px; }
.cylinder-btn.right { position: absolute; right: -60px; }

/* Label under cylinder */
.circle-label-container {
  margin-top: 1.5rem;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: rgba(var(--secondary), 1);
}
