:root {
  --accent: #9aa6b2;
  --accent-2: #c7d2da;
  --highlight: #d96a1a;
}
html,
body {
  height: 100%;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-icon {
  width: 36px;
  height: 36px;
  filter: invert(1);
}

.skill-icon {
  width: 36px;
  height: 36px;
}

/* GLOBAL TRANSITION FOR THEME */
.theme-transition * {
  transition: background-color 0.55s ease, color 0.55s ease,
    border-color 0.45s ease, fill 0.45s ease;
}

/* page load fade */
body {
  opacity: 0;
  animation: pageFade 0.9s ease forwards 0.05s;
}
@keyframes pageFade {
  to {
    opacity: 1;
  }
}

/* reveal slide-up */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* content scale effect on toggle */
.fade-scale {
  transition: transform 0.36s ease, opacity 0.36s ease;
  transform-origin: center;
}
.fade-scale-enter {
  transform: scale(0.985);
  opacity: 0.92;
}

/* icon animation */
.icon-rotate {
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.4s ease;
}
.icon-hidden {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  position: absolute;
}
.icon-visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  position: relative;
}

/* glow background layers */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.glow-sun {
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 223, 120, 0.55),
    rgba(255, 200, 120, 0.12) 25%,
    transparent 45%
  );
  transition: opacity 0.6s ease-out;
}
.glow-moon {
  background: radial-gradient(
    circle at 80% 70%,
    rgba(120, 180, 255, 0.38),
    rgba(80, 120, 220, 0.08) 35%,
    transparent 60%
  );
  transition: opacity 1.2s ease-in-out;
}
.glow-show {
  opacity: 1;
}

/* project card hover tilt */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 320ms;
  will-change: transform, box-shadow;
}
.card-tilt:hover {
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  transform: translateY(-6px) rotateX(6deg) rotateY(-6deg) scale(1.01);
}

/* small polish */
a {
  color: inherit;
  text-decoration: none;
}
.mono {
  font-family: "Roboto Mono", monospace;
}
.logo-anim {
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.2, 1);
}
