/* Global Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #111111;
  zoom: 0.8;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff;
}

/* Logo */
.logo-link {
  display: inline-block;
  cursor: pointer;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
}

.logo-link:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

/* Navigation */
nav a {
  margin-left: 24px;
  font-weight: 500;
  font-size: 14px;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #777777;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
}

/* Typing Animation */
.typing-text {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #111111;
  animation: typing 5s steps(45, end) forwards, blink-caret 0.9s step-end infinite;
  margin-top: 20px;
  width: fit-content;
}

@keyframes typing {
  from { width: 0; }
  to { width: 650px; } /* Adjust as needed */
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: #111111; }
}

/* Rotating Font Animation */
@keyframes fontChange {
  0% { font-family: 'Libre Baskerville', serif; }
  25% { font-family: 'Cormorant Garamond', serif; }
  50% { font-family: 'Playfair Display', serif; }
  75% { font-family: 'EB Garamond', serif; }
  100% { font-family: 'Libre Baskerville', serif; }
}

/* Moving Background Text */
.moving-text {
  position: absolute;
  white-space: nowrap;
  font-size: 7rem;
  opacity: 0.04;
  animation: moveText 25s linear infinite;
  top: 35%;
  pointer-events: none;
  user-select: none;
}

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

/* Section Styles */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: lowercase;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.grid-item {
  background-color: #f9f9f9;
  padding: 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-transform: lowercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.grid-item:hover {
  background-color: #f0f0f0;
  transform: translateY(-5px);
}

/* Footer */
footer {
  padding: 30px 20px;
  text-align: center;
  font-size: 0.85rem;
  background-color: #fafafa;
  color: #777777;
  margin-top: 60px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Subtitle Animation */
.subtitle-coding {
  margin-top: 3px;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 400;
  color: #333333;
  display: inline-block;
  text-transform: lowercase;
  letter-spacing: 0.4px;
  animation: fontChange 2s infinite alternate;
}

/* Section Links */
.section a {
  color: #111111;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.section a:hover {
  color: #777777;
}

.footer-icon-link {
  display: inline-block;
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

.footer-icon-link:hover {
  opacity: 0.6;
}

.footer-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  opacity: 0.7;
}
