:root {
  --primary: #0f172a;      /* main text */
  --accent: #0ea5e9;       /* buttons/links */
  --muted: #6b7280;        /* secondary text */
  --card: #ffffff;         /* card background */
}

/* GLOBAL RESET */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  /* soft pastel 45deg gradient */
  background: linear-gradient(45deg, #f9fafb 0%, #e0f2fe 30%, #e0f7f4 65%, #fce7f3 100%);
  background-attachment: fixed;
  color: var(--primary);
}

.member-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* NAV */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.35); /* liquid/glass */
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 10px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.3);
  z-index: 50;
}

/* COURSE section blocks (shared) */
.course-card {
  margin-top: 8px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
}

.course-grid .info-bold {
  font-weight: 700;
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
}

.brand-title {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cta {
  background: var(--accent);
  color: #f9fafb;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

/* HERO (section band) */
.hero {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  margin-top: 90px;
  padding: 60px 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.5);
}

.hero-left h1 {
  font-size: 32px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-left p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.link-primary {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

/* profile card */
.profile-card {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 14px 35px rgba(148, 163, 184, 0.55);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 28px;
  font-weight: 700;
}

.profile-name {
  font-weight: 700;
}

.profile-stats {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.profile-stats .stat {
  font-weight: 700;
}

.profile-links {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.links-row {
  display: flex;
  gap: 8px;
}

.links-row a {
  text-decoration: none;
  color: #0ea5e9;
  font-weight: 700;
}

/* SECTION base */
.section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 32px 20px;
  border-radius: 24px;
  backdrop-filter: blur(4px);
}

/* Softer backgrounds per section */
#projects.section {
  background: rgba(239, 246, 255, 0.9); /* soft blue */
}

#team.section {
  background: rgba(240, 253, 250, 0.9); /* soft teal */
}

#course.section {
  background: rgba(254, 252, 232, 0.9); /* light yellow-ish */
}

#contact.section {
  background: rgba(255, 247, 237, 0.9); /* soft warm */
}

.section h2 {
  margin: 0 0 18px;
}

/* PROJECTS grid */
#projects .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 in a line on desktop */
  gap: 18px;
}

/* Project card + hover */
.project {
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height:450px;
}

.project:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.8);
  border-color: rgba(59, 130, 246, 0.8);
}

/* thumb behaves like an image with hover zoom + color shift */
.thumb {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #e0f7f4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #0f172a;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    background 0.25s ease;
}

.project:hover .thumb {
  transform: scale(1.06);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.4);
  filter: saturate(1.05) brightness(1.05);
  background: linear-gradient(135deg, #bae6fd, #a7f3d0);
}

.view-link {
  margin-top: auto;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

/* TEAM */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.member {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.55);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.member:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.8);
  border-color: rgba(129, 140, 248, 0.9);
}

.m-ava {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #a5b4fc, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
}

.member-name {
  font-weight: 700;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.55);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  margin-bottom: 10px;
  background: #f9fafb;
  color: var(--primary);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #9ca3af;
}

.contact button {
  padding: 10px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #f9fafb;
  font-weight: 700;
  cursor: pointer;
}

.about-course .info-bold {
  font-weight: 700;
  margin-bottom: 4px;
}

/* FOOTER */
.footer {
  max-width: 1100px;
  margin: 30px auto 40px;
  text-align: center;
  padding: 0 20px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 60px;
  }

  #projects .grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 on tablets */
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    width: 94%;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  #projects .grid {
    grid-template-columns: 1fr; /* stack on mobile */
  }

  .team {
    grid-template-columns: 1fr;
  }

  .hero-left h1 {
    font-size: 24px;
  }

  .profile-card {
    order: -1;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }
}

/* UTILITIES */
.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

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