/*!
 * Enhanced Dark Theme with Animations
 */

/* ===== DARK THEME BASE ===== */
body {
  font-family: Muli, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding-top: 54px;
  color: #f0f0f0;
  background: #1a1a2e;
  background-attachment: fixed;
  overflow-x: hidden;
}

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

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(80, 80, 120, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(100, 80, 150, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Saira Extra Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: none;
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
  animation: fadeInUp 1s ease-out;
}

h2 {
  font-size: 3.5rem;
  position: relative;
  display: inline-block;
  animation: slideInLeft 0.8s ease-out;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: #6366f1;
  animation: expandWidth 1s ease-out 0.5s forwards;
}

@keyframes expandWidth {
  to { width: 100%; }
}

h3 {
  font-size: 2rem;
  color: #e0e0e0;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  animation: fadeIn 1.2s ease-out;
  color: #d0d0d0;
}

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  color: #a0a0a0;
  margin-bottom: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5), 0 0 10px rgba(138, 43, 226, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 30px rgba(138, 43, 226, 0.5);
  }
}

/* ===== SOCIAL ICONS ===== */
.social-icons a {
  display: inline-block;
  height: 3.5rem;
  width: 3.5rem;
  background: #6366f1;
  color: #fff !important;
  border-radius: 100%;
  text-align: center;
  font-size: 1.5rem;
  line-height: 3.5rem;
  margin-right: 1rem;
  transition: all 0.3s ease;
  animation: bounceIn 0.6s ease-out;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.social-icons a:nth-child(1) { animation-delay: 0.1s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.3s; }
.social-icons a:nth-child(4) { animation-delay: 0.4s; }
.social-icons a:nth-child(5) { animation-delay: 0.5s; }
.social-icons a:nth-child(6) { animation-delay: 0.6s; }

.social-icons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.social-icons a:hover::before {
  width: 100%;
  height: 100%;
}

.social-icons a:hover {
  background: #4f46e5;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.social-icons a:last-child {
  margin-right: 0;
}

/* ===== NAVIGATION ===== */
#sideNav {
  background: #16213e;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #c0c0c0;
  transition: all 0.3s ease;
  position: relative;
  padding: 1rem;
  border-left: 3px solid transparent;
}

#sideNav .navbar-nav .nav-item .nav-link:hover,
#sideNav .navbar-nav .nav-item .nav-link.active {
  color: #ffffff;
  border-left-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

#sideNav .navbar-toggler:focus {
  outline-color: #6366f1;
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
    flex-shrink: 0;
  }

  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
  }

  #sideNav .navbar-brand .img-profile:hover {
    transform: scale(1.05);
    border-color: rgba(99, 102, 241, 0.8);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
    overflow-y: 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;
  }
}

/* ===== SECTIONS ===== */
section.resume-section {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  max-width: 75rem;
  animation: fadeIn 1s ease-out;
}

section.resume-section .resume-item {
  animation: slideInRight 0.8s ease-out;
  animation-fill-mode: both;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

section.resume-section .resume-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #6366f1;
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

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

@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;
  }
}

/* Stagger animation for resume items */
section.resume-section .resume-item:nth-child(1) { animation-delay: 0.1s; }
section.resume-section .resume-item:nth-child(2) { animation-delay: 0.2s; }
section.resume-section .resume-item:nth-child(3) { animation-delay: 0.3s; }
section.resume-section .resume-item:nth-child(4) { animation-delay: 0.4s; }
section.resume-section .resume-item:nth-child(5) { animation-delay: 0.5s; }

/* ===== COLORS ===== */
.bg-primary {
  background: #6366f1 !important;
}

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

a {
  color: #8b92f7;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

a:hover {
  color: #a5aaf9;
}

a:active,
a:focus,
a:hover {
  color: #a5aaf9;
  text-decoration: none;
}

/* ===== LISTS ===== */
ul {
  color: #d0d0d0;
}

ul li {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

ul li:hover {
  transform: translateX(5px);
  color: #e0e0e0;
}

.fa-ul li {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.fa-ul li:nth-child(1) { animation-delay: 0.1s; }
.fa-ul li:nth-child(2) { animation-delay: 0.2s; }
.fa-ul li:nth-child(3) { animation-delay: 0.3s; }
.fa-ul li:nth-child(4) { animation-delay: 0.4s; }
.fa-ul li:nth-child(5) { animation-delay: 0.5s; }

/* ===== ICONS ===== */
.fa-trophy {
  color: #ffd700;
}

.fa-file-alt {
  color: #6366f1;
  transition: all 0.3s ease;
}

.fa-file-alt:hover {
  transform: scale(1.1);
}

/* ===== HR DIVIDER ===== */
hr {
  border-top: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #16213e;
}

::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* ===== RESPONSIVE TEXT ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
    line-height: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* ===== LOADING ANIMATION ===== */
.resume-content {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== HOVER EFFECTS FOR CARDS ===== */
.resume-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  pointer-events: none;
}

.resume-item:hover::before {
  opacity: 1;
}

/* ===== TEXT GLOW EFFECT ===== */
.mb-0 {
  transition: all 0.3s ease;
}

.resume-item:hover .mb-0 {
  color: #ffffff;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== FADE IN ON SCROLL ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
