* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f1115;
  color: #f4f1ea;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(194, 164, 126, 0.2);
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #c2a47e;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 0.95rem;
  color: #d8d2c6;
  transition: 0.3s ease;
}

nav a:hover {
  color: #c2a47e;
}

/* Mobile nav */

.mobile-toggle {
  width: 46px;
  height: 46px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: #f4f1ea;
  border-radius: 999px;
  transition: 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 82px;
  left: 50%;
  width: calc(100% - 40px);
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15,17,21,0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(194, 164, 126, 0.2);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 1100;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  color: #f4f1ea;
  font-size: 1.05rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.mobile-menu a:hover {
  color: #c2a47e;
}

/* Hero */

.hero {
  min-height: 100vh;
  padding: 140px 8% 80px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(194, 164, 126, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 30%),
    #0f1115;
}

#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: #c2a47e;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -2px;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.15rem;
  color: #d0c8ba;
  max-width: 700px;
  margin-bottom: 34px;
}

.hero-buttons,
.project-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s ease;
}

.primary {
  background: #c2a47e;
  color: #111;
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(194, 164, 126, 0.25);
}

.secondary {
  border: 1px solid rgba(194, 164, 126, 0.5);
  color: #f4f1ea;
}

.secondary:hover {
  background: rgba(194, 164, 126, 0.1);
  transform: translateY(-3px);
}

/* Hero card */

.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(194, 164, 126, 0.3);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  animation: floatCard 5s ease-in-out infinite;
}

.hero-card h3 {
  color: #c2a47e;
  margin-bottom: 18px;
}

.hero-card p {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #e4ded2;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

/* Sections */

.section {
  padding: 100px 8%;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 36px;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 164, 126, 0.45);
  background: rgba(194, 164, 126, 0.07);
}

.card h3 {
  color: #c2a47e;
  margin-bottom: 12px;
}

.card p {
  color: #d1cabd;
}

/* Featured project */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.split p {
  color: #d1cabd;
  max-width: 600px;
}

.project-buttons {
  margin-top: 28px;
}

.project-screenshot-card {
  border-radius: 28px;
  overflow: hidden;
  background: #191c22;
  border: 1px solid rgba(194, 164, 126, 0.25);
  box-shadow:
    0 25px 80px rgba(0,0,0,0.45),
    0 0 80px rgba(194, 164, 126, 0.08);
  backdrop-filter: blur(10px);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: 0.5s ease;
}

.project-screenshot-card:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-6px);
}

.browser-bar {
  height: 42px;
  background: linear-gradient(90deg, #2a2e38, #181b21);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.screenshot-frame {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(194, 164, 126, 0.12), transparent 35%),
    #0f1115;
}

.screenshot-frame img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-screenshot-card:hover img {
  transform: scale(1.03);
}

/* Animation Lab */

.animation-lab {
  background:
    radial-gradient(circle at top left, rgba(194, 164, 126, 0.1), transparent 35%),
    #0f1115;
}

.lab-intro {
  color: #d1cabd;
  max-width: 650px;
  margin-top: -18px;
  margin-bottom: 36px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.lab-card {
  min-height: 360px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  transition: 0.35s ease;
  backdrop-filter: blur(10px);
}

.lab-card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 164, 126, 0.45);
  background: rgba(194, 164, 126, 0.07);
}

.lab-card h3 {
  color: #c2a47e;
  margin-top: 28px;
  margin-bottom: 12px;
}

.lab-card p {
  color: #d1cabd;
}

/* Animation Lab: orb */

.orb-demo {
  height: 150px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 35%, #f4f1ea, #c2a47e 28%, #4b3824 55%, transparent 70%);
  filter: drop-shadow(0 0 30px rgba(194, 164, 126, 0.35));
  animation: orbFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-14px) rotate(8deg) scale(1.04);
  }
}

/* Animation Lab: scroll bars */

.scroll-demo {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.scroll-demo span {
  display: block;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(194, 164, 126, 0.95), rgba(255,255,255,0.08));
  animation: scrollBars 2.4s ease-in-out infinite;
}

.scroll-demo span:nth-child(2) {
  width: 75%;
  animation-delay: 0.2s;
}

.scroll-demo span:nth-child(3) {
  width: 55%;
  animation-delay: 0.4s;
}

