:root {
  --dark: #1c1c1e;
  --light: #f5f5f7;
  --mid: #86868b;
  --accent: #1d1d1f;
  --background: #f5f5f7;
  --text: #1d1d1f;
}

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

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

/* Prevent automatic scrolling on load */
html:target {
  scroll-behavior: auto;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
}

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

/* Header */
header {
  padding: 80px 0 40px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-title {
  font-size: 72px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.site-subtitle {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.location {
  color: var(--mid);
  margin-bottom: 40px;
  font-size: 16px;
  display: none;
}

/* Hero Section */
.hero {
  margin-bottom: 120px;
}

.hero .container > * {
  animation: heroReveal 1s ease forwards;
  animation-play-state: paused;
}

.hero .hero-image {
  animation-delay: 0.2s;
}

.hero .hero-text {
  animation-delay: 0.4s;
}

.hero .scroll-container {
  animation-delay: 0.6s;
}

.hero.loaded .container > * {
  animation-play-state: running;
}

.hero-image {
  width: 100%;
  height: 45vh;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--background);
  transition: all 0.3s ease;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.85;
  transition: all 0.5s ease;
}

.hero-image:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.02);
}

.hero-text {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.022em;
  max-width: 650px;
  margin-bottom: 40px;
}

.scroll-container {
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background-color: var(--text);
  color: var(--light);
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: var(--mid);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 120px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 60px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.info-content {
  font-size: 16px;
  line-height: 1.5;
  color: var(--mid);
}

/* Expertise */
.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin: 0 auto;
  max-width: 100%;
}

.expertise-grid > div {
  flex: 1 1 calc(50% - 30px);
  min-width: 280px;
}

/* Brands Section */
.brands-section {
  padding: 100px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.brands-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logos-wrapper {
  display: flex;
  padding: 0;
  margin: 0 -24px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logos-container {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 0 30px;
  animation: scroll 30s linear infinite;
  min-width: 100%;
}

.logos-container:nth-child(2) {
  animation: scroll2 30s linear infinite;
  animation-delay: -15s;
}

.logo {
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.3);
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll2 {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Portfolio */
.portfolio-section {
  padding-top: 100px;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.project-item {
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 32px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.2s ease;
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-thumbnail {
  width: 48px;
  height: 48px;
}

.project-content {
  flex: 1;
}

.project-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
}

.project-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.project-title a:hover {
  color: var(--mid);
}

[data-title]:hover:after {
  content: attr(data-title);
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1;
  margin-top: 25px;
  left: 50%;
  transform: translateX(-50%);
}

.project-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--mid);
  margin-bottom: 16px;
  max-width: 650px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--mid);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metrics-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.metric {
  font-size: 14px;
  color: var(--mid);
}

.metric strong {
  color: var(--text);
}

/* Footer */
footer {
  padding: 100px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.contact-link {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--mid);
}

/* Calendar Section */
.calendar-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.calendar-intro {
  font-size: 18px;
  color: var(--mid);
  margin-bottom: 20px;
  max-width: 600px;
}

.calendar-embed {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Reveal on scroll animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  transform: scale(0.9);
}

/* Initial hero reveal animation */
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero.loaded .container > * {
  animation-play-state: running;
}

@media (max-width: 768px) {
  .site-title {
    font-size: 48px;
  }

  .site-subtitle {
    font-size: 24px;
  }

  .hero-text {
    font-size: 24px;
  }

  .info-grid,
  .expertise-grid,
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .location {
    margin-bottom: 40px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .projects-list {
    grid-template-columns: 1fr;
  }
  
  .project-item {
    padding: 24px;
  }

  .expertise-grid {
    gap: 40px;
  }

  .expertise-grid > div {
    flex: 1 1 100%;
  }

  .info-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .info-content {
    font-size: 15px;
    line-height: 1.4;
  }
} 