/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #111a19;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

.hero {
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero.slide-out {
  transform: translateX(-100%);
}

.content-wrapper {
  transform: translateX(100%);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper.slide-in {
  transform: translateX(0);
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  background: #111a19;
  color: #ece4cd;
}

.hero-content {
  max-width: 600px;
}

.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
  min-height: 1.2em;
}

.hero-name .typewriter-text {
  color: #ece4cd;
}

.hero-name .typewriter-text .accent-dot {
  font-style: italic;
  font-weight: 500;
  color: #c9a876;
}

.hero-name .cursor {
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background: rgba(236, 228, 205, 0.6);
  margin-left: 5px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-divider {
  width: 28px;
  height: 1px;
  background: rgba(236, 228, 205, 0.3);
  margin: 0 auto 18px;
}

.hero-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  font-weight: 300;
  color: rgba(236, 228, 205, 0.62);
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

.btn-primary {
  position: relative;
  display: inline-block;
  padding: 4px 2px;
  background: none;
  border: none;
  color: #ece4cd;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ece4cd;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.45s ease;
  opacity: 0.4;
}

.btn-primary:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.btn-primary:focus-visible {
  outline: 1px solid rgba(236, 228, 205, 0.6);
  outline-offset: 6px;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 120px 0;
  background: #111a19;
}

.section-eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a876;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #ece4cd;
}

.section-divider {
  width: 28px;
  height: 1px;
  background: rgba(236, 228, 205, 0.3);
  margin: 0 auto 18px;
}

.section-sub {
  text-align: center;
  color: rgba(236, 228, 205, 0.55);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 64px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.project-card {
  flex: 1 1 280px;
  max-width: 380px;
  background: #141d1c;
  border: 1px solid rgba(236, 228, 205, 0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 118, 0.5);
}

.card-thumb {
  position: relative;
  background: #0d1514;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(236, 228, 205, 0.08);
}

.card-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mockup-bar {
  height: 28px;
  background: rgba(236, 228, 205, 0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(236, 228, 205, 0.06);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(236, 228, 205, 0.18);
}

.mockup-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f1817, #161f1e);
  overflow: hidden;
}

.mockup-screen .card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mockup-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: rgba(236, 228, 205, 0.3);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 26, 25, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-link-icon {
  position: relative;
  color: #ece4cd;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.card-link-icon::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #c9a876;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.project-card:hover .card-link-icon::after {
  transform: scaleX(1);
}

.card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(201, 168, 118, 0.75);
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
  color: #ece4cd;
}

.card-desc {
  font-size: 0.88rem;
  color: rgba(236, 228, 205, 0.55);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(236, 228, 205, 0.4);
  font-weight: 400;
  text-transform: uppercase;
}

.card-tags span:not(:last-child)::after {
  content: '·';
  margin: 0 8px;
  color: rgba(236, 228, 205, 0.25);
}

/* ===== FOOTER ===== */
.footer {
  background: #111a19;
  color: rgba(236, 228, 205, 0.6);
  text-align: center;
  padding: 32px 24px;
  margin-top: auto;
}

.footer-copy {
  position: relative;
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(236, 228, 205, 0.28);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.footer-copy::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 1px;
  background: #ece4cd;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.footer-copy:hover {
  color: #ece4cd;
}

.footer-copy:hover::after {
  transform: scaleX(1);
}

/* ===== CONTACT BUTTON ===== */
.contact-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(236, 228, 205, 0.12);
  backdrop-filter: blur(8px);
  color: #ece4cd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 6px 6px 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
  background: rgba(236, 228, 205, 0.2);
  transform: translateY(-50%) scale(1.05);
}

/* ===== CONTACT OVERLAY ===== */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 26, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.contact-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.contact-card {
  position: relative;
  background: rgba(236, 228, 205, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(236, 228, 205, 0.12);
  border-radius: 16px;
  padding: 48px 40px 40px;
  width: 320px;
  max-width: 90vw;
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(236, 228, 205, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-close:hover {
  color: #ece4cd;
}

.contact-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ece4cd;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(236, 228, 205, 0.05);
  border: 1px solid rgba(236, 228, 205, 0.08);
  color: rgba(236, 228, 205, 0.75);
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  letter-spacing: 0.02em;
}

.contact-item:hover {
  background: rgba(236, 228, 205, 0.1);
  border-color: rgba(236, 228, 205, 0.2);
  color: #ece4cd;
}

.contact-item svg {
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 24px; }
  .btn-primary::after {
    transform: scaleX(1);
    opacity: 0.5;
  }
  .projects { padding: 72px 0; }
  .projects-grid {
    gap: 22px;
  }
  .project-card {
    max-width: 100%;
  }
  .section-sub { margin-bottom: 44px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project-card {
    max-width: calc(50% - 14px);
  }
}
