/**
 * Devora - Professional Django Personal & Resume Template
 * Core Design System, Variables, Components & Animations
 */

/* -------------------------------------------------------------
   1. Design Tokens & CSS Variables
------------------------------------------------------------- */
:root {
  --dv-primary: #4F46E5;
  --dv-primary-hover: #4338CA;
  --dv-primary-rgb: 79, 70, 229;
  --dv-secondary: #06B6D4;
  --dv-secondary-rgb: 6, 182, 212;
  --dv-accent: #F59E0B;
  --dv-success: #10B981;
  --dv-danger: #EF4444;

  --dv-font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --dv-font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --dv-radius-sm: 8px;
  --dv-radius-md: 14px;
  --dv-radius-lg: 22px;
  --dv-radius-xl: 32px;
  --dv-radius-full: 9999px;

  --dv-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --dv-transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
[data-theme="light"],
html:not([data-theme="dark"]) {
  --dv-bg: #F8FAFC;
  --dv-bg-alt: #F1F5F9;
  --dv-surface: #FFFFFF;
  --dv-surface-hover: #F8FAFC;
  --dv-surface-glass: rgba(255, 255, 255, 0.85);
  --dv-border: #E2E8F0;
  --dv-border-light: #CBD5E1;
  --dv-text: #0F172A;
  --dv-text-muted: #475569;
  --dv-text-subtle: #64748B;
  --dv-card-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08);
  --dv-card-shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.14);
  --dv-glow: 0 0 25px rgba(79, 70, 229, 0.12);
  --dv-nav-bg: rgba(255, 255, 255, 0.92);
}

/* Dark Theme Variables (Devora Default) */
[data-theme="dark"] {
  --dv-bg: #090D16;
  --dv-bg-alt: #0E1526;
  --dv-surface: #121B30;
  --dv-surface-hover: #192440;
  --dv-surface-glass: rgba(18, 27, 48, 0.85);
  --dv-border: #1E2B47;
  --dv-border-light: #2A3B60;
  --dv-text: #F8FAFC;
  --dv-text-muted: #94A3B8;
  --dv-text-subtle: #64748B;
  --dv-card-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.65);
  --dv-card-shadow-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
  --dv-glow: 0 0 35px rgba(79, 70, 229, 0.28);
  --dv-nav-bg: rgba(9, 13, 22, 0.92);
}

/* -------------------------------------------------------------
   2. Base Styles & Global Resets
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--dv-font-sans);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--dv-bg);
  color: var(--dv-text);
  font-family: var(--dv-font-sans);
  line-height: 1.75;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--dv-primary);
  text-decoration: none;
  transition: var(--dv-transition);
}

a:hover {
  color: var(--dv-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dv-text);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
  letter-spacing: -0.01em;
}

/* Text Selection */
::selection {
  background-color: var(--dv-primary);
  color: #FFFFFF;
}

/* -------------------------------------------------------------
   3. Typography & Utility Classes
------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted-custom {
  color: var(--dv-text-muted) !important;
}

.text-theme {
  color: var(--dv-text) !important;
}

.text-theme-muted {
  color: var(--dv-text-muted) !important;
}

.hover-text-primary {
  transition: var(--dv-transition);
}

.hover-text-primary:hover {
  color: var(--dv-primary) !important;
}

.bg-surface {
  background-color: var(--dv-surface) !important;
}

.bg-surface-alt {
  background-color: var(--dv-bg-alt) !important;
}

.border-custom {
  border-color: var(--dv-border) !important;
}

.border-custom:not(.border-top):not(.border-bottom):not(.border-start):not(.border-end):not(.border-0):not(.border-top-0):not(.border-bottom-0):not(.border-start-0):not(.border-end-0) {
  border: 1px solid var(--dv-border);
}

/* Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--dv-radius-full);
  background: rgba(var(--dv-primary-rgb), 0.12);
  color: var(--dv-primary);
  border: 1px solid rgba(var(--dv-primary-rgb), 0.25);
}

.badge-pill.secondary {
  background: rgba(var(--dv-secondary-rgb), 0.12);
  color: var(--dv-secondary);
  border-color: rgba(var(--dv-secondary-rgb), 0.25);
}

.badge-pill.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--dv-success);
  border-color: rgba(16, 185, 129, 0.25);
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-header .section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
}

.section-header .section-desc {
  color: var(--dv-text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin-inline: auto;
}

/* -------------------------------------------------------------
   4. Buttons & Interactive Elements
------------------------------------------------------------- */
.btn-dv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--dv-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--dv-transition);
  text-decoration: none;
  line-height: 1.5;
}

.btn-dv:active {
  transform: scale(0.98);
}

