/* =========================
   RESET & VARIABLES
========================= */

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

:root {
  --mono-0: #050608;
  --mono-1: #101118;
  --mono-2: #181a22;
  --mono-3: #262836;
  --mono-4: #404356;

  --text-main: #f5f5f7;
  --text-muted: #b2b4c4;

  --accent: #ff4b81;
  --accent-soft: rgba(255, 75, 129, 0.14);
}

/* =========================
   FONTS
========================= */

@font-face {
  font-family: "Akira";
  src: url("../fonts/Akira\ Expanded\ Demo.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Narrow";
  src: url("../fonts/Lato-Semibold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #13141c 0, var(--mono-0) 55%, #000 100%);
  color: var(--text-main);
  font-family: "Narrow";
  line-height: 1.6;
}

body::after {
  content: "MK STUDIO :: ASCII BRAND";
  position: fixed;
  right: 2vw;
  bottom: 1vh;
  font-family: "Akira", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  opacity: 0.06;
  pointer-events: none;
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER & NAV
========================= */

.site-header {
  min-height: 100vh;
  padding: 2.5rem 6vw 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: var(--mono-2);
  padding: 0.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.nav-brand {
  font-family: "Akira";
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff9abf);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========================
   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: center;
}

.hero-text h1 {
  font-family: "Akira";
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse-accent 3s infinite ease-in-out;
}

.hero-copy {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.85rem 2.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff9abf);
  color: #050308;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  text-decoration: none;
}

.hero-figure {
  background: radial-gradient(circle at top left, var(--accent-soft), var(--mono-2));
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--mono-3);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-figure img {
  border-radius: 1rem;
}

.hero-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
}

@keyframes pulse-accent {
  0% {
    text-shadow: 0 0 0 rgba(255, 75, 129, 0);
  }
  50% {
    text-shadow: 0 0 18px rgba(255, 75, 129, 0.7);
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 75, 129, 0);
  }
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 4.5rem 6vw;
}

.section-dark {
  background: radial-gradient(circle at top, #151623 0, #080812 65%, #020209 100%);
}

.section-light {
  background: radial-gradient(circle at top, #1d1f2b 0, #151623 60%, #080812 100%);
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-family: "Narrow";
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.section-header p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

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

.projects-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background-color: var(--mono-2);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--mono-3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-image-frame {
  height: 210px;
  background: radial-gradient(circle at top, var(--accent-soft), var(--mono-3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-card figcaption {
  padding: 1.1rem 1.2rem 1.2rem;
}

.project-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95);
}

/* =========================
   ABOUT
========================= */

.about-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.about-figure {
  background-color: var(--mono-2);
  border-radius: 1.5rem;
  border: 1px solid var(--mono-3);
  padding: 1.3rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

.about-image {
  border-radius: 1rem;
}

.about-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.about-text h3 {
  font-family: "Narrow";
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* =========================
   LINKS
========================= */

.links-list,
#links ul,
#links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

#links ul {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#links li a,
.links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 0.7rem 0.4rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

#links li a::before,
.links-list li a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#links li a:hover,
.links-list li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

#links li a:hover::before,
.links-list li a:hover::before {
  opacity: 1;
  transform: scale(1.4);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background-color: #05050a;
  border-top: 1px solid #222436;
  padding: 1.8rem 2vw 2.4rem;   
}
.footer-inner {
  width: 100%;                  
  max-width: none;             
  margin: 0;         
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 2rem;
}


.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: var(--mono-2);
  padding: 0.2rem;
}

.footer-text h4 {
  font-family: "Akira";
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Back to top bubble */

.back-to-top {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mono-2);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top::before {
  content: "↑";
  font-size: 1.3rem;
}

.back-to-top-label {
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: font-size 0.25s ease, opacity 0.25s ease, left 0.25s ease;
}

.back-to-top:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.back-to-top:hover .back-to-top-label {
  font-size: 0.8rem;
  opacity: 1;
  left: 135%;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 6vw;
}

.screen-panel {
  width: 100%;
  max-width: 1100px;
  background: radial-gradient(circle at top left, var(--accent-soft), var(--mono-2));
  border-radius: 1.7rem;
  border: 1px solid var(--mono-3);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.9);
  padding: 2.3rem 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
}

.screen-panel--single {
  grid-template-columns: 1fr;
}

.projects-panel {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.projects-intro p {
  margin-top: 1.1rem;
  max-width: 30rem;
}

.projects-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.project-item {
  padding: 0.7rem 0.8rem;
  background-color: rgba(12, 13, 21, 0.9);
  border-radius: 0.9rem;
  border: 1px solid var(--mono-3);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}

.project-item a {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-main);
}

.project-item span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.project-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background-color: rgba(20, 21, 35, 1);
}

.projects-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.projects-preview-image {
  width: 100%;
  max-width: 320px;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--mono-3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.projects-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.about-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.about-portrait {
  width: 100%;
  max-width: 320px;
  border-radius: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--mono-3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95);
}

.links-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.links-intro p {
  margin-top: 1rem;
  max-width: 28rem;
}

.links-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

.site-footer-simple {
  background-color: #05050a;
  border-top: 1px solid #222436;
  padding: 1.2rem 6vw 1.6rem;
}

/* =========================
   MEDIA QUERIES
========================= */

@media (max-width: 900px) {
  .site-header {
    padding: 1.8rem 5vw 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-figure {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }


  .screen-main {
    padding: 1.8rem 5vw;
  }

  .screen-panel {
    padding: 2rem 2.1rem;
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 1.4rem 5vw 2.7rem;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .section {
    padding: 3.5rem 5vw;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: stretch;
  }

  .back-to-top {
    margin-left: auto;
  }


  .screen-panel {
    padding: 1.6rem 1.5rem;
    border-radius: 1.4rem;
  }
}

/* 
  __  __  __   __
|  \/  | | | / /
| |\/| | | |/ /
| |  | | |   |
| |  | | |    \
|_|  |_| |_| \_\
                         M  K  S  T  U  D  I  O
*/