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

body {
  font-family: serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styles */
header {
  padding: 20px 0;
}

.logo {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Main content styles */
main {
  flex: 1;
  padding: 30px 0;
}

.hero {
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 700px;
}

/* Typing effect styles */
h1 {
  white-space: normal; /* Allow text to wrap */
  overflow: visible; /* Show all content */
  max-width: 100%; /* Ensure it uses full width available */
  word-wrap: break-word; /* Break long words if needed */
  line-height: 1.2; /* Consistent line height */
  position: relative; /* For proper cursor positioning */
}

/* Container for typing effect */
.typing-container {
  position: relative; /* For proper cursor positioning */
}

/* Cursor styling */
.cursor {
  display: inline-block;
  margin-left: 1px;
  animation: blink-caret 0.75s step-end infinite; /* Blinking cursor animation */
  vertical-align: baseline;
  font-weight: 400; /* Match heading font weight */
}

/* Blinking cursor animation */
@keyframes blink-caret {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.content {
  opacity: 1; /* Content section is visible */
  transition: all 1.2s ease-in-out;
}

/* Lottie animation container */
.lottie-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

/* Content paragraphs container */
.content-paragraphs {
  opacity: 0;
  transition: all 1.2s ease-in-out;
  transform: translateY(10px); /* Slight upward movement during fade-in */
}

/* Smoother fade-in for content paragraphs */
.content-paragraphs.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hide Lottie when content appears */
.lottie-container.hide {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 700px;
}

/* Footer styles */
footer {
  padding: 40px 0 20px;
  font-size: 0.9rem;
}

.contact {
  margin-bottom: 20px;
}

.contact-link {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

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

.copyright {
  opacity: 0.5;
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 30px 20px;
  }

  main {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }

  .content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  main {
    padding: 30px 0;
  }
}

/* Center header on mobile and vertical tablet */
@media (max-width: 768px) {
  header {
    text-align: center;
  }

  .logo {
    display: inline-block;
  }
}
