main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  padding-top: 100px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main {
    padding: 15px;
    padding-top: 140px; /* Account for fixed header on mobile (taller due to column layout) */
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  main {
    padding: 10px;
    padding-top: 130px; /* Account for fixed header on small mobile */
    margin: 5px auto;
  }
}

h2 {
  margin-bottom: 20px;
  background: linear-gradient(to right, #2563eb, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.typewriter-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.typewriter {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #f0f0f0;
}

.achievements-button-container {
  margin-top: 30px;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}
  
.achievements-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #2563eb, #60a5fa, #a78bfa);
  color: #0a0a0a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, background;
}

.achievements-button:hover {
  color: #0a0a0a;
  background: linear-gradient(135deg, #3b82f6, #7c9eff, #b794f6);
  transform: translateZ(0) translateY(-2px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  text-align: center;
  padding: 120px 20px 30px; /* Increased top padding to account for fixed header */
}

.hero-title h1 {
  font-size: 3rem;
  background: linear-gradient(to right, #2563eb, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Arial, sans-serif;
  filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.7));
}

@media (max-width: 768px) {
  .hero-title h1 {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-title {
    padding: 140px 15px 20px;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  margin-top: 15px;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 1s;
}

.hero-social-icons {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 1.5s;
  margin-top: 20px;
}
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

.scroll-arrow {
  font-size: 2.5rem;
  color: #9ad1ff;
  margin-top: 20px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.social-icons a {
  color: white;
  font-size: 32px;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #00bcd4; /* teal highlight */
  transform: scale(1.2);
}

