/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01" 1, "ss02" 1, "cv01" 1, "cv03" 1;
  background-color: #f8f8f8;
  color: #333333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .main {
    padding: 6rem 1.5rem;
  }
}

.content {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

/* Header */
.header {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 1s ease-out;
}

@media (min-width: 768px) {
  .header {
    margin-bottom: 6rem;
  }
}

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

.title {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .title {
    font-size: 2.25rem;
  }
}

.divider {
  height: 1px;
  background-color: #333333;
  opacity: 0.5;
  margin-bottom: 1.5rem;
  width: 0;
  transition: width 1.2s ease-out 0.3s;
}

.divider.animate {
  width: 4rem;
}

.subtitle {
  font-size: 0.875rem;
  color: #666666;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.8s ease-out 0.5s;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1rem;
  }
}

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

/* About section */
.about {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 1s ease-out 0.7s;
}

@media (min-width: 768px) {
  .about {
    margin-bottom: 6rem;
  }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.description-main {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .description-main {
    font-size: 1.25rem;
  }
}

.description-secondary {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 42rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.8s ease-out 1s;
}

.description-secondary.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.8s ease-out 1.2s;
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
}

.copyright-text {
  font-size: 0.875rem;
  color: #666666;
  font-weight: 300;
}

.contact {
  display: flex;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease-out;
  gap: 0.5rem;
}

.contact-link:hover {
  color: #333333;
  transform: translateX(0.25rem);
}

.contact-link:focus-visible {
  outline: 2px solid #333333;
  outline-offset: 2px;
  border-radius: 2px;
}

.mail-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease-out;
}

.contact-link:hover .mail-icon {
  transform: scale(1.1);
}

/* Text selection */
::selection {
  background-color: rgba(51, 51, 51, 0.1);
  color: #333333;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Loading state */
.loading {
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .main {
    padding: 2rem 1rem;
  }

  .header {
    margin-bottom: 3rem;
  }

  .about {
    margin-bottom: 3rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .description-main {
    font-size: 1.1rem;
  }
}
