/* ═══════════════════════════════════════════════════
   am.azing.dev — Dark Gray & Black Minimalist Theme
   ═══════════════════════════════════════════════════ */

/* ── WebGL 3D Canvas ───────────────────────────────── */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Blur glow image (existing blur.png) */
.blur-glow {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(600px, 90vw, 1200px);
  height: auto;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
  mix-blend-mode: screen;
}

/* ── Hero Content ──────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: auto;
  user-select: none;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: -0.25em;
  opacity: 0;
  animation: fadeSlideUp 1s ease-out 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeSlideUp 1s ease-out 0.6s forwards;
  transition: text-shadow 0.4s ease;
}

.hero-title .text-bright {
  color: var(--text-primary);
}

.hero-title .text-dot {
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.hero-title:hover .text-dot {
  color: var(--accent-white);
}

.hero-swigline {
  display: block;
  margin: 0.5rem auto 0;
  width: clamp(250px, 40vw, 420px);
  height: auto;
  opacity: 0;
  animation: fadeSlideUp 1s ease-out 0.9s forwards;
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-top: 1.5rem;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeSlideUp 1s ease-out 1.2s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  animation: fadeSlideUpCentered 1s ease-out 1.8s forwards;
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes fadeSlideUpCentered {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Content Sections ──────────────────────────────── */
.content-section {
  position: relative;
  z-index: 5;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glass Cards ───────────────────────────────────── */
.glass-card {
  background: rgba(14, 14, 17, 0.6);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border: 2px solid var(--frost-border);
  border-radius: 20px;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  border-color: var(--frost-border-hover);
}

/* ── Section Headers & Top Border Badge ────────────── */
.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gray-mid);
  margin-bottom: 1rem;
}

.glass-card>.section-label {
  margin: 0 0 0 -12px;
  padding: 0 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.3);
  text-indent: 0.25em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.glass-card:hover>.section-label {
  color: rgba(255, 255, 255, 0.4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-body {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--frost-text);
  max-width: 640px;
}

/* ── About Section ─────────────────────────────────── */
.about-decal {
  position: absolute;
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  width: clamp(400px, 150%, 1000px);
  height: auto;
  opacity: 0.09;
  /* Increased visibility */
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  /* Compress contrast and boost brightness to turn black shadows and white highlights into an even gray */
  filter: grayscale(100%) contrast(0.4) brightness(0.75);
}

.glass-card>*:not(.about-decal) {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--frost-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: rgba(10, 10, 11, 0.75);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--frost-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ── Projects Section ──────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(14, 14, 17, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--frost-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--frost-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-card .project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--frost-text);
}

.project-card .project-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--frost-border);
  color: var(--text-secondary);
}

/* ── Contact Section ───────────────────────────────── */
.contact-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--frost-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--frost-border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--frost-border);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── Divider between sections ──────────────────────── */
.crystal-divider {
  position: relative;
  z-index: 5;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.crystal-divider::before {
  content: "";
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.6;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
}