/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #1f1f1f;
  padding: 0.6rem;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header.navbar li {
  display: inline;
}

/* Sections */
.section {
  padding: 20px 16px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 0.4em;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

.card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  margin: 0.75rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.scroll-down {
  font-size: 1.8rem;
  display: inline-block;
  margin-top: 1rem;
  animation: bounce 2s infinite;
}

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

footer {
  text-align: center;
  padding: 1rem;
  background: #1a1a1a;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Projects section list cleanup */
#projects ul {
  list-style-type: none;
  padding: 0;
  margin: 0.75rem 0;
}

#projects li {
  margin: 0.25rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  header.navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .card {
    padding: 0.85rem;
  }

  .scroll-down {
    font-size: 1.4rem;
  }

  .section {
    padding: 24px 12px;
  }
}

.email-link {
  display: inline-block;
  margin: 0.5rem 0;
  font-weight: 500;
  color: #00e5ff;
  font-size: 1rem;
  word-break: break-all;
}

.email-link:hover {
  text-decoration: underline;
}
