:root {
  --bg: #0f0f1a;
  --text: #f2f2ff;
  --accent: #00e6e6;
  --header: #181824;
  --card: #1e1e2f;
}

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

body {
  font-family: 'Roboto Mono', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* =========================================================
   INTRO SCREEN
========================================================= */

.intro-screen {
  height: 100vh;
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 0 8vw;
  cursor: pointer;
  position: relative;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.intro-screen.zoom-out {
  transform: scale(1.15);
  opacity: 0;
}

/* ---------- CHIBI ---------- */
.intro-img img {
  width: 460px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.intro-img:hover img {
  transform: scale(1.05);
}

/* ---------- INTRO TEXT ---------- */
.intro-text h1 {
  font-size: 3rem;
  color: var(--accent);
}

.subtitle {
  color: #d4d4f5;
  font-size: 1.2rem;
  margin: 0.6rem 0 1.2rem;
}

/* =========================================================
   TYPEWRITER (NO SHIFT)
========================================================= */

.type-wrapper {
  width: 13ch;
}

.typing-name {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  border-right: 0.15em solid var(--accent);
  animation:
    typing-name 1.4s steps(12, end) forwards,
    blink-caret 0.75s step-end 2 forwards,
    hide-caret 0s linear 1.4s forwards;
}

@keyframes typing-name {
  to { max-width: 13ch; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

@keyframes hide-caret {
  to { border-right-color: transparent; }
}

/* ---------- CTA TYPEWRITER ---------- */

.hint-wrapper {
  width: 48ch;
}

.typing-hint {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  color: var(--accent);
  border-right: 0.12em solid var(--accent);
  animation:
    typing-hint 2s steps(48, end) forwards,
    blink-hint 0.75s step-end infinite;
  animation-delay: 1.6s;
}

@keyframes typing-hint {
  to {
    max-width: 48ch;
    opacity: 1;
  }
}

@keyframes blink-hint {
  50% { border-color: transparent; }
}

/* =========================================================
   TOP BAR (INTERNAL PAGES)
========================================================= */

.topbar {
  position: sticky;
  top: 0;
  background: var(--header);
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  z-index: 500;
}

.back-btn {
  color: var(--accent);
  font-size: 1.5rem;
  text-decoration: none;
  margin-right: auto;
}

.top-links {
  display: flex;
  gap: 2rem;
}

.top-links a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
  font-weight: 600;
}

.top-links a.active,
.top-links a:hover {
  opacity: 1;
}

/* =========================================================
   PAGE CONTENT
========================================================= */

.fade-section {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-section h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.7;
  padding-bottom: 18px;
  margin-bottom: 18px;
  position: relative;
}

.about-text p:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background: rgba(0, 230, 230, 0.35); /* accent but subtle */
}


.about-block {
  margin-bottom: 120px;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.carousel img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.carousel img:hover {
  transform: scale(1.05);
}

/* =========================================================
   PROJECTS
========================================================= */

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 230, 230, 0.2);
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-date {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form {
  margin-top: 2rem;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  margin-top: 0.5rem;
  align-self: flex-start;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'Roboto Mono', monospace;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-form button:hover {
  background: var(--accent);
  color: var(--bg);
}

/* =========================================================
   CONTACT ICONS
========================================================= */

.contact-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.contact-icon {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-icon:hover {
  transform: scale(1.2);
  opacity: 0.85;
}