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

:root {
  --primary: 189 100% 42%;
  --accent: 200 100% 50%;
  --background: 189 60% 95%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --border: 214 32% 91%;
  --destructive: 0 84% 60%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border), 0.5);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-img {
  height: 2rem;
  width: auto;
}

nav {
  display: flex;
  gap: 0.25rem;
}

nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: hsl(var(--foreground), 0.7);
  transition: all 0.2s;
  position: relative;
}

nav a:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

nav a.active {
  color: hsl(var(--primary));
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: hsl(var(--primary));
  border-radius: 999px;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.375rem;
}

.mobile-menu-button:hover {
  background-color: hsl(var(--muted));
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  min-width: 200px;
  margin-top: 0.5rem;
  margin-right: 1rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: hsl(var(--foreground), 0.7);
  transition: all 0.2s;
  border-bottom: 1px solid hsl(var(--border), 0.3);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--muted), 0.5);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .logo-text {
    display: none;
  }
}

/* Main Content */
main {
  margin-top: 4rem;
  min-height: calc(100vh - 4rem);
}

/* Footer */
footer {
  border-top: 1px solid hsl(var(--border), 0.5);
  background-color: hsl(var(--card));
  margin-top: auto;
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: hsl(var(--primary));
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.75;
  text-decoration: none;
}

.footer-section a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border), 0.5);
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.footer-icon {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-icon svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Utility Classes */
.text-primary {
  color: hsl(var(--primary));
}

.text-accent {
  color: hsl(var(--accent));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.bg-card {
  background-color: hsl(var(--card));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.border {
  border: 1px solid hsl(var(--border));
}

.rounded {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 999px;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Page-specific Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: hsl(var(--card));
  padding: 6rem 1rem;
}

.gradient-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: hsl(var(--primary), 0.5);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: hsl(var(--primary));
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px hsl(var(--primary), 0.4);
}

.professor-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid hsl(var(--primary), 0.2);
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background-color: #e5e7eb;
  color: #374151;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.link-button:hover {
  background-color: #d1d5db;
}

.icon {
  width: 2rem;
  height: 2rem;
}

.icon-lg {
  width: 3rem;
  height: 3rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.brain-icon {
  width: 3rem;
  height: 3rem;
  aspect-ratio: 1 / 1;
}