/* ==============================
   Variables & Base Styles
============================== */
:root {
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-dark: #5b21b6;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --dark: #09090b;
  --dark-card: #0f0f12;
  --dark-lighter: #18181b;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
}

/* ==============================
   Animated Background
============================== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==============================
   Mouse Glow Effect
============================== */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(167, 139, 250, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
  filter: blur(30px);
}

/* ==============================
   Floating Particles
============================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ==============================
   Sidebar
============================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 14rem;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 15px var(--accent-glow);
  }

  50% {
    box-shadow: 0 4px 25px var(--accent-glow), 0 0 40px rgba(124, 58, 237, 0.2);
  }
}

.sidebar-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.95rem;
}

.sidebar-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-link {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), transparent);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-light);
  padding-left: 1.25rem;
}

.nav-link.active {
  background: rgba(124, 58, 237, 0.1);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==============================
   Main Content
============================== */
.main-content {
  margin-left: 14rem;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* ==============================
   Hero Section
============================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ==============================
   Sections
============================== */
.section {
  padding: 6rem 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 4rem;
  }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* ==============================
   Cards
============================== */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.5s ease;
}

.card-hover:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-hover:hover::before {
  left: 100%;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

/* ==============================
   Skill Cards Enhanced
============================== */
.skill-card {
  background: linear-gradient(135deg, var(--dark-card), var(--dark-lighter));
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::after {
  transform: scaleX(1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-item {
  padding: 0.35rem 0.75rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-light);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
}

.skill-level {
  margin-top: 1rem;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  animation: progressGrow 1.5s ease-out forwards;
  transform-origin: left;
}

@keyframes progressGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ==============================
   Buttons
============================== */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--accent-light);
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.btn-accent {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-accent:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--accent);
  transform: translateX(5px);
}

.btn-doc {
  display: block;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.75rem;
  text-align: center;
}

.btn-doc:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ==============================
   Text Colors
============================== */
.text-accent {
  color: var(--accent-light);
}

.bg-dark {
  background: var(--dark);
}

/* ==============================
   Cert Logos
============================== */
.cert-logo {
  width: 55px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.card-hover:hover .cert-logo {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.logo-container {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==============================
   Timeline Enhanced
============================== */
.timeline {
  position: relative;
  padding-left: 35px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light), var(--accent));
  animation: timelineGlow 3s infinite;
}

@keyframes timelineGlow {

  0%,
  100% {
    box-shadow: 0 0 10px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--accent-glow);
  }
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--dark), 0 0 20px var(--accent-glow);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px var(--dark), 0 0 20px var(--accent-glow);
  }

  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--dark), 0 0 30px var(--accent-glow);
  }
}

.timeline-content {
  padding-left: 15px;
  padding: 1rem 1.25rem;
  background: var(--dark-card);
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  margin-left: 10px;
}

/* ==============================
   PDF Container Enhanced
============================== */
.pdf-container {
  background: linear-gradient(135deg, var(--dark-card), var(--dark-lighter));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.pdf-container:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 58, 237, 0.1);
}

.pdf-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.pdf-header {
  padding: 1rem 1.25rem;
  background: rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-title {
  font-weight: 600;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==============================
   Badges & Tags
============================== */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  font-size: 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-alt {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-light);
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

/* ==============================
   Form Inputs
============================== */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.1);
}

/* ==============================
   Footer
============================== */
.footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.02));
}

/* ==============================
   Stagger Animation
============================== */
.stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

[data-aos] .stagger-item {
  animation: staggerIn 0.6s ease forwards;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   Glowing Border
============================== */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.glow-border:hover::before {
  opacity: 0.5;
}

/* ==============================
   Responsive
============================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}