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

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-accent: #0057ff;
  --color-border: #e5e5e5;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 760px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 100;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--color-text);
}

.floating-icons {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 99;
}

.floating-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.floating-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 80, 0.45) 0%, rgba(255, 180, 40, 0.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.floating-icon:hover::before {
  opacity: 1;
}

.floating-icon:hover {
  transform: scale(1.05);
}

.floating-icon img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.icon-label {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 0.75rem;
  color: #ffffff;
  text-align: center;
  margin-top: 0.5rem;
  max-width: 180px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.floating-icon:hover .icon-label {
  opacity: 1;
  transform: translateY(0);
}

nav, main, footer {
  transition: filter 0.3s ease;
}

nav.dimmed, main.dimmed, footer.dimmed {
  filter: brightness(0.35);
}

/* Homepage */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.home-name {
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.linkedin-link {
  color: #0a66c2;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.linkedin-link:hover {
  opacity: 0.7;
}

.photo-icon {
  position: fixed;
  top: 7.5rem;
  left: 2.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease;
  z-index: 99;
}

.photo-icon::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 80, 0.45) 0%, rgba(255, 180, 40, 0.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.photo-icon:hover::before {
  opacity: 1;
}

.photo-icon:hover {
  transform: scale(1.15);
}

.photo-icon svg {
  width: 48px;
  height: 48px;
}

.home-hero {
  height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Projects section */
.projects-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.projects-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.home-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.home-icon::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 80, 0.45) 0%, rgba(255, 180, 40, 0.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-icon:hover::before {
  opacity: 1;
}

.home-icon:hover {
  transform: scale(1.05);
}

.home-icon img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Sections */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

/* Hero */
#hero {
  padding-top: 7rem;
  padding-bottom: 6rem;
}

#hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.8;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
  opacity: 1;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-text p {
  color: #333;
}

.skills h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-list li {
  background: #f4f4f4;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #333;
}

/* Projects */
.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: #aaa;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tags span {
  font-size: 0.75rem;
  background: #f0f0f0;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  color: #555;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Contact */
#contact p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.contact-links a:hover {
  border-color: var(--color-text);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    padding: 0.875rem 1.25rem;
  }

  nav ul {
    gap: 1.25rem;
  }

  main {
    padding: 0 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
