/* ============================================================
   ABHIRAJ THAKUR — RESUME WEBSITE
   Color Palette: Warm & Professional
   ============================================================ */

/* ---------- CSS VARIABLES (Custom Properties) ---------- */
:root {
  --cream:       #FDF6EC;
  --cream-dark:  #F2E8D5;
  --parchment:   #E8D9C0;
  --brown-deep:  #2E1B0E;
  --brown-mid:   #5C3A1E;
  --brown-light: #8B5E3C;
  --gold:        #C8923A;
  --gold-light:  #E8B96A;
  --text-main:   #2E1B0E;
  --text-muted:  #7A5C42;
  --white:       #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow-soft: 0 4px 24px rgba(46, 27, 14, 0.10);
  --shadow-card: 0 2px 16px rgba(46, 27, 14, 0.08);
  --radius:      12px;
  --transition:  0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 64px;
  /* Liquid glass — light surface */
  background: linear-gradient(
    135deg,
    rgba(253, 246, 236, 0.55) 0%,
    rgba(232, 217, 192, 0.35) 100%
  );
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0px 0px 2px rgba(0, 0, 0, 0.06),
    0px 2px 12px rgba(46, 27, 14, 0.08),
    inset 0px 1px 0px rgba(255, 255, 255, 0.7),
    inset 0px -1px 0px rgba(200, 146, 58, 0.15),
    inset 0px 0px 24px rgba(253, 246, 236, 0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.75;
}

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

.nav-links li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  min-height: 100vh;
  padding: 120px 4rem 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  background: linear-gradient(135deg, var(--cream) 60%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 146, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--brown-deep);
  margin-bottom: 1rem;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-summary {
  font-size: 0.975rem;
  color: var(--brown-light);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background-color: var(--brown-mid);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Photo */
.hero-photo-wrap {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  animation: fadeIn 1s ease 0.4s both;
  margin-right: -2rem;
}

.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}

.ring-outer {
  width: 420px;
  height: 420px;
  top: 0; left: 0;
  opacity: 0.35;
  animation: spin 18s linear infinite;
  border-style: dashed;
}

.ring-inner {
  width: 375px;
  height: 375px;
  top: 22px; left: 22px;
  opacity: 0.2;
}

.hero-photo {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  /* Warm filter: neutralises cool gray bg, warms skin tones to match cream palette */
  filter: sepia(0.18) saturate(1.15) brightness(1.04) contrast(1.02);
  border: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(46, 27, 14, 0.22);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- SECTION COMMONS ---------- */
.section {
  padding: 80px 4rem;
}

.section-alt {
  background-color: var(--cream-dark);
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.section-title.light {
  color: var(--cream);
}

.section-rule {
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin-bottom: 3rem;
  border-radius: 2px;
}

.section-rule.light {
  background-color: var(--gold-light);
}

/* ---------- EDUCATION ---------- */
.edu-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.edu-card {
  flex: 1;
  min-width: 240px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--parchment);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.edu-card.featured {
  border-top-color: var(--gold);
  flex: 1.4;
}

.edu-badge {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.edu-institution {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 0.3rem;
}

.edu-degree {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.edu-stream {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.edu-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.edu-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- ACHIEVEMENTS ---------- */
.ach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ach-card {
  flex: 1 1 280px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ach-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.ach-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.ach-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 0.5rem;
}

.ach-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- POSITIONS OF RESPONSIBILITY ---------- */
.por-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--parchment);
  padding-left: 2rem;
}

.por-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.por-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gold);
  border: 2px solid var(--cream);
}

.por-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.por-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown-deep);
}

.por-year {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  background-color: var(--cream-dark);
  padding: 0.15rem 0.65rem;
  border-radius: 100px;
}

.por-org {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brown-light);
  margin-bottom: 0.6rem;
}

.por-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
}

/* ---------- SKILLS ---------- */
.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-mid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-block;
  background-color: var(--white);
  color: var(--brown-mid);
  border: 1.5px solid var(--parchment);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 400;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.skill-tag:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  cursor: default;
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  background-color: var(--brown-deep);
}

