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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background: #0a0a12;
  color: #e2e0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

body.bg-3d #bg3d {
  opacity: 1;
}

body.bg-3d .hero,
body.bg-3d section,
body.bg-3d footer {
  background: rgba(7, 7, 14, 0.72);
  position: relative;
  z-index: 1;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #f1f0ff;
}

@media (max-width: 768px) {
  .section-header h2 { font-size: 28px; }
  .section-header { margin-bottom: 40px; }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #9b98b3;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a78bfa;
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #c4b5fd; }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.08);
  color: #c4b5fd;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.bg-toggle:hover {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.16);
}

.bg-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5e5b7a;
  transition: background 0.2s, box-shadow 0.2s;
}

body.bg-3d .bg-toggle-dot {
  background: #a78bfa;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.9);
}

@media (max-width: 768px) {
  .bg-toggle { padding: 8px 12px; font-size: 12px; }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #e2e0f0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #12111f;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #0a0a12 0%, #14102b 50%, #0f0a1f 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 560px; }

.badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: #f1f0ff;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: #9b98b3;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #a78bfa;
  border: 2px solid rgba(167, 139, 250, 0.3);
}

.btn-secondary:hover {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
}

.hero-social {
  display: flex;
  gap: 16px;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #9b98b3;
  transition: all 0.2s;
}

.hero-social a:hover {
  border-color: #a78bfa;
  color: #c4b5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25), rgba(167,139,250,0.1), transparent);
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-image-wrapper img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  padding: 4px;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-image-wrapper { width: 260px; height: 260px; }
  .hero-text h1 { font-size: 40px; }
  .hero { min-height: auto; padding: 120px 0 80px; }
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: #0d0d18;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: #b0aec8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: #807da3;
  font-weight: 500;
  margin-top: 4px;
}

.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 20px;
  padding: 32px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}

.info-item:last-child { border-bottom: none; }

.info-label {
  font-weight: 600;
  color: #f1f0ff;
}

.info-item span:last-child {
  color: #9b98b3;
}

@media (max-width: 768px) {
  .about { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Studio --- */
.studio {
  padding: 100px 0;
  background: #0d0d18;
}

.studio-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(167,139,250,0.04));
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 24px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.studio-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f0ff;
  margin-bottom: 16px;
}

.studio-content p {
  font-size: 15px;
  color: #b0aec8;
  line-height: 1.7;
  margin-bottom: 24px;
}

.studio-logo {
  flex-shrink: 0;
}

.studio-logo-placeholder {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
  .studio { padding: 60px 0; }
  .studio-card { flex-direction: column; text-align: center; padding: 32px; gap: 32px; }
  .studio-card .btn { width: 100%; }
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background: #0a0a12;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
  background: rgba(124, 58, 237, 0.04);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 16px;
  color: #a78bfa;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f1f0ff;
}

.service-card p {
  font-size: 14px;
  color: #9b98b3;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .services { padding: 60px 0; }
}

/* --- Resume --- */
.resume {
  padding: 100px 0;
  background: #0d0d18;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.resume-section { margin-bottom: 40px; }

.resume-section h3,
.resume-right h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f1f0ff;
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(167, 139, 250, 0.2);
}

.timeline-item {
  margin-bottom: 28px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: 3px solid #0d0d18;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.3);
}

.timeline-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.timeline-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #f1f0ff;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: #9b98b3;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.skill-header span:first-child { font-weight: 600; color: #e2e0f0; }
.skill-header span:last-child { font-weight: 600; color: #a78bfa; }

.skill-bar {
  height: 8px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 1s ease;
}

@media (max-width: 768px) {
  .resume { padding: 60px 0; }
  .resume-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Portfolio --- */
.portfolio {
  padding: 100px 0;
  background: #0a0a12;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: #9b98b3;
  font-family: inherit;
}

.filter-btn:hover { border-color: rgba(167, 139, 250, 0.5); color: #c4b5fd; }

.filter-btn.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-item {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167, 139, 250, 0.1);
  transition: all 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
}

.portfolio-item a { display: block; }

.portfolio-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-img img { transform: scale(1.08); }

.overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 18, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  color: #c4b5fd;
}

.portfolio-item:hover .overlay-icon { opacity: 1; }

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f0ff;
  margin-bottom: 4px;
}

