/* ===== DreamSphere Studio ===== */

@font-face {
  font-family: 'Bank Gothic';
  src: url('../fonts/bankgothic-medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Monotype Corsiva';
  src: url('../fonts/monotype-corsiva.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --sky-0: #04060d;
  --sky-1: #0a1226;
  --sky-2: #101c38;
  --star: #dfeaff;
  --cyan: #4db8e8;
  --blue: #2a5fb0;
  --magenta: #d867b8;
  --orange: #f2953a;
  --text: #e8eefb;
  --text-dim: #9fb0cf;
  --card: rgba(16, 26, 52, 0.55);
  --card-border: rgba(120, 160, 230, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Bank Gothic', 'Trebuchet MS', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 45%, var(--sky-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.04em;
}

/* ---- sky layers ---- */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: url('../img/dss3.png');
  background-size: cover;
  background-position: center bottom;
}
#stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
}

/* ---- nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.85), rgba(4, 6, 13, 0));
  transition: background 0.4s;
  opacity: 0;
  animation: navIn 1s ease 2.6s forwards;
}
.nav.scrolled {
  background: rgba(4, 6, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(120, 160, 230, 0.12);
}
@keyframes navIn { to { opacity: 1; } }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.nav-brand .brand-logo {
  width: 34px; height: 34px;
  background-image: url('../img/dss2.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.nav-brand .brand-name {
  font-family: 'Monotype Corsiva', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
}
.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(77, 184, 232, 0.8);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
#smoke {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.hero-logo {
  width: min(340px, 68vw);
  height: min(340px, 68vw);
  background-image: url('../img/dss2.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter:
    drop-shadow(0 0 26px rgba(77, 184, 232, 0.45))
    drop-shadow(0 0 60px rgba(216, 103, 184, 0.25));
  opacity: 0;
  transform: scale(0.2);
  animation: reveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
.hero-title {
  font-family: 'Monotype Corsiva', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin-top: 1.2rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), #cfe0ff 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(77, 184, 232, 0.35));
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 1.2s ease 1.6s forwards;
}
.hero-subtitle {
  font-size: clamp(0.9rem, 2.4vw, 1.3rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--text-dim);
  margin-top: 0.7rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 1.2s ease 2.0s forwards;
}
@keyframes reveal {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-contact {
  margin-top: 2.4rem;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 1.2s ease 2.4s forwards;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: navIn 1s ease 3s forwards;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.6rem auto 0;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- sections ---- */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
}
.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.8rem;
}
.section-title span {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-family: 'Monotype Corsiva', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  margin-bottom: 3rem;
}

/* fade-in on scroll */
.fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade.visible {
  opacity: 1;
  transform: none;
}

/* ---- portfolio cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 184, 232, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(77, 184, 232, 0.15);
}
.card::before {
  content: '';
  position: absolute;
  top: -40%; right: -40%;
  width: 70%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 232, 0.18), transparent 70%);
  pointer-events: none;
}
.card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.card p {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
}
.card .tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(77, 184, 232, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin: 0 0.35rem 0.5rem 0;
}
.card .card-links {
  margin-top: 0.4rem;
}
.card .card-links a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-right: 1.2rem;
}
.card .card-links a:hover { text-shadow: 0 0 12px rgba(77, 184, 232, 0.9); }
.card.coming {
  opacity: 0.75;
  border-style: dashed;
}

/* ---- about ---- */
.about-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-box p {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
}
.about-box strong { color: var(--text); }

/* ---- contact ---- */
.contact-box {
  text-align: center;
}
.contact-box .mail {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(77, 184, 232, 0.5);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  transition: box-shadow 0.3s, background 0.3s;
}
.contact-box .mail:hover {
  background: rgba(77, 184, 232, 0.12);
  box-shadow: 0 0 30px rgba(77, 184, 232, 0.35);
}

/* ---- footer ---- */
footer {
  margin-top: 5rem;
  padding: 2.2rem 2rem 2.6rem;
  text-align: center;
  border-top: 1px solid rgba(120, 160, 230, 0.12);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 2;
}
footer a { color: var(--cyan); text-decoration: none; }

/* ---- mobile ---- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 0 1.8rem;
    background: rgba(4, 6, 13, 0.96);
    display: none;
  }
  .nav-links.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .hero-logo, .hero-title, .hero-subtitle, .nav, .scroll-hint, .hero-contact { opacity: 1; transform: none; }
  #smoke { display: none; }
}
