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

:root {
  --bg: #111111;
  --bg2: #1a1a1a;
  --surface: #f0f0f0;
  --surface2: #e4e4e4;
  --text: #111111;
  --text-light: #888888;
  --white: #ffffff;
  --card-dark: #2a2a2a;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: var(--bg);
  background: #1a1a1a;
}

.logo {
  font-family: var(--serif);
  font-weight: 800;
  padding: 0px 30px 0px;
  font-size: 25px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s;
  cursor: pointer;
}
.nav-links a:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── LANGUAGE SWITCH ── */
.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* ── SOCIAL / FREELANCE LINKS (header) ── */
.social-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
  transition: all 0.2s;
}

.social-btn:hover {
  color: var(--bg);
  background: var(--white);
  border-color: var(--white);
}

@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .nav-links {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    gap: 18px;
  }
  .nav-right {
    width: 100%;
    justify-content: center;
  }
  .social-links {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── SPOTLIGHT ── */
/* ── SPOTLIGHT ── */
.spotlight-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  animation: colorCycle 6s linear infinite;
}

@keyframes colorCycle {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Dark lamp body */
.spotlight-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 14px;
  background: #1a1a1a;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 4;
}

/* Glowing white tube */
.spotlight-wrap::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 53%;
  height: 3px;
  background: white;
  box-shadow:
    0 0 6px 3px rgba(255, 255, 255, 1),
    0 0 20px 8px rgba(0, 0, 255, 0.9);
  border-radius: 2px;
  z-index: 3;
}

/* Light cone — fans straight down from the tube */
.spotlight {
  display: block;
  width: 100%;
  height: 100px;
  background:
    radial-gradient(
      ellipse 50% 100% at 50% 0%,
      rgba(0, 0, 255, 1)    0%,
      rgba(0, 0, 255, 0.75) 15%,
      rgba(0, 0, 255, 0.4)  40%,
      rgba(0, 0, 255, 0.1)  65%,
      transparent           100%
    );
  pointer-events: none;
}

.filter-tabs-wrap {
  position: relative;
  z-index: 2;
  padding: 0 0 24px;
  margin-top: -20px;
}

/* --------------- WORK PAGE --------------- */
#work-page .hero-text {
  padding: 12px 58px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: #ccc;
  max-width: 650px;
  line-height: 1.6;
}

.filter-tabs {
  display: flex;
  gap: 0;
  width: 94%;
  justify-content: center;
  margin: 0 auto;
  z-index: 2;
  align-items: center;
}

.tab-btn {
  flex: 1;
  padding: 10px 4px;
  border-radius: 999px;
  outline: 1.5px solid rgba(255, 255, 255, 0.348);  
  border: none;                         
  background: #1c1c1c;
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 4px;
}

.tab-btn.active {
  background: var(--white);
  color: var(--bg);
  outline: 1.5px solid rgba(255, 255, 255, 0.348);  
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.43), 0 0 32px 8px rgba(255,255,255,0.2);
}

.tab-btn:hover:not(.active) {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.3);
}

.projects-list { padding: 0 16px; }

.project-card {
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
}

/* ── PROJECT CARD HEADER ── */
.project-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  background: #e4e4e4;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 500;
  white-space: nowrap;
}

.project-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.project-details { display: flex; gap: 12px; flex-wrap: wrap; }

.project-detail-item {
  flex: 1;
  min-width: 160px;
  background: #e8e8e8;
  border-radius: 10px;
  padding: 12px 14px;
}

.detail-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  margin-bottom: 5px;
}

