@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --primary: #1a1a2e;
  --accent: #c8973a;
  --accent-light: #f0c96e;
  --bg: #f8f5f0;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b6b7b;
  --border: #e2ddd6;
  --success: #2d7a4f;
  --danger: #b03030;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(26,26,46,0.08);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NAV ── */
nav {
  background: var(--primary);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-logo span { color: #ffffff; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(200,151,58,0.18);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(200,151,58,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: #fff;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-dark {
  background: var(--primary);
  color: #fff;
}

.btn-dark:hover { background: #2a2a4e; transform: translateY(-1px); }

/* ── SECTIONS ── */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── FEATURE CARDS (Home) ── */
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,151,58,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.supervisor-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.supervisor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.supervisor-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.25rem; }
.supervisor-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.supervisor-badge {
  display: inline-block;
  background: rgba(200,151,58,0.25);
  color: var(--accent-light);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 0.4rem;
}

/* ── TIPS PAGE ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.tip-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.tip-card ul { padding-left: 1.1rem; list-style: disc; }
.tip-card ul li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.35rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg); }

.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.1rem;
}

/* ── CV BUILDER ── */
.cv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.cv-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 3px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 1.25rem 0 0.85rem;
}

.error-msg {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 3px;
  display: none;
}

.input-error { border-color: var(--danger) !important; }

.entry-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.remove-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}

.remove-btn:hover { background: rgba(176,48,48,0.08); }

.add-btn {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  width: 100%;
  padding: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,151,58,0.05); }

.toggle-section-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.collapsible { overflow: hidden; transition: max-height 0.3s ease; }
.collapsible.hidden { max-height: 0 !important; }

/* ── CV PREVIEW ── */
.cv-preview-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cv-preview-toolbar {
  background: var(--primary);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-preview-toolbar span {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

#cv-output {
  padding: 2rem;
  min-height: 500px;
  font-size: 0.88rem;
  line-height: 1.6;
}

#cv-output h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.1rem;
}

#cv-output .cv-contact-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

#cv-output .cv-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  margin: 1rem 0 0.6rem;
}

#cv-output .cv-entry-title { font-weight: 500; font-size: 0.9rem; }
#cv-output .cv-entry-sub { font-size: 0.82rem; color: var(--text-muted); }
#cv-output .cv-entry-desc { font-size: 0.85rem; margin-top: 0.25rem; }

#cv-output .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

#cv-output .cv-skill-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
}

#cv-output .cv-placeholder {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ── INTERVIEW PREP ── */
.major-selector-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.major-selector-wrap select {
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
  outline: none;
  min-width: 280px;
  transition: border-color 0.2s;
}

.major-selector-wrap select:focus { border-color: var(--accent); }

.progress-wrap {
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.progress-bar-bg {
  background: var(--bg);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 20px;
  width: 0%;
  transition: width 0.4s ease;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.flip-card {
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.flip-front {
  background: var(--bg-card);
}

.flip-back {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
}

.flip-front p { font-size: 0.92rem; font-weight: 500; line-height: 1.5; }
.flip-back p { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

.flip-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.flip-back .flip-hint { color: rgba(255,255,255,0.45); }

.practiced-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--success);
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.flip-card.practiced .practiced-label { display: flex; }

.mark-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.mark-btn:hover { background: rgba(255,255,255,0.1); }
.flip-card.practiced .flip-front { border-color: var(--success); }

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.contact-info-item .ci-icon {
  width: 36px;
  height: 36px;
  background: rgba(200,151,58,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item p { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.contact-info-item strong { font-size: 0.92rem; color: #fff; display: block; margin-bottom: 2px; }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.success-msg {
  display: none;
  background: rgba(45,122,79,0.1);
  border: 1px solid rgba(45,122,79,0.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--success);
  font-size: 0.92rem;
  margin-top: 1rem;
  align-items: center;
  gap: 0.5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  margin-top: 4rem;
}

footer strong { color: var(--accent); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 2rem;
}

/* ── PRINT ── */
@media print {
  nav, footer, .cv-form-panel, .cv-preview-toolbar, .btn { display: none !important; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-preview-panel { box-shadow: none; border: none; }
  #cv-output { padding: 0; }
  body { background: #fff; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid, .cv-layout, .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem; }
  .section { padding: 2.5rem 1.25rem; }
}