.contact-sub {
  color: var(--parchment);
  font-size: 1rem;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.contact-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 200px;
  /* Liquid glass — dark surface */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0px 0px 2px rgba(0, 0, 0, 0.18),
    0px 4px 24px rgba(0, 0, 0, 0.22),
    inset 2px 2px 1px -2px rgba(255, 255, 255, 0.35),
    inset -2px -2px 1px -2px rgba(0, 0, 0, 0.3),
    inset 0px 0px 0px 1px rgba(200, 146, 58, 0.18),
    inset 0px 0px 12px rgba(200, 146, 58, 0.06);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--cream);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  background: linear-gradient(
    135deg,
    rgba(200, 146, 58, 0.18) 0%,
    rgba(200, 146, 58, 0.06) 100%
  );
  border-color: rgba(200, 146, 58, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0px 0px 2px rgba(0, 0, 0, 0.18),
    0px 8px 32px rgba(0, 0, 0, 0.28),
    inset 2px 2px 1px -2px rgba(255, 255, 255, 0.45),
    inset -2px -2px 1px -2px rgba(0, 0, 0, 0.25),
    inset 0px 0px 0px 1px rgba(200, 146, 58, 0.4),
    inset 0px 0px 16px rgba(200, 146, 58, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-body);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 0.875rem;
  color: var(--parchment);
  word-break: break-all;
}

/* ---------- FOOTER ---------- */
#footer {
  background-color: var(--brown-deep);
  border-top: 1px solid rgba(200,146,58,0.15);
  padding: 1.5rem 4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  color: rgba(232, 217, 192, 0.4);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- PERSONALITY / BIG FIVE ---------- */
.personality-section {
  background-color: var(--cream);
}

.personality-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.personality-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Main radar side */
.main-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 280px;
}

.main-radar-wrap canvas {
  max-width: 340px;
  width: 100%;
}

.radar-scores {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 340px;
}

.rs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--parchment);
  background-color: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  user-select: none;
}

.rs-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.rs-item.active {
  border-color: var(--gold);
  background-color: rgba(200, 146, 58, 0.06);
  box-shadow: var(--shadow-card);
}

.rs-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brown-mid);
  font-family: var(--font-body);
}

.rs-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

/* Trait accent colours */
.rs-a.active { border-color: #5BAD8F; background: rgba(91,173,143,0.07); }
.rs-a.active .rs-val { color: #5BAD8F; }
.rs-c.active { border-color: #5B8FC8; background: rgba(91,143,200,0.07); }
.rs-c.active .rs-val { color: #5B8FC8; }
.rs-e.active { border-color: #C8AE5B; background: rgba(200,174,91,0.07); }
.rs-e.active .rs-val { color: #C8AE5B; }
.rs-n.active { border-color: #C87A5B; background: rgba(200,122,91,0.07); }
.rs-n.active .rs-val { color: #C87A5B; }
.rs-o.active { border-color: #9B5BC8; background: rgba(155,91,200,0.07); }
.rs-o.active .rs-val { color: #9B5BC8; }

/* Sub radar side */
.sub-radar-wrap {
  flex: 1.2;
  min-width: 280px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--gold);
}

.sub-radar-header {
  margin-bottom: 1rem;
}

.sub-radar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown-deep);
}

.sub-radar-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sub-radar-wrap canvas {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  #navbar {
    padding: 0 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links li a {
    font-size: 0.75rem;
  }

  .hero-section {
    flex-direction: column;
    padding: 120px 1.5rem 60px;
    text-align: center;
  }

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

  .hero-photo-wrap {
    width: 280px;
    height: 280px;
    margin-right: 0;
  }

  .ring-outer { width: 280px; height: 280px; }
  .ring-inner { width: 250px; height: 250px; top: 15px; left: 15px; }

  .hero-photo {
    width: 240px;
    height: 240px;
    top: 20px;
    left: 20px;
  }

  .section {
    padding: 60px 1.5rem;
  }

  .edu-grid,
  .ach-grid,
  .contact-grid {
    flex-direction: column;
  }

  .por-list {
    padding-left: 1.5rem;
  }
}
