/* ============================================
   Elegant Dark Theme — Charcoal + Gold Accents
   ============================================ */

body {
  font-family: 'Open Sans', sans-serif;
  padding-top: 54px;
  color: #c8ccd0;
  background-color: #14171c;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #e8ecf0;
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
}

h2 {
  font-size: 3.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, transparent);
  border-radius: 2px;
}

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 1.35rem;
  color: #a0aab4;
}

/* Links */
a {
  color: #c9a84c;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover, a:focus, a:active {
  color: #e0c76e;
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.15);
}

/* Social Icons */
.list-social-icons a {
  color: #8a9199;
}

.list-social-icons a:hover {
  color: #c9a84c;
}

.list-social-icons a .fa-lg {
  font-size: 1.75rem;
}

.list-icons {
  font-size: 3rem;
}

.list-icons .list-inline-item i:hover {
  color: #c9a84c;
}

/* Sidebar Navigation */
#sideNav {
  border-right: 1px solid rgba(201, 168, 76, 0.15);
}

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.7);
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
  background-color: rgba(201, 168, 76, 0.08);
  border-left-color: #c9a84c;
  color: #ffffff;
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.4rem solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }
}

/* Primary Colors */
.bg-primary {
  background: linear-gradient(180deg, #1b1f26 0%, #12151a 100%) !important;
}

.text-primary {
  color: #c9a84c !important;
}

/* Sections */
section.resume-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  background-color: #14171c;
  position: relative;
}

section.resume-section:nth-child(even) {
  background-color: #181c22;
}

section.resume-section .resume-item .resume-date {
  min-width: none;
}

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh;
  }
  section.resume-section .resume-item .resume-date {
    min-width: 18rem;
  }
}

@media (min-width: 992px) {
  section.resume-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Resume Items — Card Style */
.resume-item {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.resume-item:hover {
  background: rgba(201, 168, 76, 0.03);
  border-color: rgba(201, 168, 76, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.resume-item h3 {
  color: #e8ecf0;
}

.resume-item .subheading {
  color: #c9a84c;
}

.resume-item ul {
  padding-left: 1.2rem;
}

.resume-item ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  color: #b0b8c0;
}

/* Date badges */
.resume-date .text-primary {
  font-weight: 600;
  background: rgba(201, 168, 76, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Muted text */
.text-muted {
  color: #6b7580 !important;
}

/* Certifications */
.fa-ul .fa-li.fa.fa-trophy.text-warning {
  color: #c9a84c !important;
}

/* Skills checkmarks */
.fa-ul .fa-li.fa.fa-check {
  color: #5ba87c;
}

/* Publications file icon */
.fa-ul .fa-li.fa.fa-file-text-o {
  color: #7a8a9a;
}

/* ============================================
   Scroll-triggered Animations
   ============================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation-duration: 0.6s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.animate-fade-up.animated { animation-name: fadeInUp; }
.animate-fade-left.animated { animation-name: fadeInLeft; }
.animate-fade-right.animated { animation-name: fadeInRight; }
.animate-fade-in.animated { animation-name: fadeIn; }

/* Stagger children */
.resume-item.animate-on-scroll.animated .resume-content {
  animation: fadeInLeft 0.6s ease-out both;
}

.resume-item.animate-on-scroll.animated .resume-date {
  animation: fadeInRight 0.6s ease-out both;
  animation-delay: 0.15s;
}

/* Section headings */
section.resume-section h2 { opacity: 0; }
section.resume-section h2.animated {
  animation: fadeInLeft 0.5s ease-out both;
}

/* Social icons hover */
.list-social-icons a .fa-stack {
  transition: transform 0.3s ease, color 0.3s ease;
}

.list-social-icons a:hover .fa-stack {
  transform: translateY(-4px);
}

/* Trophy pulse on hover */
.fa-ul li:hover .fa-trophy {
  animation: pulse 0.4s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Skill check slide */
.fa-ul .fa-li.fa.fa-check {
  transition: transform 0.3s ease;
}

.fa-ul li:hover .fa-li.fa.fa-check {
  transform: translateX(3px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; }
  .animate-on-scroll.animated,
  .resume-item.animate-on-scroll.animated .resume-content,
  .resume-item.animate-on-scroll.animated .resume-date,
  section.resume-section h2.animated {
    animation: none;
    opacity: 1;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #14171c;
}

::-webkit-scrollbar-thumb {
  background: #2a2f38;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3f48;
}
