/* Base Styles */
body {
  background: linear-gradient(120deg, #00c6ff 0%, #0072ff 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #012F4A;
}

a {
  color: #0b7bbb;
  text-decoration: none;
  word-break: break-word;
}

a:hover {
  text-decoration: underline;
}

nav {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.93);
  padding: 12px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
}

nav a {
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

nav a:hover {
  background: #ebf7ff;
}

section {
  max-width: 1080px;
  margin: 0 auto 40px auto;
  padding: 40px 20px 20px 20px;
  box-sizing: border-box;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.2em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}

/* Projects Grid and Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 24px 20px 20px 20px;
  transition: transform 0.33s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  cursor: default;
}

.project-card:hover {
  transform: scale(1.03) translateY(-8px) rotate(-1deg);
  box-shadow: 0 8px 34px rgba(0, 88, 255, 0.13);
  background: linear-gradient(120deg, #e8f3ff, #fafdff);
}

.project-card h3 {
  margin-bottom: 0.5em;
  color: #004a99;
  font-size: 1.25rem;
}

.project-card p {
  margin-top: 0;
  margin-bottom: 0.8em;
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-card a {
  color: #0066cc;
  font-weight: 600;
  font-size: 0.95rem;
}

.project-card a:hover {
  text-decoration: underline;
}

/* Lists */
ul {
  padding-left: 20px;
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 700px) {
  section {
    padding: 28px 12px 20px 12px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  nav {
    flex-direction: column;
    gap: 12px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75em;
  }
  h3 {
    font-size: 1.1rem;
  }
  nav {
    font-size: 1rem;
  }
}