.btn-dv-primary {
  background: linear-gradient(135deg, var(--dv-primary) 0%, #4338CA 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(var(--dv-primary-rgb), 0.35);
}

.btn-dv-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
  box-shadow: 0 6px 24px rgba(var(--dv-primary-rgb), 0.5);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

.btn-dv-secondary {
  background: var(--dv-surface);
  color: var(--dv-text) !important;
  border-color: var(--dv-border);
}

.btn-dv-secondary:hover {
  background: var(--dv-surface-hover);
  border-color: var(--dv-primary);
  color: var(--dv-primary) !important;
  transform: translateY(-2px);
}

.btn-dv-outline {
  background: transparent;
  color: var(--dv-text) !important;
  border-color: var(--dv-border);
}

.btn-dv-outline:hover {
  border-color: var(--dv-primary);
  color: var(--dv-primary) !important;
  background: rgba(var(--dv-primary-rgb), 0.08);
}

.btn-dv-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--dv-radius-sm);
}

.btn-dv-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--dv-radius-lg);
}

.btn-dv-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--dv-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------
   5. Navbar & Navigation
------------------------------------------------------------- */
.dv-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background-color: var(--dv-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dv-border);
  transition: var(--dv-transition);
  padding: 0.85rem 0;
}

.dv-navbar.scrolled {
  padding: 0.65rem 0;
  box-shadow: var(--dv-card-shadow);
}

.dv-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dv-text) !important;
}

.dv-brand img, .dv-brand svg {
  height: 38px;
  width: auto;
}

.dv-nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--dv-text-muted) !important;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: var(--dv-transition);
}

.dv-nav-link:hover,
.dv-nav-link.active {
  color: var(--dv-text) !important;
}

.dv-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  inset-inline-start: 0.85rem;
  inset-inline-end: 0.85rem;
  height: 2px;
  background: linear-gradient(90deg, var(--dv-primary), var(--dv-secondary));
  border-radius: var(--dv-radius-full);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle-btn,
.direction-toggle-btn {
  background: var(--dv-surface);
  border: 1px solid var(--dv-border);
  color: var(--dv-text);
  width: 40px;
  height: 40px;
  border-radius: var(--dv-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--dv-transition);
}

.theme-toggle-btn:hover,
.direction-toggle-btn:hover {
  background: var(--dv-surface-hover);
  border-color: var(--dv-primary);
  color: var(--dv-primary);
  transform: rotate(15deg);
}

.direction-toggle-btn {
  font-weight: 700;
  font-size: 0.85rem;
}

.direction-toggle-btn:hover {
  transform: none;
}

/* Offcanvas Drawer Support & Defensive Visibility */
.offcanvas:not(.show) {
  display: none !important;
}

.offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  color: var(--dv-text);
  visibility: hidden;
  background-color: var(--dv-surface) !important;
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.offcanvas.show {
  visibility: visible;
  display: flex !important;
}

.offcanvas-start {
  top: 0;
  left: 0;
  width: 320px;
  border-right: 1px solid var(--dv-border);
  transform: translateX(-100%);
}

.offcanvas-end {
  top: 0;
  right: 0;
  width: 320px;
  border-left: 1px solid var(--dv-border);
  transform: translateX(100%);
}

.offcanvas-start.show,
.offcanvas-end.show {
  transform: none;
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* -------------------------------------------------------------
   6. Hero Section
------------------------------------------------------------- */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -10%;
  inset-inline-start: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(var(--dv-primary-rgb), 0.2) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.15rem;
  }
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dv-secondary);
  margin-bottom: 1rem;
}