.portfolio-info span {
  font-size: 13px;
  color: #a78bfa;
  font-weight: 500;
}

.portfolio-note {
  text-align: center;
  color: #807da3;
  font-size: 14px;
  margin-top: 40px;
  font-style: italic;
}

@media (max-width: 768px) {
  .portfolio { padding: 60px 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  background: #0d0d18;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
  background: rgba(124, 58, 237, 0.03);
}

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

.testimonial-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  padding: 2px;
}

.testimonial-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f0ff;
}

.testimonial-header span {
  font-size: 13px;
  color: #9b98b3;
}

.testimonial-card p {
  font-size: 14px;
  color: #b0aec8;
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 768px) {
  .testimonials { padding: 60px 0; }
  .testimonials-slider { grid-template-columns: 1fr; }
}

/* --- Clients --- */
.clients {
  padding: 80px 0;
  background: #0a0a12;
  overflow: hidden;
}

.clients-track-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.clients-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: scrollClients 30s linear infinite;
}

.clients-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.4;
  transition: all 0.3s;
  flex-shrink: 0;
}

.clients-track-wrapper:hover .clients-track {
  animation-play-state: paused;
}

.clients-track a:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.clients-track img { max-height: 72px; width: auto; }

@keyframes scrollClients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: #0d0d18;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info-side p {
  font-size: 16px;
  color: #b0aec8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9b98b3;
  font-size: 14px;
}

.contact-detail svg { color: #a78bfa; flex-shrink: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 12px;
  font-family: inherit;
  background: rgba(255,255,255,0.03);
  color: #e2e0f0;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #5e5b7a;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
  color: #e2e0f0;
}

.contact-form select option {
  background: #12111f;
  color: #e2e0f0;
}

.contact-form .btn-primary { align-self: flex-start; }

@media (max-width: 768px) {
  .contact { padding: 60px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .btn-primary { width: 100%; }
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(167, 139, 250, 0.08);
  background: #0a0a12;
}

.footer p {
  font-size: 14px;
  color: #5e5b7a;
}

.portfolio-item.hidden {
  display: none;
}

/* --- Tech / Tools --- */
.tech {
  padding: 100px 0;
  background: #0d0d18;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.1);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
}

.tech-item:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-3px);
  background: rgba(124, 58, 237, 0.05);
}

.tech-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(167, 139, 250, 0.08);
  color: #a78bfa;
}

.tech-item span {
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
}

@media (max-width: 768px) {
  .tech { padding: 60px 0; }
  .tech-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 16px; }
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #12111f;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(0,0,0,0.7);
}

.modal-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.modal-gallery {
  position: relative;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(10, 10, 18, 0.7);
  color: #e2e0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: all 0.2s;
}

.modal-nav:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

.modal-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-dot.active {
  background: #a78bfa;
  transform: scale(1.2);
}

.modal-nav.hidden,
.modal-dots.hidden {
  display: none;
}

.modal-body {
  padding: 28px;
  position: relative;
}

.modal-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f1f0ff;
  margin-bottom: 10px;
}

.modal-body p {
  font-size: 14px;
  color: #b0aec8;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* --- FAQ --- */
.faq {
  padding: 100px 0;
  background: #0a0a12;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #e2e0f0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 16px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(167, 139, 250, 0.04);
}

.faq-arrow {
  flex-shrink: 0;
  color: #a78bfa;
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: #9b98b3;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq { padding: 60px 0; }
}

/* --- Discord Counter --- */
.discord-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #9b98b3;
  background: rgba(88, 101, 242, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-counter svg {
  color: #5865f2;
}

.discord-counter strong {
  color: #e2e0f0;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.studio-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
