/* ============================================
   AWARD-WINNING COMING SOON — DESIGN SYSTEM
   ============================================ */

:root {
  --black: #0a0a0a;
  --white: #f0ece4;
  --white-dim: rgba(240, 236, 228, 0.5);
  --white-muted: rgba(240, 236, 228, 0.2);
  --white-ghost: rgba(240, 236, 228, 0.08);
  --accent: #c8f542;
  --accent-dim: rgba(200, 245, 66, 0.15);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  cursor: none;
  min-height: 100dvh;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: none; font-family: inherit; color: inherit; }
input { border: none; outline: none; font-family: inherit; background: none; color: inherit; cursor: none; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-in-out), visibility 0.6s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader-shape {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph-svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
  filter: drop-shadow(0 0 16px var(--accent-dim));
  animation: rotateSVG 15s linear infinite;
}

.morph-path {
  d: path("M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z");
  animation: morphPath 6s ease-in-out infinite alternate;
}

@keyframes morphPath {
  0% {
    d: path("M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z");
  }
  33% {
    d: path("M50,15 C75,5 85,25 95,50 C105,75 75,85 50,95 C25,105 15,75 5,50 C-5,25 25,25 50,15 Z");
  }
  66% {
    d: path("M50,5 C80,15 95,35 90,60 C85,85 65,95 50,90 C35,85 15,80 10,50 C5,20 20,5 50,5 Z");
  }
  100% {
    d: path("M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z");
  }
}

@keyframes rotateSVG {
  to { transform: rotate(360deg); }
}

.preloader-bar {
  width: 140px;
  height: 2px;
  background: var(--white-ghost);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s linear;
}

.preloader-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
  transition: transform 0.1s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--white);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: -20px;
  opacity: 0.4;
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              top 0.3s var(--ease-out-expo),
              left 0.3s var(--ease-out-expo),
              opacity 0.3s,
              border-color 0.3s;
}

.cursor.hover .cursor-ring {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  opacity: 0.6;
  border-color: var(--accent);
}

.cursor.hover .cursor-dot {
  transform: scale(2);
  background: var(--accent);
}

/* ============================================
   FILM GRAIN
   ============================================ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -15%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(3%, 15%); }
  90% { transform: translate(-10%, 10%); }
}

/* ============================================
   WEBGL CANVAS
   ============================================ */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#particlesCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   SITE WRAPPER
   ============================================ */
.site-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
}

.site-wrapper.visible {
  opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-20px);
}

.nav.revealed {
  animation: revealDown 1s var(--ease-out-expo) forwards;
}

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

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-ghost);
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-brand:hover .nav-logo {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--white-ghost);
  border-radius: 100px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-text {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ============================================
   HERO — KINETIC TYPOGRAPHY
   ============================================ */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-line {
  overflow: hidden;
  line-height: 1;
}

.hero-line-inner {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out-expo);
}

.hero-line-inner.revealed {
  transform: translateY(0);
}

.hero-word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 11rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  white-space: nowrap;
}

.hero-word.thin {
  font-weight: 200;
  color: var(--white-dim);
}

.hero-word.outline {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}

.hero-word.gradient-fill {
  background: linear-gradient(135deg, var(--accent), #8bf77e, var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-word.symbol {
  font-size: clamp(2rem, 6vw, 6rem);
  color: var(--accent);
  animation: symbolRotate 8s linear infinite;
  display: inline-block;
}

@keyframes symbolRotate {
  to { transform: rotate(360deg); }
}

/* ============================================
   FLOATING INFO BLOCKS
   ============================================ */
.info-block {
  position: absolute;
  padding: 16px 20px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-ghost);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(30px);
}

.info-block.revealed {
  animation: floatIn 1s var(--ease-out-expo) forwards;
}

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

.info-block-left {
  bottom: 15%;
  left: clamp(16px, 5vw, 60px);
}

.info-block-right {
  bottom: 15%;
  right: clamp(16px, 5vw, 60px);
}

.info-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 10px;
}

/* Countdown */
.info-countdown {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
}

.cd {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  min-width: 28px;
  text-align: center;
}

