:root {
  --bg-dark: #000000;
  --bg-card: #0a0a0a;
  --text-white: #ffffff;
  --text-gray: #888888;
  --border: rgba(255, 255, 255, 0.1);
  --nav-blur: 12px;
  --accent-white: #ffffff;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.user-welcome {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.user-welcome b { color: #fff; margin-left:10px; }

.btn-text:hover { color: #fff; }

.btn-solid {
  background: #fff;
  border: none;
  color: #000;
  padding: 8px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-solid:hover { opacity: 0.85; }

/* Hero */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-bg-blob {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
}

.hero-blob-1 {
  top: -20%;
  left: 50%;
  transform: translateX(-50%) rotate(50deg);
  height: 120%;
  width: auto;
  max-width: none;
  filter: drop-shadow(20px 20px 50px rgba(0,0,0,0.5));
}

@keyframes floatBlob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-40px) rotate(8deg);
  }
}

.hero h1 {
  font-size: 5rem;
  font-weight: 950;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-gray);
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
  background: #000;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 80px;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.price-card {
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 5;
  text-align: left;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.price-card.popular {
  border: 1px solid #fff;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-card li {
  color: var(--text-gray);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.price-card li::before {
  content: '✓';
  margin-right: 12px;
  color: #fff;
}

.btn-buy {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.price-card.popular .btn-buy, .btn-buy:hover {
  background: #fff;
  color: #000;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: #000;
  text-align: center;
  position: relative;
}

.features-bg-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140vw;
  max-width: none;
  min-width: 1000px;
  height: auto;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: default;
  flex: 0 1 calc(33.33% - 20px);
  min-width: 250px;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: #fff;
  color: #000;
  transform: rotate(5deg) scale(1.1);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1000px) {
  .feature-card {
    flex: 0 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .feature-card {
    flex: 0 1 100%;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-container {
  background: #0d0d0d;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 40px;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-header h3 { font-size: 1.8rem; }
.close-modal {
  background: none; border: none; color: var(--text-gray);
  font-size: 2rem; cursor: pointer;
}

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; margin-bottom: 8px; color: var(--text-gray);
  font-size: 0.85rem; font-weight: 600;
}

.form-group input {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 12px; border-radius: 6px; color: #fff; font-family: inherit;
}

.form-group input:focus { border-color: rgba(255,255,255,0.5); outline: none; }

.btn-full { width: 100%; padding: 14px; margin-top: 10px; }

.form-switch {
  margin-top: 24px; text-align: center; font-size: 0.9rem; color: var(--text-gray);
}

.form-switch a { color: #fff; text-decoration: none; font-weight: 600; }

footer {
  padding: 80px 0; text-align: center; color: var(--text-gray);
  font-size: 0.85rem; border-top: 1px solid var(--border);
}

.pricing-bg-blob {
  position: absolute;
  top: 60%;
  left: 10%;
  transform: translateY(-50%);
  width: 1000px;
  height: auto;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    gap: 20px;
    z-index: 998;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .hero h1 { font-size: 2.5rem; }
}

/* Profile Separated Page Styles */
.profile-main {
  padding: 150px 0;
  min-height: 80vh;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 60px;
  border-radius: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}

#profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 1.5rem;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.profile-info-row span { color: var(--text-gray); }
.profile-info-row b { font-size: 1.1rem; }

/* ===================== GALLERY ===================== */
.gallery-section {
  padding: 100px 0 80px;
  background: #000;
  text-align: center;
}

.gallery-subtitle {
  color: var(--text-gray);
  font-size: 1.05rem;
  margin-top: -50px;
  margin-bottom: 50px;
}

.gallery-slider {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main track wrapper */
.gallery-track-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #080808;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(55px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-55px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideToLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-55px); }
}
@keyframes slideToRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(55px); }
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide.anim-in-right  { animation: slideFromRight 0.5s cubic-bezier(.4,0,.2,1) forwards; }
.gallery-slide.anim-in-left   { animation: slideFromLeft  0.5s cubic-bezier(.4,0,.2,1) forwards; }
.gallery-slide.anim-out-left  { opacity: 1; animation: slideToLeft  0.5s cubic-bezier(.4,0,.2,1) forwards; }
.gallery-slide.anim-out-right { opacity: 1; animation: slideToRight 0.5s cubic-bezier(.4,0,.2,1) forwards; }

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  z-index: 10;
}

.gallery-arrow:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

/* Fullscreen button */
.gallery-fullscreen-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  z-index: 10;
  font-family: inherit;
}

.gallery-fullscreen-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 28px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 100px;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #0a0a0a;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.gallery-thumb span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 4px;
  transition: color 0.25s;
}

.gallery-thumb:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.gallery-thumb.active {
  border-color: #fff;
}

.gallery-thumb.active span {
  color: #fff;
}

/* Reviews */
.reviews-section {
  padding: 110px 0 80px;
  background: #030303;
  position: relative;
}

.reviews-bg-blob {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-25%, -50%) rotate(55deg);
  width: auto;
  height: 120%;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.reviews-section .section-title {
  text-align: center;
}

.reviews-subtitle {
  color: var(--text-gray);
  text-align: center;
  max-width: 760px;
  margin: 14px auto 42px;
  font-size: 1rem;
}

.reviews-slider {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.reviews-track-wrapper {
  overflow: hidden;
  padding: 14px 0 24px;
}

.reviews-track {
  display: flex;
  gap: 18px;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 250px;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}

.review-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), transparent 45%);
  pointer-events: none;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #fff;
  margin-bottom: 18px;
}

.review-text {
  color: rgba(255,255,255,0.76);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-top: 0;
}

.reviews-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.reviews-arrow:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  transform: scale(1.08);
}

@media (max-width: 1000px) {
  .reviews-slider {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reviews-arrow {
    display: none;
  }

  .review-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 700px) {
  .review-card {
    flex-basis: 100%;
    min-height: auto;
  }

  .reviews-section {
    padding: 90px 0 70px;
  }
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-img-wrap {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.lightbox.open .lightbox-img-wrap {
  transform: scale(1);
}

.lightbox-img-wrap img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  display: block;
  transition: opacity 0.3s ease;
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1) rotate(90deg);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  letter-spacing: 0.1em;
}
