* {
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   Navigasyon — Hamburger Menü
   ═══════════════════════════════════════════════════════════ */

.menu-toggle {
  position: fixed;
  top: 1.8rem;
  right: 1.8rem;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-line {
  display: block;
  width: 2rem;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* X dönüşümü */
.menu-toggle.open .menu-line:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle.open .menu-line:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Menü Overlay ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.menu-link {
  display: block;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 2.4rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: opacity 0.3s, transform 0.3s;
}

.menu-link:hover {
  opacity: 0.6;
  transform: scale(1.05);
}

@media (max-width: 560px) {
  .menu-toggle {
    top: 1.2rem;
    right: 1.2rem;
  }

  .menu-link {
    font-size: 1.8rem;
  }
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000000;
}

body {
  --bg-color: #000000;
  --fg-color: #ffffff;
  --panel-bg: #000000;
  background: var(--bg-color);
  color: var(--fg-color);
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body.theme-dark {
  --bg-color: #000000;
  --fg-color: #f1f1f1;
  --panel-bg: #000000;
}

.page {
  width: 100%;
  min-height: 100%;
}

.hero-screen {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--bg-color);
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
}

#logo-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.model-status {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--fg-color);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--fg-color);
  font: 500 0.85rem/1.2 "Space Grotesk", "Segoe UI", sans-serif;
  z-index: 55;
}

.portfolio-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}

.portfolio-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(520px, 80%);
  margin-left: clamp(1.5rem, 7vw, 6rem);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.portfolio-screen.portfolio-visible .portfolio-copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #ffffff8c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-copy h1 {
  margin: 0;
  max-width: 10ch;
  color: #ffffff;
  font-size: 5.2rem;
  font-weight: 650;
  line-height: 0.94;
}

.portfolio-intro {
  max-width: 31rem;
  margin: 1.4rem 0 0;
  color: #ffffffb8;
  font-size: 1.08rem;
  line-height: 1.65;
}

.portfolio-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 2rem;
  padding: 0 1.1rem;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.portfolio-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000000;
}

.magicui-marquee-3d {
  position: relative;
  width: 100%;
  height: 122vh;
  height: 122svh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  perspective: 300px;
}

.magicui-marquee-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transform:
    translateX(-150px)
    translateY(-12vh)
    translateZ(-100px)
    rotateX(20deg)
    rotateY(-10deg)
    rotateZ(20deg);
  transition:
    opacity 0.7s ease 0.1s,
    transform 0.7s ease 0.1s;
}

.portfolio-screen.portfolio-visible .magicui-marquee-group {
  opacity: 1;
  transform:
    translateX(-150px)
    translateY(-15vh)
    translateZ(-100px)
    rotateX(20deg)
    rotateY(-10deg)
    rotateZ(20deg);
}

.magicui-marquee {
  --gap: 1.25rem;
  position: relative;
  display: flex;
  flex-shrink: 0;
  gap: var(--gap);
  overflow: hidden;
  user-select: none;
}

.magicui-vertical {
  width: 12.4rem;
  height: 146vh;
  flex-direction: column;
}

.magicui-marquee-content {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-around;
  gap: var(--gap);
  min-height: 100%;
  animation: marquee-vertical var(--duration, 20s) linear infinite;
}

.reverse .magicui-marquee-content {
  animation-direction: reverse;
}

.pause-on-hover:hover .magicui-marquee-content {
  animation-play-state: paused;
}

.review-card {
  position: relative;
  width: 12.4rem;
  min-height: 13.6rem;
  margin: 0;
  padding: 1.1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #0307121a;
  border-radius: 0.75rem;
  background: #fffffff7;
  color: #111827;
  box-shadow: 0 10px 24px #00000024;
  text-decoration: none;
}

.review-card:hover {
  background: #ffffff;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.avatar-image {
  object-fit: cover;
  box-shadow: 0 0 18px #e1306c66;
}

