/* Eitoku Works – Wix-style portfolio redesign
   Author: Kevin Tieu
   Description: Clean professional portfolio layout inspired by modern templates.
*/

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --nav-bg: #ffffff;
  --card-bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.links a:hover { color: var(--accent); }

.hero {
  text-align: center;
  padding: 5rem 5% 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s;
}

.btn:hover { background: var(--accent-dark); }

.section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body { padding: 1.25rem; }
.card-body h3 { margin: 0 0 0.5rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-grid img {
  width: 100%;
  border-radius: var(--radius);
}

footer {
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--accent); }

/* Type-Based carousel */
.typebased-showcase { margin-top: 2rem; }
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 1rem auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f1f5f9;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-img {
  min-width: 100%;
  height: 420px;
  object-fit: contain;
  background: #0f172a;
  cursor: pointer;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2;
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-btn:hover { background: rgba(0,0,0,0.75); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
  .top-nav { flex-direction: column; gap: 0.75rem; }
  .links a { margin: 0 0.6rem; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem; }
}