.hero-bio {
  font-size: 1.15rem;
  color: var(--dv-text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Hero Portrait Frame */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-image-frame {
  width: 340px;
  height: 380px;
  border-radius: var(--dv-radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--dv-surface);
  border: 2px solid var(--dv-border);
  box-shadow: var(--dv-card-shadow-hover);
}

@media (max-width: 576px) {
  .hero-image-frame {
    width: 280px;
    height: 320px;
    margin-inline: auto;
  }
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.04);
}

/* Floating Status Tag on Hero */
.hero-floating-badge {
  position: absolute;
  bottom: 25px;
  inset-inline-start: -20px;
  background: var(--dv-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dv-border);
  padding: 0.75rem 1.25rem;
  border-radius: var(--dv-radius-lg);
  box-shadow: var(--dv-card-shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
  max-width: calc(100% - 20px);
}

@media (max-width: 576px) {
  .hero-floating-badge {
    inset-inline-start: 10px;
    bottom: 12px;
    padding: 0.5rem 0.95rem;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* -------------------------------------------------------------
   7. Stat Counter Section
------------------------------------------------------------- */
.stats-container {
  background: var(--dv-surface);
  border: 1px solid var(--dv-border);
  border-radius: var(--dv-radius-xl);
  padding: 2.25rem 1.5rem;
  box-shadow: var(--dv-card-shadow);
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

@media (max-width: 991px) {
  .stat-item.border-end {
    border-inline-end: 1px solid var(--dv-border) !important;
  }
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dv-text);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.stat-number .stat-symbol {
  color: var(--dv-primary);
  font-size: 2rem;
}

.stat-label {
  color: var(--dv-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* -------------------------------------------------------------
   8. Cards (Projects, Blog, Services, Testimonials)
------------------------------------------------------------- */
.dv-card {
  background-color: var(--dv-surface);
  border: 1px solid var(--dv-border);
  border-radius: var(--dv-radius-lg);
  overflow: hidden;
  transition: var(--dv-transition);
  box-shadow: var(--dv-card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dv-card:hover {
  transform: translateY(-6px);
  border-color: var(--dv-border-light);
  box-shadow: var(--dv-card-shadow-hover);
}

/* Project Card */
.project-card {
  position: relative;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--dv-bg-alt);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-category-badge {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  background: var(--dv-surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--dv-border);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--dv-radius-full);
  color: var(--dv-text);
}

.project-body {
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-title a {
  color: var(--dv-text);
}

.project-title a:hover {
  color: var(--dv-primary);
}

.project-desc {
  color: var(--dv-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1 1 auto;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--dv-border);
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--dv-radius-sm);
  background: var(--dv-bg-alt);
  color: var(--dv-text-muted);
}

/* Service Card */
.service-card {
  padding: 2.25rem 1.85rem;
  position: relative;
  border-radius: var(--dv-radius-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--dv-transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--dv-primary-rgb), 0.45);
  box-shadow: var(--dv-card-shadow-hover);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(var(--dv-primary-rgb), 0.12);
  color: var(--dv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--dv-transition);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--dv-primary) 0%, var(--dv-secondary) 100%);
  color: #FFFFFF;
  transform: scale(1.08) rotate(4deg);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--dv-text);
  line-height: 1.4;
}

.service-desc {
  color: var(--dv-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-features-list {
  list-style: none;
  padding: 1.25rem 0 0 0 !important;
  margin: auto 0 0 0 !important;
  border-top: 1px dashed var(--dv-border) !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features-list li {
  font-size: 0.88rem;
  color: var(--dv-text);
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.6;
}

.service-features-list li i {
  color: var(--dv-success);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Blog Card */
.blog-card {
  position: relative;
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--dv-bg-alt);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-body {
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--dv-text-subtle);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.blog-title a {
  color: var(--dv-text);
}

.blog-title a:hover {
  color: var(--dv-primary);
}

.blog-excerpt {
  color: var(--dv-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1 1 auto;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--dv-border);
  font-size: 0.88rem;
}

/* Testimonial Card */
.testimonial-card {
  padding: 2rem;
}

.testimonial-rating {
  color: var(--dv-accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--dv-text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.75rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--dv-radius-full);
  overflow: hidden;
  border: 2px solid var(--dv-border);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--dv-text-subtle);
}

/* -------------------------------------------------------------
   9. Resume & Timeline System
------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-inline-start: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  inset-inline-start: 7px;
  width: 2px;
  background-color: var(--dv-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-node {
  position: absolute;
  inset-inline-start: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: var(--dv-radius-full);
  background: var(--dv-bg);
  border: 3px solid var(--dv-primary);
  box-shadow: 0 0 10px rgba(var(--dv-primary-rgb), 0.5);
  z-index: 1;
}

.timeline-item:hover .timeline-node {
  background: var(--dv-primary);
  transform: scale(1.2);
  transition: var(--dv-transition);
}

.timeline-card {
  background: var(--dv-surface);
  border: 1px solid var(--dv-border);
  border-radius: var(--dv-radius-md);
  padding: 1.5rem;
  transition: var(--dv-transition);
}

.timeline-card:hover {
  border-color: var(--dv-border-light);
  transform: translateX(4px);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--dv-radius-full);
  background: rgba(var(--dv-primary-rgb), 0.1);
  color: var(--dv-primary);
  margin-bottom: 0.6rem;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  color: var(--dv-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--dv-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------
   10. Skills Bar System
------------------------------------------------------------- */
.skill-bar-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-header .skill-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-header .skill-name i {
  color: var(--dv-primary);
  width: 20px;
}

.skill-track {
  height: 9px;
  background-color: var(--dv-bg-alt);
  border-radius: var(--dv-radius-full);
  overflow: hidden;
  border: 1px solid var(--dv-border);
}

.skill-fill {
  height: 100%;
  border-radius: var(--dv-radius-full);
  background: linear-gradient(90deg, var(--dv-primary) 0%, var(--dv-secondary) 100%);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   11. Forms & Inputs
------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--dv-text);
  display: block;
}

.form-control, .form-select {
  background-color: var(--dv-surface);
  border: 1px solid var(--dv-border);
  color: var(--dv-text);
  border-radius: var(--dv-radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--dv-transition);
  width: 100%;
}

.form-control:focus, .form-select:focus {
  background-color: var(--dv-surface-hover);
  border-color: var(--dv-primary);
  color: var(--dv-text);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--dv-primary-rgb), 0.2);
}

.form-control::placeholder {
  color: var(--dv-text-subtle);
  opacity: 0.7;
}

/* Accessible Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--dv-primary) !important;
  outline-offset: 2px !important;
}

/* Close Button Contrast in Light & Dark Themes */
[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.85;
}

[data-theme="light"] .btn-close {
  filter: none;
  opacity: 0.85;
}

.btn-close:hover {
  opacity: 1;
}

/* -------------------------------------------------------------
   12. Social Icons Bar
------------------------------------------------------------- */
.social-links-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--dv-radius-full);
  background: var(--dv-surface);
  border: 1px solid var(--dv-border);
  color: var(--dv-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--dv-transition);
}

.social-btn:hover {
  background: var(--dv-primary);
  border-color: var(--dv-primary);
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--dv-primary-rgb), 0.4);
}

