/* ============================================================
   mtosak.com — Style Sheet (Mixed Theme)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@200;400;700;900&display=swap');

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

:root {
  --accent: #F15B5C;
  --accent20: rgba(241, 91, 92, .2);
  --accent08: rgba(241, 91, 92, .08);

  /* Initial values are Dark Theme (JS will update these) */
  --bg: rgb(18, 18, 18);
  --surface: rgb(30, 30, 30);
  --text: rgb(240, 240, 240);
  --sub: rgb(153, 153, 153);
  --border-color: rgba(255, 255, 255, 0.05);

  --heading: 'Outfit', sans-serif;
  --body: 'Outfit', sans-serif;
  --mono: 'DM Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Fix theme to dark for hero section */
  --bg: #1a1a1a;
  --text: rgb(240, 240, 240);
  --sub: rgb(153, 153, 153);
  background: var(--bg);
  color: var(--text);
}

/* Hero Corner Accents (Sci-fi style triangles) */
.hero {
  --triangle-width: 240px;
  --triangle-height: 120px;
  --triangle-color: var(--accent);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: var(--triangle-height) solid var(--triangle-color);
  border-left: var(--triangle-width) solid transparent;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: var(--triangle-height) solid var(--triangle-color);
  border-right: var(--triangle-width) solid transparent;
  z-index: 1;
}

/* Dot field */
.dot-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .12;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: var(--heading);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
  position: relative;
}

.hero-title span {
  display: inline-block;
  animation: popIn .6s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-title span:nth-child(1) {
  animation-delay: .1s;
}

.hero-title span:nth-child(2) {
  animation-delay: .15s;
}

.hero-title span:nth-child(3) {
  animation-delay: .2s;
}

.hero-title span:nth-child(4) {
  animation-delay: .25s;
}

.hero-title span:nth-child(5) {
  animation-delay: .3s;
}

.hero-title span:nth-child(6) {
  animation-delay: .35s;
  color: var(--accent);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(.8rem, 1.5vw, 1rem);
  color: var(--sub);
  margin-top: 2rem;
  letter-spacing: .15em;
  animation: fadeUp .8s .6s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollA 2s ease-in-out infinite;
  opacity: .4;
}

.scroll-indicator span:nth-child(2) {
  animation-delay: .2s;
}

@keyframes scrollA {

  0%,
  100% {
    opacity: .2;
    transform: rotate(45deg) translate(0, 0);
  }

  50% {
    opacity: .6;
    transform: rotate(45deg) translate(4px, 4px);
  }
}

/* ============================================================
   SECTIONS (common)
   ============================================================ */
.section {
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.section-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .3em;
  margin-bottom: .5rem;
}

.section-heading {
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-heading span {
  display: inline-block;
  opacity: 0;
}

.reveal.visible .section-heading span {
  animation: popIn .6s cubic-bezier(.16, 1, .3, 1) both;
}

.reveal.visible .section-heading span:nth-child(1) {
  animation-delay: .1s;
}

.reveal.visible .section-heading span:nth-child(2) {
  animation-delay: .15s;
}

.reveal.visible .section-heading span:nth-child(3) {
  animation-delay: .2s;
}

.reveal.visible .section-heading span:nth-child(4) {
  animation-delay: .25s;
}

.reveal.visible .section-heading span:nth-child(5) {
  animation-delay: .3s;
}

.reveal.visible .section-heading span:nth-child(6) {
  animation-delay: .35s;
}

.reveal.visible .section-heading span:nth-child(7) {
  animation-delay: .4s;
}

.reveal.visible .section-heading span:nth-child(8) {
  animation-delay: .45s;
}

/* ============================================================
   ABOUT
   ============================================================ */
.window-card {
  /* Red Accent Theme */
  --bg: #F15B5C !important;
  --surface: #1a0808 !important;
  /* Very dark red */
  --text: #ffeded !important;
  --sub: #ff9e9f !important;
  --border-color: rgba(241, 91, 92, 0.3) !important;

  width: 100%;
  background: var(--surface);
  border: 1px solid var(--bg);
  border-radius: 8px;
  margin-top: 2rem;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.window-header {
  background: var(--bg);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bg);
  position: relative;
}

.window-buttons {
  position: absolute;
  left: 1rem;
  display: flex;
  gap: 8px;
}

.window-buttons span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.window-buttons span:nth-child(1) {
  background: #ffffff;
}

.window-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.window-content {
  background: var(--surface);
  display: flex;
  padding: 2.5rem;
}

.window-photo {
  width: 160px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #332828;
  flex-shrink: 0;
}

.window-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.window-body {
  flex: 1;
  padding-left: 2rem;
  display: flex;
  align-items: center;
}

.console-text {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.6;
}

.console-line {
  margin-bottom: 0.5rem;
}

.console-line .prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.console-line.output {
  color: var(--sub);
  margin-left: 1.2rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1rem;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ============================================================
   PARALLAX BAND
   ============================================================ */
.parallax-band {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: #1a1a1a;
  color: #fafaf8;
}



.parallax-row {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: .1em;
  opacity: .15;
  will-change: transform;
}

.parallax-row:nth-child(2) {
  margin-top: 1rem;
  opacity: .08;
}

/* ============================================================
   LINKS
   ============================================================ */
.link-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  text-decoration: none;
  padding: 1rem 1.5rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-left: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent08), transparent);
  z-index: 0;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-item:hover {
  border-left-color: var(--accent);
  border-right-color: var(--accent20);
  border-top-color: var(--accent20);
  border-bottom-color: var(--accent20);
}

.link-item:hover::before {
  width: 100%;
}

.link-name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.link-url {
  font-family: var(--heading);
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.link-item:hover .link-url {
  opacity: 1;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-item {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all .4s;
}

.service-item:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(241, 91, 92, .08);
}

.service-item-title {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.service-item-desc {
  color: var(--sub);
  margin-top: .5rem;
}

.service-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: .65rem;
  padding: .3rem .8rem;
  background: var(--accent08);
  color: var(--accent);
  border-radius: 20px;
  letter-spacing: .05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

.footer-name {
  font-family: var(--heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  opacity: .15;
  letter-spacing: .1em;
}

.footer-copy {
  font-size: .8rem;
  color: var(--sub);
  margin-top: 1rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-keywords {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .keyword {
    font-size: 1.5rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .window-content {
    padding: 1.5rem;
  }

  .window-photo {
    width: 33.33%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .window-body {
    padding-left: 1.5rem;
  }

  .console-text {
    font-size: 1rem;
  }
}