.avatar-green {
  color: #9bdc54;
  background: linear-gradient(135deg, #e7f58b, #32c86f);
}

.avatar-blue {
  color: #3f7bec;
  background: linear-gradient(135deg, #21d4fd, #6536e7);
}

.avatar-rose {
  color: #d566bd;
  background: linear-gradient(135deg, #ff8aa2, #6a4ff6);
}

.avatar-gold {
  color: #efd46a;
  background: linear-gradient(135deg, #fff59b, #6ee7b7);
}

.review-card figcaption {
  color: #111827;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.05;
}

.review-card p {
  margin: 0.16rem 0 0;
  color: #11182773;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.review-card blockquote {
  margin: 0.75rem 0 0;
  color: #1f2937;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.32;
}

.fade {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.fade-top {
  inset: 0 0 auto;
  height: 28%;
  background: linear-gradient(#000000 0%, #00000000 100%);
}

.fade-bottom {
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(#00000000 0%, #000000 100%);
}

.fade-left {
  inset: 0 auto 0 0;
  width: 25%;
  background: linear-gradient(90deg, #000000 0%, #00000000 100%);
}

.fade-right {
  inset: 0 0 0 auto;
  width: 25%;
  background: linear-gradient(90deg, #00000000 0%, #000000 100%);
}

/* ── Text 3D Flip (MagicUI-style) ─────────────── */

.text-3d-flip {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  perspective: 500px;
  transform-style: preserve-3d;
}

.text-3d-flip .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-3d-flip .word {
  display: inline-flex;
  transform-style: preserve-3d;
}

.text-3d-flip-char {
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
}

.text-3d-flip-char .face-front,
.text-3d-flip-char .face-back {
  display: inline-block;
  backface-visibility: hidden;
}

.text-3d-flip-char .face-back {
  position: absolute;
  top: 0;
  left: 0;
}

.whitespace-pre {
  white-space: pre;
}

@keyframes marquee-vertical {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-100% - var(--gap)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .magicui-marquee-content {
    animation-play-state: paused;
  }

  .text-3d-flip-char {
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  .portfolio-copy h1 {
    font-size: 4.25rem;
  }

  .magicui-marquee-3d {
    width: 100%;
  }

  .magicui-vertical,
  .review-card {
    width: 10.5rem;
  }

  .review-card {
    min-height: 12rem;
  }
}

@media (max-width: 900px) {
  .portfolio-screen {
    grid-template-columns: 1fr;
  }

  .portfolio-copy {
    width: min(640px, calc(100% - 2rem));
    margin: 0 auto;
    padding-top: 4rem;
  }

  .portfolio-copy h1 {
    max-width: 12ch;
    font-size: 3.4rem;
  }

  .portfolio-preview {
    min-height: 62vh;
    min-height: 62svh;
  }

  .magicui-marquee-3d {
    width: 100%;
    height: 78vh;
    height: 78svh;
  }

  .magicui-vertical {
    height: 96vh;
  }
}

@media (max-width: 560px) {
  .portfolio-copy h1 {
    font-size: 2.6rem;
  }

  .portfolio-intro {
    font-size: 0.96rem;
  }

  .magicui-marquee-3d {
    width: 100%;
    height: 68vh;
    height: 68svh;
  }

  .magicui-marquee-group,
  .portfolio-screen.portfolio-visible .magicui-marquee-group {
    transform:
      translateX(-118px)
      translateY(-8vh)
      translateZ(-100px)
      rotateX(20deg)
      rotateY(-10deg)
      rotateZ(20deg);
  }

  .magicui-vertical,
  .review-card {
    width: 8.8rem;
  }

  .review-card {
    min-height: 10.5rem;
    padding: 0.78rem;
  }
}

/* ── Video Text (MagicUI-style) ────────────────────────────── */

.video-text-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
}

.video-text-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.video-text-mask {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  mask-image: var(--mask-url);
  -webkit-mask-image: var(--mask-url);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.video-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.video-slide.active {
  opacity: 1;
}

.video-text-footer {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  align-self: flex-start;
}

.video-text-footer h2 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 900px) {
  .video-text-mask {
    height: 40vh;
    min-height: 200px;
  }

  .video-text-footer h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 560px) {
  .video-text-mask {
    height: 30vh;
    min-height: 150px;
  }
}

/* ═══════════════════════════════════════════════════════════
   4. SAYFA — Projeler Galerisi
   ═══════════════════════════════════════════════════════════ */

.projects-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: 8rem 2rem 5rem;
  gap: 2.5rem;
}

/* ── Başlık ── */
.projeler-title {
  position: absolute;
  top: 2rem;
  left: clamp(2rem, 7vw, 6rem);
  margin: 0;
  color: #ffffff;
  font-size: 5.2rem;
  font-weight: 650;
  line-height: 0.94;
  z-index: 10;
}

/* ── Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 1280px;
  width: 100%;
}

/* ── Kart ── */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  outline: none;
  /* Scroll fade-in başlangıcı */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    box-shadow 0.4s ease;
}

.project-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:focus-visible {
  box-shadow: 0 0 0 3px #ffffff88;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.08);
}

/* ── Granit Overlay ── */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Granit karanlık katmanı */
  background:
    linear-gradient(
      145deg,
      rgba(18, 14, 12, 0.88) 0%,
      rgba(35, 28, 24, 0.82) 40%,
      rgba(10, 8, 7, 0.93) 100%
    );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Granit noise dokusu */
.project-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Granit mineral parlama çizgileri */
.project-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    112deg,
    transparent 0px,
    transparent 18px,
    rgba(255, 255, 255, 0.02) 18px,
    rgba(255, 255, 255, 0.02) 19px,
    transparent 19px,
    transparent 34px,
    rgba(255, 255, 255, 0.035) 34px,
    rgba(255, 255, 255, 0.035) 35px
  );
  pointer-events: none;
}

.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay {
  opacity: 1;
}

/* ── Proje Adı ── */
.project-name {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 1rem;
  transform: translateY(14px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* İnce beyaz alt çizgi */
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.45rem;
}

.project-card:hover .project-name,
.project-card:focus-visible .project-name {
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .projeler-title {
    font-size: 4.25rem;
    top: 1.5rem;
    left: clamp(1.5rem, 5vw, 4rem);
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .projeler-title {
    font-size: 3.4rem;
    top: 1.25rem;
    left: 1.5rem;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .project-card {
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .project-name {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
  }

  .projeler-title {
    font-size: 2.6rem;
    top: 1rem;
    left: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.lightbox-open {
  opacity: 1;
}

.lightbox-inner {
  position: relative;
  width: min(90vw, 1100px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.lightbox-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: #ffffff88;
  font-family: 'Space Grotesk', sans-serif;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

  #lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#lightbox-img.img-fade {
  opacity: 0;
  transform: scale(0.97);
}

/* Kapat butonu */
.lightbox-close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  z-index: 1001;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff88;
}

/* Ok butonları */
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff66;
}

.lightbox-prev {
  left: 1.2rem;
}

.lightbox-next {
  right: 1.2rem;
}

@media (max-width: 560px) {
  .lightbox-arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.4rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   5. SAYFA — İletişim + Flickering Grid + Magic Cards
   ═══════════════════════════════════════════════════════════ */

.contact-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

/* ── Flickering Grid (MagicUI) ── */
.flickering-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(12, 1fr);
  opacity: 0.7;
  pointer-events: none;
}

.flickering-cell {
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  animation: flicker var(--fd, 2.4s) var(--dd, 0s) infinite alternate ease-in-out;
}

@keyframes flicker {
  0% {
    opacity: 0.04;
    background: rgba(255, 255, 255, 0.03);
  }
  100% {
    opacity: var(--fo, 0.7);
    background: rgba(255, 255, 255, var(--fb, 0.18));
  }
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  padding-top: 2rem;
  width: 100%;
  max-width: 900px;
}

.contact-title {
  margin: 0;
  color: #ffffff;
  font-size: 5.2rem;
  font-weight: 650;
  line-height: 0.94;
}

/* ── Magic Cards (MagicUI spotlight hover) ── */
.magic-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  padding: 0 2rem;
}

.magic-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-opacity: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1.8rem;
  min-width: 210px;
  flex: 1;
  max-width: 260px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Border glow via pseudo-element */
.magic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: var(--spotlight-opacity);
}

/* Spotlight glow overlay */
.magic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  opacity: var(--spotlight-opacity);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.magic-card:hover {
  transform: translateY(-6px);
}

.magic-card-icon {
  font-size: 1.8rem;
  opacity: 0.65;
  transition: opacity 0.3s;
}

.magic-card-logo {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  border-radius: 50%;
}

.magic-card:hover .magic-card-icon {
  opacity: 1;
}

.magic-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
}

.magic-card-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

@media (max-width: 900px) {
  .contact-title {
    font-size: 3.8rem;
  }

  .magic-cards {
    flex-direction: column;
    align-items: center;
  }

  .magic-card {
    max-width: 360px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .contact-title {
    font-size: 2.8rem;
  }

  .contact-inner {
    gap: 2.5rem;
    padding-top: 1.5rem;
  }

  .magic-card {
    padding: 1.5rem 1.2rem;
  }
}
