*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.12);
  --glass-highlight: rgba(255,255,255,0.18);
  --text: #f5f5f7;
  --muted: rgba(255,255,255,0.5);
  --accent: #2997ff;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2997ff, transparent);
  top: -200px; left: -200px;
}
body::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #bf5af2, transparent);
  bottom: -200px; right: -200px;
}

/* NAV */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 var(--glass-highlight);
}

nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 18px;
  border-radius: 50px;
  position: relative;
  transition: color 0.2s ease;
}

/* Liquid glass pill — pseudo-element so backdrop-filter is isolated */
nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.22s ease;

  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.07) 40%,
    rgba(255,255,255,0.04) 100%
  );
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  /* Top specular highlight — light catching the glass edge */
  border: 1px solid transparent;
  border-top-color: rgba(255,255,255,0.45);
  border-bottom-color: rgba(255,255,255,0.08);
  border-left-color: rgba(255,255,255,0.15);
  border-right-color: rgba(255,255,255,0.15);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 2px 12px rgba(255,255,255,0.06),
    0 4px 20px rgba(0,0,0,0.25);
}

nav a:hover::before,
nav a.active::before {
  opacity: 1;
}

nav a:hover,
nav a.active {
  color: #fff;
}

/* MAIN CONTENT */
main {
  position: relative;
  z-index: 1;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 80px;
  text-align: center;
}

/* HERO / ABOUT */
#about {
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.5;
}

.cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.cta-btn:hover { opacity: 0.85; transform: scale(1.03); }

/* SECTION TITLES */
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 480px;
}

/* GLASS CARD */
.glass-card {
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.02) 100%
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius);

  /* Asymmetric border — bright top edge like light on glass */
  border: 1px solid transparent;
  border-top-color: rgba(255,255,255,0.35);
  border-bottom-color: rgba(255,255,255,0.06);
  border-left-color: rgba(255,255,255,0.12);
  border-right-color: rgba(255,255,255,0.08);

  box-shadow:
    /* inner top specular line */
    inset 0 1px 0 rgba(255,255,255,0.28),
    /* inner bottom depth */
    inset 0 -1px 0 rgba(0,0,0,0.2),
    /* subtle inner side glows */
    inset 1px 0 0 rgba(255,255,255,0.07),
    /* outer ambient shadow */
    0 8px 32px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.2);

  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Soft sheen overlay — top-left catchlight */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 30% 0%,
    rgba(255,255,255,0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    inset 1px 0 0 rgba(255,255,255,0.08),
    0 16px 48px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.06);
}

/* PROJECTS */
#projects { gap: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 960px;
}

.project-card {
  padding: 32px;
  text-align: left;
}

.project-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), #bf5af2);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.project-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(41,151,255,0.12);
  padding: 4px 10px;
  border-radius: 50px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* QUALIFICATIONS */
#qualifications {
  gap: 0;
  align-items: center;
}

.qual-group {
  width: 100%;
  max-width: 960px;
  margin-bottom: 52px;
}

.qual-group-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: left;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.qual-card {
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.qual-badge-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41,151,255,0.2), rgba(191,90,242,0.2));
  border: 2px dashed var(--glass-border);
}

.qual-card strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.qual-card small {
  font-size: 12px;
  color: var(--muted);
}

.qual-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* UNIVERSITY CARD */
.uni-card {
  width: 100%;
  max-width: 960px;
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.uni-card-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.uni-card-header .qual-badge-placeholder {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}

.uni-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uni-card-meta strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.uni-card-meta small {
  font-size: 14px;
  color: var(--muted);
}

.uni-modules {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
}

.uni-modules-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.uni-modules ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.uni-modules li {
  font-size: 14px;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

/* LINKS */
#links { gap: 0; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 760px;
}

.link-card {
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.link-card span.icon {
  font-size: 28px;
}

.link-card strong {
  font-size: 15px;
  font-weight: 600;
}

.link-card small {
  font-size: 12px;
  color: var(--muted);
}

/* CONTACT */
#contact { gap: 24px; }

.contact-form {
  width: 100%;
  max-width: 560px;
  padding: 40px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}

.form-group textarea { min-height: 120px; }

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.submit-btn:hover { opacity: 0.85; transform: scale(1.02); }

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 600px) {
  nav a { padding: 7px 12px; font-size: 13px; }
  .contact-form { padding: 28px 20px; }
}
