/* ================================================
   Memphis Retro Studio — styles.css
   80s-inspired, geometric, playful
   ================================================ */

/* --- Variables --- */
:root {
  --pink:   #ff6b9d;
  --yellow: #ffd93d;
  --blue:   #6bcfff;
  --dark:   #1a1a2e;
  --light:  #fafafa;
  --white:  #ffffff;

  --font: 'Fredoka One', cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 80px;

  --shadow: 6px 6px 0 var(--dark);
  --transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.4;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 4px; }

/* ================================================
   DECORATIVE SHAPES (Background)
   ================================================ */
.shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.shape-circle-lg {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--pink);
  top: -80px;
  right: -100px;
  mix-blend-mode: multiply;
}

.shape-circle-sm {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--yellow);
  top: 45%;
  left: -60px;
  mix-blend-mode: multiply;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 170px solid var(--blue);
  bottom: 20%;
  right: 5%;
  opacity: 0.4;
  background: none;
}

.shape-square {
  width: 120px;
  height: 120px;
  background: var(--yellow);
  transform: rotate(15deg);
  bottom: 55%;
  right: 15%;
  border-radius: var(--radius-sm);
}

.shape-zigzag {
  width: 160px;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    var(--pink) 0, var(--pink) 20px,
    transparent 20px, transparent 40px
  );
  top: 30%;
  left: 8%;
  clip-path: polygon(0% 50%, 10% 0%, 30% 50%, 50% 0%, 70% 50%, 90% 0%, 100% 50%, 90% 100%, 70% 50%, 50% 100%, 30% 50%, 10% 100%);
}

.shape-dots {
  width: 140px;
  height: 140px;
  background: radial-gradient(var(--blue) 30%, transparent 31%);
  background-size: 28px 28px;
  top: 70%;
  left: 3%;
  border-radius: 0;
}

.shape-squiggle {
  width: 200px;
  height: 80px;
  bottom: 10%;
  right: 8%;
  background: none;
  border: none;
}

.shape-squiggle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0, var(--yellow) 8px,
    transparent 8px, transparent 16px
  );
  border-radius: var(--radius-sm);
}

.shape-cross {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 20%;
  background: var(--pink);
  clip-path: polygon(35% 0%, 65% 0%, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0% 65%, 0% 35%, 35% 35%);
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--dark);
}

.nav-logo {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.dot { color: var(--pink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.nav-cta):hover { color: var(--pink); }

.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  background: var(--pink);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 48px 80px;
  position: relative;
  z-index: 1;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-tag {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.outline-text {
  -webkit-text-stroke: 2px var(--dark);
  color: transparent;
}

.hero-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: #444;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
}

.hero-shape {
  position: absolute;
}

.circle-pink {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--pink);
  top: 10%;
  right: 15%;
  box-shadow: var(--shadow);
  animation: float1 6s ease-in-out infinite;
}

.circle-yellow {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--yellow);
  bottom: 20%;
  left: 10%;
  box-shadow: var(--shadow);
  animation: float2 8s ease-in-out infinite;
}

.circle-blue {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--blue);
  top: 5%;
  left: 25%;
  box-shadow: var(--shadow);
  animation: float3 7s ease-in-out infinite;
}

.triangle-hero {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid var(--yellow);
  bottom: 10%;
  right: 10%;
  background: none;
  animation: float1 9s ease-in-out infinite reverse;
}

.zigzag-hero {
  width: 100px;
  height: 30px;
  top: 40%;
  right: 5%;
  background: repeating-linear-gradient(
    90deg, var(--blue) 0, var(--blue) 12px,
    transparent 12px, transparent 24px
  );
  clip-path: polygon(0% 50%, 12% 0%, 36% 50%, 60% 0%, 84% 50%, 100% 0%, 100% 50%, 88% 100%, 64% 50%, 40% 100%, 16% 50%);
}

/* Float animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 1rem;
  border-radius: var(--radius-xl);
  border: 3px solid var(--dark);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--pink);
  color: var(--dark);
  box-shadow: 5px 5px 0 var(--dark);
}

.btn-primary:hover {
  background: var(--dark);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--dark);
}

.btn-full { width: 100%; }

/* ================================================
   SECTIONS (General)
   ================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center { text-align: center; }

.section-tag {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ================================================
   WORK / PROJECTS GRID
   ================================================ */
