/* ---- COLOR VARIABLES ---- */
:root {
  --accent: #ffd749;
  --accent2: #22d685;
  --accent-dark: #232234;
  --dark-bg: #161524;
  --bright-bg: #f5f6ff;
  --card-bg: #fff;
  --card-dark-bg: #232234;
  --text-main: #1b1d1f;
  --shadow: 0 4px 24px rgba(40,45,66, 0.07);
}

/* ---- BODY, BACKGROUND, SCROLLBAR ---- */
body {
  background: linear-gradient(135deg,#fafbff 0%,#fdf6bc 55%,#fafbff 100%);
  color: var(--text-main);
  min-height: 100vh;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
}
body::-webkit-scrollbar {
  width:10px;
  background:#f7f7fd;
}
body::-webkit-scrollbar-thumb {
  background:#eacb68;
  border-radius:8px;
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--card-bg) !important;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(152, 142, 53, .04);
  margin-bottom: 2rem;
}
.navbar .navbar-brand {
  color: var(--accent-dark) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}
.navbar-brand img {
  margin-right: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.navbar-nav .nav-link {
  color: #222 !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color .2s;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--accent2) !important;
}

/* ---- PROFILE PORTRAIT ---- */
.about-portrait {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 36px rgba(39, 40, 65, 0.16), 0 2px 6px #ffdea7;
  background: #fff;
  transition: box-shadow .3s;
}
.about-portrait:hover {
  box-shadow: 0 8px 46px 8px #ffd74922, 0 2px 12px #ffdea7;
}

/* ---- CARD ---- */
.card {
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--card-bg);
  border: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 8px 48px -3px #d2c06a22;
}
.card-body {
  padding: 1.4rem 1.6rem;
}
.card-title {
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}

/* ---- TABLES ---- */
.table {
  background: inherit !important;
  color: #393a41;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}
.table th,
.table td {
  background: inherit !important;
  border: 0;
  border-bottom: 2px solid #fcf6dc !important;
  vertical-align: middle;
  font-size: 1rem;
  padding: 0.75rem 0.7rem !important;
}
.table th {
  color: #a19334;
  letter-spacing: 0.03em;
}
.table td {
  color: #31314d;
}
@media screen and (max-width: 575px) {
  .table th,.table td { font-size:0.94rem;}
}

/* ---- LIST GROUP ---- */
.list-group-item {
  border:1px solid #fcf6dc !important;
  border-radius:6px !important;
  margin-bottom:6px;
  background: #fff !important;
  font-size: 1.02rem;
  color: #2a2a29;
}
.list-group-item a { color: #8a7a28; font-weight:600; }
.list-group-item .badge { background-color: var(--accent) !important; color: #232234 !important; font-weight:600; font-size:.98em;}

/* ---- PROJECT CARDS ---- */
#project-list .card {
  min-height: 225px;
  box-shadow: 0 2px 24px 0 #f9e89b33;
  transition: box-shadow .28s;
}
#project-list .card-title {
  color: #786d26;
}
#project-list .btn-outline-primary {
  border-color: var(--accent2);
  color: var(--accent2);
}
#project-list .btn-outline-primary:hover {
  background: var(--accent2);
  color: #fff;
}

/* ---- PROGRESS BARS/SKILLS ---- */
.progress {
  height: 8px;
  border-radius: 8px;
  background: #f7e895;
}
.progress-bar {
  background: linear-gradient(90deg, var(--accent2) 0%, var(--accent) 100%);
  border-radius: 8px;
}

/* ---- SECTION HEADINGS/LAYOUT ---- */
section h3 {
  font-size: 1.33rem;
  font-weight: 600;
  letter-spacing: 0.021em;
  color: #817711;
  margin-bottom: 0.92em;
}
section {
  margin-bottom: 2.7em;
}

/* ---- FOOTER ---- */
footer {
  background: #f7f7f8;
  color: #a39327;
  letter-spacing: 0.06em;
  font-size: .98em;
  border-radius: 12px;
  margin-top: 2em;
  box-shadow: 0 1px 10px #ffecb2a1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 575px) {
  .about-portrait { width:88px;height:88px; }
  .card-body { padding:1.05rem 1rem; }
  .card { border-radius: 10px; }
  section { margin-bottom: 2em; }
  main.container, .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ---- OTHER MISC/EMPHASIS ---- */
small, .text-secondary { color:#6b6823 !important;}
.text-primary, .text-success, .text-warning { font-weight:600 !important; }
.mt-5, .mb-5 { margin-top:2.5rem !important; margin-bottom:2.5rem !important; }
a { transition: color .18s; }
a:hover { color: var(--accent2) !important; text-decoration: underline; }
::-webkit-selection { background: #fffacd; }
::selection { background: #fffacd; }