/* -------------------------------------------------------------
   13. Footer
------------------------------------------------------------- */
.dv-footer {
  background-color: var(--dv-surface);
  border-top: 1px solid var(--dv-border);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-brand-desc {
  color: var(--dv-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dv-text);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 35px;
  height: 2px;
  background: var(--dv-primary);
  border-radius: var(--dv-radius-full);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--dv-text-muted);
  font-size: 0.92rem;
  transition: var(--dv-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--dv-primary);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dv-border);
  font-size: 0.88rem;
  color: var(--dv-text-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* -------------------------------------------------------------
   14. Alerts, Empty States & Pagination
------------------------------------------------------------- */
.alert-custom {
  padding: 1rem 1.25rem;
  border-radius: var(--dv-radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-custom.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10B981;
}

.alert-custom.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

.alert-custom.alert-info {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: #06B6D4;
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--dv-surface);
  border: 1px dashed var(--dv-border);
  border-radius: var(--dv-radius-lg);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--dv-radius-full);
  background: var(--dv-bg-alt);
  color: var(--dv-text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.empty-state-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  color: var(--dv-text-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}

.pagination-custom .page-link {
  background: var(--dv-surface);
  border: 1px solid var(--dv-border);
  color: var(--dv-text);
  min-width: 40px;
  height: 40px;
  border-radius: var(--dv-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: var(--dv-transition);
}

.pagination-custom .page-link:hover,
.pagination-custom .active .page-link {
  background: var(--dv-primary);
  border-color: var(--dv-primary);
  color: #FFFFFF !important;
}

/* -------------------------------------------------------------
   14. FAQ & Accordion Component
------------------------------------------------------------- */
.devora-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.devora-accordion .accordion-item {
  background-color: var(--dv-bg-alt) !important;
  border: 1px solid var(--dv-border) !important;
  border-radius: var(--dv-radius-md) !important;
  overflow: hidden;
  transition: var(--dv-transition);
}

.devora-accordion .accordion-item:hover {
  border-color: rgba(var(--dv-primary-rgb), 0.35) !important;
}

.devora-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(var(--dv-primary-rgb), 0.5) !important;
  box-shadow: 0 4px 20px rgba(var(--dv-primary-rgb), 0.08);
}

.devora-accordion .accordion-button {
  background-color: transparent !important;
  color: var(--dv-text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.5;
  transition: var(--dv-transition);
}

.devora-accordion .accordion-button:not(.collapsed) {
  color: var(--dv-primary) !important;
  background-color: rgba(var(--dv-primary-rgb), 0.05) !important;
}

.devora-accordion .accordion-button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Custom Chevron with smooth rotation & RTL support */
.devora-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  width: 1.1rem;
  height: 1.1rem;
  background-size: 1.1rem;
  background-repeat: no-repeat;
  background-position: center;
  content: "" !important;
  transform: rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

[dir="rtl"] .devora-accordion .accordion-button::after {
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="ltr"] .devora-accordion .accordion-button::after {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.devora-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234f46e5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.devora-accordion .accordion-body {
  padding: 0.85rem 1.25rem 1.25rem 1.25rem;
  color: var(--dv-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  border-top: 1px dashed rgba(var(--dv-primary-rgb), 0.15) !important;
  background-color: rgba(var(--dv-primary-rgb), 0.02);
}

/* -------------------------------------------------------------
   15. Accessibility & Motion
------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