.work { background: var(--white); }

.grid-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  border: 3px solid var(--dark);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 var(--dark);
}

.card-tall { grid-row: span 2; }
.card-wide { grid-column: span 2; }

.card-shape {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.ts-pink   { background: var(--pink); }
.ts-yellow { background: var(--yellow); }
.ts-blue   { background: var(--blue); }

.card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(26,26,46,0.75) 0%, transparent 60%);
  color: var(--white);
  z-index: 2;
}

.card-num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.card-content p {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.8;
}

/* ================================================
   STUDIO / ABOUT
   ================================================ */
.studio { background: var(--light); }

.studio-layout {
  display: flex;
  gap: 80px;
  align-items: center;
}

.studio-text { flex: 1; }

.studio-body {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-top: 20px;
  max-width: 480px;
}

.studio-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 3px solid var(--dark);
}

.stat-num {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--pink);
}

.stat-label {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #666;
  margin-top: 4px;
}

/* Studio Visual */
.studio-visual {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  position: relative;
  max-width: 380px;
}

.sv-box {
  border-radius: var(--radius-md);
  border: 3px solid var(--dark);
  min-height: 140px;
  transition: transform var(--transition);
}

.sv-pink   { background: var(--pink); }
.sv-yellow { background: var(--yellow); }
.sv-blue   { background: var(--blue); }

.sv-deco {
  position: absolute;
}

.cross-deco {
  width: 50px;
  height: 50px;
  background: var(--pink);
  clip-path: polygon(35% 0%, 65% 0%, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0% 65%, 0% 35%, 35% 35%);
  bottom: -20px;
  right: 20px;
}

.circle-deco {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--yellow);
  top: -20px;
  left: 20px;
  border: 3px solid var(--dark);
}

/* ================================================
   SERVICES
   ================================================ */
.services { background: var(--dark); color: var(--white); }

.services .section-tag { color: var(--yellow); }
.services .section-title { color: var(--white); }

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: rgba(255,255,255,0.06);
  border: 3px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition);
}

.service-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.service-card:hover .svc-icon { transform: rotate(10deg) scale(1.1); }

.svc-pink   { background: var(--pink); }
.svc-yellow { background: var(--yellow); }
.svc-blue   { background: var(--blue); }

.svc-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* ================================================
   CONTACT
   ================================================ */
.contact { background: var(--white); }

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.contact-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 20px;
}

.contact-sub {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

.contact-shape {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--dark);
  opacity: 0.7;
}

.csq-pink {
  width: 80px;
  height: 80px;
  background: var(--pink);
  top: -30px;
  right: -40px;
}

.csq-yellow {
  width: 50px;
  height: 50px;
  background: var(--yellow);
  bottom: 20%;
  left: -30px;
}

.csq-blue {
  width: 40px;
  height: 40px;
  background: var(--blue);
  top: 40%;
  right: -20px;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  padding: 14px 18px;
  border: 3px solid var(--dark);
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 4px 4px 0 var(--pink);
}

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

/* ================================================
   FOOTER
   ================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--white);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--pink);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 1.4rem;
}

.footer-copy {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: translateY(-3px);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 280px; width: 100%; }
  .studio-layout { flex-direction: column; gap: 48px; }
  .studio-visual { max-width: 320px; }
  .grid-projects {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .card-wide { grid-column: span 1; }
  .card-tall { grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.4rem; }
  .nav-toggle { display: flex; z-index: 101; }

  .section { padding: 72px 24px; }
  .hero { padding: 120px 24px 60px; }
  .hero-title { font-size: 3rem; }

  .grid-projects {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .card-tall, .card-wide { grid-column: span 1; grid-row: span 1; }

  .studio-stats { gap: 24px; }
  .stat-num { font-size: 2.2rem; }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  /* Hide background shapes on mobile for performance */
  .shape { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .section-title { font-size: 2.2rem; }
  .hero-visual { min-height: 220px; }
  .circle-pink { width: 160px; height: 160px; }
  .circle-yellow { width: 100px; height: 100px; }
  .circle-blue { width: 60px; height: 60px; }
  .studio-stats { flex-wrap: wrap; }
}
