:root {
  --font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.container {
  max-width: var(--width-medium);
  margin: 0 auto;
  padding: 1rem 2rem;
}

h1::selection,
h2::selection {
  color: #fff;
  background: var(--primary-color);
}

/* Buttons - Swiss rectangular */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  display: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  margin: 5px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

/* Dark mode toggle */
#switch {
  display: none;
}

.toggle-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 22px;
  height: 22px;
  position: relative;
}

.toggle-icons .moon,
.toggle-icons .sun {
  position: absolute;
  inset: 0;
}

.toggle-icons>img {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: 22px;
  height: 22px;
  display: block;
}

.moon {
  transform: rotate(10deg);
}

#switch:checked+.toggle-icons .moon {
  transform: rotate(250deg);
}

#switch:checked+.toggle-icons .sun {
  transform: rotate(100deg);
}

/* Hero Section - Swiss Bold */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-label {
  position: absolute;
  top: 100px;
  left: 2.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
}

.hero-name-line {
  display: block;
}

.hero-name-line:last-child {
  color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 400px;
  line-height: 1.5;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-photo-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  mix-blend-mode: multiply;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 2.5rem;
  gap: 2rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.hero-bottom-left p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.hero-bottom-center {
  display: flex;
  justify-content: center;
}

.hero-cta {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.875rem 2.5rem;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.85) !important;
}

/* Dark mode hero */
[data-theme="dark"] .hero {
  background: var(--primary-color);
}

[data-theme="dark"] .hero-name {
  color: #ffffff;
}

[data-theme="dark"] .hero-name-line:last-child {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero::before {
    background-size: 60px 60px;
  }
  .hero-left {
    padding-right: 0;
    order: 2;
  }

  .hero-right {
    order: 1;
    margin-top: 3rem;
  }

  .hero-photo-wrap {
    max-width: 280px;
    aspect-ratio: 1;
  }

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 1rem;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: left;
  }

  .hero-bottom-center {
    justify-content: flex-start;
  }

  .hero-label {
    top: 80px;
    left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(2rem, 14vw, 3.5rem);
  }

  .hero-photo-wrap {
    max-width: 200px;
  }

  .hero-bottom {
    padding: 1.5rem;
  }
}

/* Project cards - Swiss sharp */
.card {
  padding: 0;
  background: var(--card-background);
  color: #ffffff;
  border-radius: 0;
  transition: none;
  cursor: pointer;
  box-shadow: none;
}

.card a {
  color: #ffffff;
  transition: color 0.2s ease;
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.card a:hover {
  color: var(--primary-color);
  transform: none;
}

.card:hover {
  box-shadow: none;
  transform: none;
}

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

/* Section headers (projects, UI designs) */
.content-text {
  text-align: left;
  margin: 0 0 2rem 0;
  overflow: hidden;
}

.content-text h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.content-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
}

/* Project Images */
.card:nth-child(1) {
  background: url(../assets/project/project-one.png) center center/cover;
}

.card:nth-child(2) {
  background: url(../assets/project/project-two.png) center center/cover;
}

.card:nth-child(3) {
  background: url(../assets/project/project-three.png) center center/cover;
}

.card:nth-child(4) {
  background: url(../assets/project/project-four.png) center center/cover;
}

.card:nth-child(5) {
  background: url(../assets/project/project-five.png) center center/cover;
}

.card:nth-child(6) {
  background: url(../assets/project/project-six.png) center center/cover;
}