@keyframes scrollBars {
  0%, 100% {
    transform: translateX(-20px);
    opacity: 0.35;
  }

  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

/* Animation Lab: gallery */

.gallery-demo {
  height: 150px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-demo div {
  border-radius: 24px;
  background:
    linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.45)),
    radial-gradient(circle at top left, rgba(194, 164, 126, 0.45), transparent 55%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.35s ease;
}

.lab-card:hover .gallery-demo div:first-child {
  transform: translateY(-10px) rotate(-2deg);
}

.lab-card:hover .gallery-demo div:last-child {
  transform: translateY(10px) rotate(2deg);
}

/* Project Lamp Showcase */

.project-lamp-section {
  background:
    radial-gradient(circle at 20% 30%, rgba(194, 164, 126, 0.12), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 35%),
    #0f1115;
}

.lamp-intro {
  color: #d1cabd;
  max-width: 650px;
  margin-top: -18px;
  margin-bottom: 36px;
}

.lamp-showcase {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.lamp-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lamp-button {
  width: 220px;
  height: 260px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lamp-button:hover {
  transform: translateY(-6px);
}

.lamp-shade {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 150px;
  height: 80px;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #c2a47e, #6f5637);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  border-radius: 16px 16px 10px 10px;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.lamp-stem {
  position: absolute;
  top: 105px;
  left: 50%;
  width: 12px;
  height: 95px;
  transform: translateX(-50%);
  background: linear-gradient(#d6bc94, #6f5637);
  border-radius: 999px;
  z-index: 2;
}

.lamp-base {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 130px;
  height: 28px;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #c2a47e, #5f472b);
  border-radius: 999px;
  z-index: 3;
}

.lamp-glow {
  position: absolute;
  top: 78px;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(194, 164, 126, 0.28), transparent 65%);
  filter: blur(4px);
  opacity: 0.7;
  z-index: 1;
  animation: lampGlow 2.8s ease-in-out infinite;
}

@keyframes lampGlow {
  0%, 100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.95);
  }

  50% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1.08);
  }
}

.lamp-active .lamp-glow {
  animation: lampClickPulse 0.45s ease;
}

@keyframes lampClickPulse {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.25);
  }

  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
}

.lamp-hint {
  color: #c2a47e;
  font-weight: 700;
  margin-top: 12px;
}

.project-display {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #191c22;
  border: 1px solid rgba(194, 164, 126, 0.25);
  box-shadow:
    0 25px 80px rgba(0,0,0,0.45),
    0 0 80px rgba(194, 164, 126, 0.08);
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease,
    box-shadow 0.3s ease;
}

.project-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,0.08),
    transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.project-display:hover::before {
  opacity: 1;
}

.project-display-image {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(194, 164, 126, 0.12), transparent 35%),
    #0f1115;
}

.project-display-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.project-display-image img.changing {
  opacity: 0;
  transform: scale(0.97);
}

.project-display-text {
  padding: 26px;
}

.project-display-text h3 {
  color: #c2a47e;
  margin-bottom: 8px;
}

.project-display-text p {
  color: #d1cabd;
}

.showcase-link {
  display: inline-block;
  margin-top: 18px;
  color: #111;
  background: #c2a47e;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.3s ease;
}

.showcase-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(194, 164, 126, 0.25);
}.coming-soon {
  background: rgba(255,255,255,0.08);
  color: #d1cabd;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* About */

.about-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(194, 164, 126, 0.1), transparent 35%),
    #0f1115;
}

.about-content p {
  color: #d1cabd;
  max-width: 760px;
  margin-bottom: 18px;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(194, 164, 126, 0.09);
  border: 1px solid rgba(194, 164, 126, 0.22);
  color: #f4f1ea;
  font-size: 0.92rem;
}

.about-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 25px 80px rgba(0,0,0,0.35),
    0 0 70px rgba(194, 164, 126, 0.06);
  backdrop-filter: blur(10px);
}

.about-card h3 {
  color: #c2a47e;
  margin-bottom: 14px;
}

.about-card p {
  color: #d1cabd;
}

/* Contact */

.contact {
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(194, 164, 126, 0.14), transparent 45%),
    #111318;
}

.contact p {
  color: #d1cabd;
  margin-bottom: 28px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */

.footer {
  padding: 42px 8%;
  border-top: 1px solid rgba(194, 164, 126, 0.2);
  background: #0c0e12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer h3 {
  color: #c2a47e;
  margin-bottom: 6px;
}

.footer p,
.footer a {
  color: #d1cabd;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #c2a47e;
}

.footer-note {
  text-align: right;
}

/* Mobile */

@media (max-width: 850px) {
  .header {
    padding: 16px 6%;
  }

.about-section {
  grid-template-columns: 1fr;
}

  .desktop-nav {
  display: none;
}

.mobile-toggle {
  display: flex;
}

  .hero {
    grid-template-columns: 1fr;
    padding: 130px 6% 70px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .cards,
  .lab-grid,
  .split,
  .lamp-showcase {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 6%;
  }

  .project-screenshot-card {
    transform: none;
  }

  .project-screenshot-card:hover {
    transform: translateY(-6px);
  }

  .lamp-button {
    width: 180px;
    height: 230px;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-note {
    text-align: center;
  }
}