.cd-sep {
  color: var(--white-muted);
  font-size: 1rem;
  margin: 0 2px;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}

.info-countdown small {
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--white-muted);
  text-transform: uppercase;
  margin-right: 4px;
}

/* Mini Form */
.mini-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  background: var(--white-ghost);
  border: 1px solid var(--white-ghost);
  border-radius: 100px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.mini-form:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.06);
}

.mini-form input {
  width: 140px;
  font-size: 0.8rem;
  padding: 6px 0;
  color: var(--white);
}

.mini-form input::placeholder {
  color: var(--white-muted);
}

.mini-form button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.mini-form button svg {
  width: 14px;
  height: 14px;
  stroke: var(--black);
}

.mini-form button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px var(--accent-dim);
}

.form-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--accent);
  min-height: 1em;
  letter-spacing: 0.02em;
}

/* ============================================
   BOTTOM BAR
   ============================================ */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px);
}

.bottom-bar.revealed {
  animation: revealUp 1s var(--ease-out-expo) forwards;
}

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

.bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-label {
  font-size: 0.7rem;
  color: var(--white-muted);
}

.bottom-name {
  font-size: 0.7rem;
  color: var(--white-dim);
  font-weight: 500;
}

.bottom-links {
  display: flex;
  gap: 8px;
}

.bottom-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--white-ghost);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white-dim);
  transition: all 0.3s var(--ease-out-expo);
  background: rgba(255, 255, 255, 0.01);
}

.bottom-link .link-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transform: scale(1);
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
  fill: currentColor;
}

.bottom-link .link-arrow {
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo);
  margin-left: 2px;
}

.bottom-link:hover {
  color: var(--accent);
  border-color: rgba(200, 245, 66, 0.25);
  background: var(--accent-dim);
  box-shadow: 0 4px 20px rgba(200, 245, 66, 0.05);
}

.bottom-link:hover .link-icon {
  opacity: 1;
  transform: scale(1.15);
}

#link-linkedin:hover .link-icon { color: #0077b5; }
#link-instagram:hover .link-icon { color: #e1306c; }
#link-email:hover .link-icon { color: var(--accent); }
#link-github:hover .link-icon { color: #ffffff; }

.bottom-link:hover .link-arrow {
  opacity: 1;
  transform: translate(0, 0);
  stroke: var(--accent);
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }

  .hero-word {
    font-size: clamp(2.5rem, 13vw, 5rem);
  }

  .hero-word.symbol {
    font-size: clamp(1.5rem, 7vw, 3rem);
  }

  .info-block {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .hero {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 24px;
  }

  .hero-content {
    flex: none;
  }

  /* Stack info blocks below hero text on mobile */
  .info-block-left,
  .info-block-right {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 300px;
  }

  .nav-status .status-text {
    font-size: 0.6rem;
  }

  .bottom-bar {
    flex-direction: column;
    gap: 12px;
  }

  .bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-word {
    font-size: clamp(2rem, 14vw, 4rem);
  }

  .hero-word.outline {
    -webkit-text-stroke-width: 1px;
  }

  .nav-status {
    padding: 6px 12px;
  }

  .status-text {
    font-size: 0.6rem;
  }

  .mini-form input {
    width: 110px;
    font-size: 16px; /* prevent iOS zoom */
  }
}

@media (max-width: 360px) {
  .hero-word {
    font-size: clamp(1.8rem, 15vw, 3rem);
  }

  .bottom-link {
    padding: 6px 10px;
    font-size: 0.65rem;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-word {
    font-size: clamp(2rem, 8vh, 4rem);
  }

  .info-block {
    display: none;
  }

  .site-wrapper {
    padding: 12px 24px;
  }
}

/* Safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-wrapper {
    padding-bottom: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-bottom));
    padding-left: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-left));
    padding-right: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-right));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .grain { display: none; }
  .preloader { display: none; }
  .site-wrapper { opacity: 1; }
  .nav, .bottom-bar { opacity: 1; transform: none; }
  .hero-line-inner { transform: none; }
  .info-block { opacity: 1; transform: none; }
  #bgCanvas { opacity: 0.3; }
}
