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

:root {
  --bg: #08070f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-nav: rgba(15, 10, 30, 0.6);
  --text: #e0e0e0;
  --text-muted: #999;
  --accent: #c8c8c8;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shine: rgba(255, 255, 255, 0.12);
  --hover: #ffffff;
  --glow-1: rgba(139, 92, 246, 0.18);
  --glow-2: rgba(217, 70, 239, 0.12);
  --glow-3: rgba(99, 102, 241, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient background gradients */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 5% 15%, rgba(139, 92, 246, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 95% 85%, rgba(217, 70, 239, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 35% 40% at 25% 75%, rgba(192, 38, 211, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 10, 30, 0.45);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hover);
}

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

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--hover);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ===== Main Content ===== */
.main {
  padding-top: 90px;
  min-height: 100vh;
}

/* ===== Gallery Grid ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Before/After Comparison ===== */
.comparison {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 4 / 5;
  padding: 6px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comparison:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(139, 92, 246, 0.12),
    0 0 60px rgba(217, 70, 239, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.comparison img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  pointer-events: none;
  border-radius: 9px;
}

.comparison .after-img {
  clip-path: inset(0 50% 0 0);
}

.comparison .before-img {
  z-index: 1;
  clip-path: inset(0 0 0 50%);
}

/* Slider line */
.comparison .slider-line {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Slider handle */
.comparison .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.7);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.comparison .slider-handle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Labels */
.comparison .label {
  position: absolute;
  bottom: 12px;
  z-index: 5;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.comparison .label-before {
  right: 16px;
}

.comparison .label-after {
  left: 16px;
}

/* ===== About Page ===== */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 3rem 2rem 2rem;
  overflow: clip;
  margin-bottom: 1.5rem;
}

.about-hero-inner {
  position: relative;
  display: flex;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}

.about-photo-wrapper {
  position: relative;
  min-width: 280px;
}

/* Gradient glow behind photo */
.about-photo-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: -10%;
  bottom: -10%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(217, 70, 239, 0.15));
  border-radius: 12px;
  filter: blur(30px);
  pointer-events: none;
}

.about-photo {
  width: 280px;
  height: 350px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-card);
  position: relative;
  z-index: 1;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--glass-shine);
}

.about-hero-text h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--hover);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.about-hero-text .subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-hero-text .divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  margin-bottom: 1.5rem;
  border-radius: 1px;
}

.about-hero-text p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 480px;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 2.5rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2.5rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #c4b5fd, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* Content blocks */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-block {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-block:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 var(--glass-shine);
}

.about-block h2 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  color: var(--hover);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-block h2 .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #a78bfa;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-block p,
.about-block li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.about-block ul {
  list-style: none;
  padding: 0;
}

.about-block ul li {
  padding: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.about-block ul li:last-child {
  border-bottom: none;
}

.about-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #a78bfa;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ===== Contact Page ===== */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.contact-section h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--hover);
}

.contact-section .contact-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-link:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 25px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 var(--glass-shine);
}

.contact-link svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  fill: var(--text-muted);
  transition: fill 0.2s ease;
}

.contact-link:hover svg {
  fill: #c4b5fd;
}

.contact-link-text {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.contact-link-text .link-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.contact-link-text .link-value {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-link:hover .link-value {
  color: var(--hover);
}

/* Email row */
.contact-email-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-email-row svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  fill: none;
  stroke: var(--text-muted);
}

.contact-email-row .contact-link-text {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.08);
}

.copy-btn.copied {
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
  background: rgba(74, 222, 128, 0.06);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1.2rem 0.6rem;
    position: relative;
  }

  .hamburger {
    display: flex;
    top: 0.9rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 4.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.85rem;
  }

  .nav-links a::after {
    display: none;
  }

  .main {
    padding-top: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }

  .about-hero {
    min-height: auto;
    padding: 2.5rem 1.2rem 1rem;
  }

  .about-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-photo-wrapper {
    min-width: auto;
  }

  .about-photo-wrapper::before {
    top: 5%;
    left: 5%;
    right: -5%;
    bottom: -5%;
  }

  .about-photo {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }

  .about-hero-text .divider {
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero-text h1 {
    font-size: 1.8rem;
  }

  .about-hero-text p {
    max-width: 100%;
  }

  .about-stats {
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    margin: 0 1.2rem 2rem;
    max-width: none;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .about-content {
    padding: 0 1.2rem 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-section {
    padding: 3rem 1.2rem;
  }
}
