/* ============================================================================
   Daniyar Yegeubay — Portfolio
   Apple-inspired: generous space, soft motion, deep blacks, frosted glass.
   ========================================================================== */

:root {
  --bg:        #000000;
  --bg-soft:   #0a0a0b;
  --surface:   #141416;
  --surface-2: #1c1c1f;
  --border:    rgba(255, 255, 255, 0.10);
  --text:      #f5f5f7;
  --text-dim:  #a1a1a6;
  --text-mute: #6e6e73;
  --accent:    #ffffff;
  --max:       1120px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:     56px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------------------------------------------------------------- NAV ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0);
  backdrop-filter: saturate(180%) blur(0px);
  -webkit-backdrop-filter: saturate(180%) blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              border-color .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }

/* --------------------------------------------------------------- HERO ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  background: url("assets/rock-bg.png") center/cover no-repeat;
  will-change: transform;
  transform: scale(1.08);
  z-index: 0;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.9) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 820px;
}
.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #c7c7cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: clamp(16px, 2.2vw, 21px);
  color: var(--text-dim);
}
.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll-dot {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.8);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  70%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* -------------------------------------------------------------- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { background: #e8e8ea; }
.btn--ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.14); }

/* ------------------------------------------------------------- SECTIONS --- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 24px;
}
.section__head { text-align: center; margin-bottom: 64px; }
.section__title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 20px);
}

/* ---------------------------------------------------------------- GRID ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px;
  transition: transform .5s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); }
.card__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity .4s var(--ease);
}
.card:hover .card__glow { opacity: 1; }
.card__icon {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  border-radius: 21px;
  margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,0.85);
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: scale(1.04); }
.card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .4px;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.card__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card__name {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card__tagline {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 92%;
}
.card__arrow {
  position: absolute;
  top: 26px; right: 26px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__arrow { background: rgba(255,255,255,0.18); transform: translate(2px,-2px); }
.card__arrow svg { width: 16px; height: 16px; stroke: #fff; }

/* --------------------------------------------------------------- ABOUT ---- */
.section--about { padding-top: 60px; }
.about { max-width: 960px; margin: 0 auto; }
.about__head { max-width: 760px; }
.about__head .section__title { text-align: left; }
.about__lead {
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-top: 22px;
}

.about__story { max-width: 760px; margin-top: 44px; }
.about__story p { color: var(--text-dim); font-size: 18px; line-height: 1.65; }
.about__story p + p { margin-top: 18px; }

.about__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.about__card {
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.about__card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.about__card-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.about__card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* ------------------------------------------------------------- CONTACT ---- */
.section--contact { text-align: center; }
.contact__links {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* -------------------------------------------------------------- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- MOBILE ---- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .about__highlights { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .nav__links { gap: 18px; }
  .section { padding: 100px 22px; }
}
@media (max-width: 520px) {
  .nav__links a:not(:last-child) { display: none; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