.detail-text { font-size: 12.5px; color: #444; line-height: 1.55; }

.project-img {
  width: 100%;
  background: #d0d0d0;
  border-radius: 14px;
  aspect-ratio: 16/10;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.project-img.mockup-img {
  background: #C0BFC0; 
  perspective: 1800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.project-img.mockup-img:hover {
  transform: none;
  box-shadow: none;
}

.mockup-scene {
  width: 55%;
  display: flex;
  justify-content: center;
}

.mockup-scene img {
  width: 70%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 10px 20px rgba(0,0,0,0.4);
  transform: rotateY(18deg) rotateX(-3deg) rotateZ(1deg);
  transform-origin: center center;
  transition: transform 0.4s;
}

.project-img.mockup-img:hover .mockup-scene img {
  transform: rotateY(8deg) rotateX(1deg) rotateZ(-0.5deg);
}

.project-img.mockup-img2 {
  background: #C0BFC0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img.mockup-img2 img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.project-img.mockup-img2.img-align-top {
  align-items: flex-start;
}

.project-img.mockup-img3 {
  background: #C0BFC0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img.mockup-img3 img {
  width: 90%;
  display: block;
  border-radius: 4px;
}

.figma-link-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0 10px;
}

.figma-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 44px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  border-radius: 999px;
}

.figma-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1c1c1c;
  border: 1.5px solid #1c1c1c;
  border-radius: 999px;
  padding: 14.5px 44px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.live-btn:hover {
  background: #1c1c1c;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .figma-link-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .live-btn,
  .figma-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

#lightbox.active { display: flex; }

#lightbox-content {
  position: relative;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.work-cta {
  text-align: center;
  padding: 32px 0 80px;
}

.btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 220px;
  height: 48px;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
  user-select: none;
}

/* White inner button */
.btn-outline span {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  color: #111;
  border-radius: 999px;
  position: relative;
  z-index: 11;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Rainbow border + glow */
.btn-outline::before,
.btn-outline::after {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  border-radius: 999px;
  background: linear-gradient(45deg,
    #fb0094, #0000ff, #00ff00, #ffff00,
    #ff0000, #fb0094, #0000ff, #00ff00,
    #ffff00, #ff0000);
  background-size: 400%;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: -1;
  animation: rainbowMove 20s linear infinite;
}

.btn-outline::after {
  filter: blur(50px);
}

@keyframes rainbowMove {
  0%   { background-position: 0 0; }
  50%  { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* --------------- ABOUT PAGE --------------- */
.about-hero {
  position: relative;
  background: linear-gradient(160deg, #e8e8e8 0%, #ffffff 40%, #e0e0e0 100%);
  padding: 70px 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.about-hero > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 40% 50%, transparent 30%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.about-hero > * {
  position: relative;
  z-index: 2;
}

.about-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #666666c5;
  text-transform: uppercase;
}

.about-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: #111;
  line-height: 1.1;
  margin-bottom: 14px;
}

.about-tags {
  font-size: 14px;
  color: #666666c5;
  margin-bottom: 18px;
}

.about-bio {
  font-size: 17px;
  color: #333;
  line-height: 1.65;
  max-width: 1000px;
  font-family: var(--sans);
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.about-section {
  padding: 36px 58px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-num {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 400;
  min-width: 24px;
}

.section-label {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}

.section-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.15);
}

/* Approach cards */
.approach-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .approach-cards { grid-template-columns: 1fr; }
}

.approach-card {
  background: var(--white);
  color: var(--text);
  width: 400px;
  border-radius: 14px;
  padding: 45px 45px 45px 45px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.approach-dash {
  width: 20px;
  height: 2px;
  background: #ccc;
  margin-bottom: 14px;
}

.approach-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.approach-card p {
  font-size: 15px;
  color: #777;
  line-height: 1.55;
}

/* ── TOOLS & SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skill-group {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px 16px;
}

.skill-group-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 500;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 5px 13px;
  font-weight: 400;
}

/* ── EXPERIENCE ── */
.experience-list { display: flex; flex-direction: column; gap: 0; }

.exp-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.exp-item:last-child { border-bottom: none; }

.exp-date {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
  padding-top: 2px;
}

.exp-role {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.exp-company {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ── ABOUT CTA ── */
.about-cta {
  margin: 16px auto 48px;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
}

.about-cta h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  margin-left: 50px;
}

.about-cta p {
  font-size: 14px;
  color: #888;
  margin-left: 50px;
}

.about-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 50px;
}

.btn-dark {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 40px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-dark:hover { background: #333; }

@media (max-width: 640px) {
  .about-cta {
    margin: 16px 16px 40px;
  }
  .about-cta h3,
  .about-cta p,
  .about-cta-buttons {
    margin-left: 0;
  }
  .about-cta p { margin-bottom: 6px; }
  .about-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn-dark {
    width: 100%;
  }
}

/* --------------- CONTACT PAGE --------------- */
.contact-hero-text {
  padding: 12px 58px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: #ccc;
  max-width: 650px;
  line-height: 1.6;
}

.contact-card {
  margin: 0 auto 48px;
  max-width: 820px;
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: #111;
}

@media (max-width: 640px) {
  .contact-card { grid-template-columns: 1fr; }

  .about-hero {
    padding: 40px 24px;
  }
  .about-bio { max-width: none; }
}

.contact-info h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: #111;
  margin-bottom: 28px;
}

.contact-row { margin-bottom: 22px; }
.contact-row label {
  display: block;
  font-size: 15px;
  color: #888;
  margin-bottom: 4px;
}
.contact-row strong {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.freelance-links {
  display: flex;
  gap: 10px;
}

.freelance-links a {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.freelance-links a:hover { color: #555; }

.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-group label {
  display: block;
  font-size: 15px;
  color: #777;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #e8e8e8;
  border: none;
  border-radius: 12px;
  padding: 12px 15px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: #333;
  outline: none;
  transition: background 0.2s;
  resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus { background: #ddd; }

.form-group textarea { height: 130px; }

.btn-send {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}
.btn-send:hover { background: #333; }
