:root {
  --bg: url("./bg.png");
  --fg: #ffffff;
  --muted: #f1f1f1;
  --card: #0a0a0a;
  --border: #141414;
  --opacity: 0.9;
}

/* RESET + FIX WHITE BACKGROUND */
* {
  box-sizing: border-box;
}

html, body {
  background: #000;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg);
  line-height: 1.6;
}

/* PARALLAX BACKGROUND (FIXED) */
.parallax-bg {
  position: fixed;
  top: -30vh;
  left: 0;
  width: 100%;
  height: 160vh;

  background: var(--bg) center / cover no-repeat;

  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* PAGE FADE */
.page {
  position: relative;
  z-index: 1;

  opacity: 0;
  animation: pageFade 1.2s ease forwards;
}


@keyframes pageFade {
  to { opacity: 1; }
}

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

/* HERO */
.hero {
  text-align: center;
  padding-bottom: 96px;
}

.hero img {
  width: 196px;
  margin-bottom: -30px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
}

/* SECTIONS */
section {
  margin-bottom: 80px;
}

section h2 {
  font-size: 28px;
  font-weight: 600;
}

/* GRID */
.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/* CARDS */
.card,
.contact-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.5s cubic-bezier(.2,.8,.2,1),
    opacity 0.5s ease,
    border-color 0.5s ease;
}

/* HOVER */
.card:hover,
.contact-item:hover {
  border-color: rgba(255,255,255,0.15);
}

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

/* FOOTER */
footer {
  text-align: center;
  padding: 32px;
  background: #000;
  font-size: 14px;
}

/* APPLE-LIKE REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(.2,.8,.2,1);
}

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

/* TOUCH FIX */
@media (hover: none) {
  .card:hover,
  .contact-item:hover {
    transform: none;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
}
