/**
 * ===============================================
 * MEET AJ PORTFOLIO - MAIN STYLESHEET
 * ===============================================
 * 
 * Portfolio Website for AmirHossein Jalalian
 * Network Expert, DevOps Engineer & IT Infrastructure Specialist
 * 
 * Based on: iPortfolio Template by BootstrapMade
 * Updated: December 2024
 * Author: AmirHossein Jalalian
 * 
 * Features:
 * - Modern Apple Design System
 * - RTL Support for Persian/Farsi
 * - PWA Ready
 * - Responsive Design
 * - Dark/Light Theme Support
 * 
 * ===============================================
 */

/*--------------------------------------------------------------
# CSS VARIABLES & DESIGN SYSTEM
--------------------------------------------------------------*/

/**
 * Apple Design System Color Palette
 * Modern color scheme inspired by Apple's design language
 * Supports both light and dark themes
 */
:root {
  /* Neutral Colors - Base Apple Palette */
  --background: #fbfbfd; /* Main background color */
  --surface: #ffffff; /* Card and surface backgrounds */
  --surface-muted: #f5f5f7; /* Muted surface backgrounds */
  --divider-border: #e5e5ea; /* Borders and dividers */
  --text-primary: #1d1d1f; /* Primary text color */
  --text-secondary: #6e6e73; /* Secondary text color */
  --disabled-quaternary: #8e8e93; /* Disabled elements */

  /* Accent Colors - Modern Security Theme */
  --primary: #007aff; /* Modern Blue - Primary brand color */
  --primary-hover: #0056cc; /* Primary hover state */
  --info: #007aff; /* Blue - Information color */
  --success: #34c759; /* System Green - Success states */
  --warning: #ff9500; /* System Orange - Warning states */
  --danger: #ff3b30; /* System Red - Error states */
  --apple-red: #ff3b30; /* Apple System Red - Same as danger */
  --security-accent: #007aff; /* Security accent (Blue) */
  --devops-accent: #5856d6; /* DevOps accent (Indigo) */
  --secondary-accent: #af52de; /* Secondary accent (Purple) */

  /* Legacy Variables for Compatibility */
  --primary-600: var(--primary-hover);
  --primary-400: var(--info);
  --accent: var(--primary);
  --accent-600: var(--primary-hover);
  --accent-400: var(--info);
  --bg: var(--background);
  --border: var(--divider-border);
  --text: var(--text-primary);
  --muted: var(--text-secondary);

  /* Global Color Variables - Apple Design System */
  --pure-black: var(--text-primary); /* متن اصلی */
  --background-color: var(--background); /* پس‌زمینه اصلی */
  --default-color: var(--text-primary); /* متن پیش‌فرض */
  --heading-color: var(--text-primary); /* رنگ عنوان‌ها */
  --accent-color: var(--primary); /* رنگ هایلایت */
  --surface-color: var(--surface); /* سطح کارت‌ها */
  --contrast-color: var(--surface); /* سفید برای کنتراست */

  /* Secondary Colors - Apple Design System */
  --secondary-color: var(--text-secondary);
  --success-color: var(--success);
  --info-color: var(--info);
  --warning-color: var(--warning);
  --danger-color: var(--danger);

  /* Gradient Colors - Modern Security Theme */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-hover)
  );
  --gradient-accent: linear-gradient(135deg, var(--primary), var(--info));
  --gradient-hero: linear-gradient(
    135deg,
    var(--primary),
    var(--security-accent)
  );
  --gradient-surface: linear-gradient(
    135deg,
    var(--surface),
    var(--background)
  );

  /* Shadow Colors - Modern Security Theme */
  --shadow-primary: rgba(0, 122, 255, 0.1);
  --shadow-primary-dark: rgba(0, 86, 204, 0.15);
  --shadow-accent: rgba(0, 122, 255, 0.1);
  --shadow-surface: rgba(0, 0, 0, 0.05);

  /* Typography - Font Family Variables */
  --default-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --persian-font: "Vazirmatn", "Estedad", "Tahoma", Arial, sans-serif;
  --persian-heading-font: "Estedad", "Vazirmatn", "Tahoma", Arial, sans-serif;

  /* Nav Menu Colors - Professional Style */
  --nav-color: var(--muted); /* رنگ پیش‌فرض لینک‌های ناوبری */
  --nav-hover-color: var(--accent); /* رنگ hover ناوبری */
  --nav-mobile-background-color: var(--surface); /* پس‌زمینه ناوبری موبایل */
  --nav-dropdown-background-color: var(--surface); /* پس‌زمینه dropdown */
  --nav-dropdown-color: var(--text); /* رنگ متن dropdown */
  --nav-dropdown-hover-color: var(--accent); /* رنگ hover dropdown */

  /* Smooth scroll */
  scroll-behavior: smooth;
}

/* Sample Components - Apple Design System */

.hero {
  background-image: var(--gradient-hero);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--security-accent));
  opacity: 0.9;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Status Indicators */
.status-success {
  color: var(--success);
}

.status-warning {
  color: var(--warning);
}

.status-danger {
  color: var(--danger);
}

.status-info {
  color: var(--info);
}

/* Security Icons */
.security-icon {
  color: var(--primary);
}

.security-icon:hover {
  color: var(--primary-600);
}

/* Connected/Healthy Status */
.status-connected {
  color: var(--accent);
}

.status-healthy {
  color: var(--success);
}

/* Dark Mode Toggle Styles */
.theme-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.theme-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  border-radius: 30px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sun-icon,
.moon-icon {
  font-size: 12px;
  color: white;
  transition: opacity 0.3s ease;
}

.sun-icon {
  opacity: 1;
}

.moon-icon {
  opacity: 0;
}

.theme-toggle input:checked + .slider {
  background: var(--accent);
}

.theme-toggle input:checked + .slider:before {
  transform: translateX(30px);
}

.theme-toggle input:checked + .slider .sun-icon {
  opacity: 0;
}

.theme-toggle input:checked + .slider .moon-icon {
  opacity: 1;
}

/* Dark Mode Specific Styles */
.theme-dark .theme-toggle .slider {
  background: var(--primary-600);
}

.theme-dark .theme-toggle input:checked + .slider {
  background: var(--primary-hover);
}

/* Responsive Design for Dark Mode Toggle */
@media (max-width: 768px) {
  .theme-toggle-container {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
  }

  .theme-toggle {
    width: 50px;
    height: 25px;
  }

  .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
  }

  .theme-toggle input:checked + .slider:before {
    transform: translateX(25px);
  }

  .sun-icon,
  .moon-icon {
    font-size: 10px;
  }
}

@media (max-width: 575px) {
  .theme-toggle-container {
    margin-bottom: 0.25rem;
  }

  .theme-toggle {
    width: 45px;
    height: 22px;
  }

  .slider:before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
  }

  .theme-toggle input:checked + .slider:before {
    transform: translateX(23px);
  }
}

/* Dark Mode Support */
.theme-dark {
  --background: #0b1220; /* پس‌زمینه تاریک */
  --surface: #0f172a; /* سطح تاریک */
  --surface-muted: #1f2937; /* سطح کم‌رنگ تاریک */
  --divider-border: #374151; /* حاشیه تاریک */
  --text-primary: #e5e7eb; /* متن روشن */
  --text-secondary: #94a3b8; /* متن کم‌رنگ تاریک */

  /* به‌روزرسانی متغیرهای اصلی */
  --background-color: var(--background);
  --surface-color: var(--surface);
  --default-color: var(--text-primary);
  --pure-black: var(--text-primary);
  --contrast-color: var(--surface);
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the same color scheme. */

.light-background {
  --background-color: var(--background);
  --surface-color: var(--surface);
  --default-color: var(--text-primary);
}

.dark-background {
  --background-color: #0b1220; /* پس‌زمینه تاریک */
  --surface-color: #0f172a; /* سطح تاریک */
  --border-color: #1f2937; /* حاشیه تاریک */
  --default-color: #e5e7eb; /* متن تاریک */
  --heading-color: #e5e7eb; /* عنوان تاریک */
  --accent-color: var(--primary); /* هایلایت */
  --muted-color: #94a3b8; /* متن کم‌رنگ تاریک */
  --contrast-color: #ffffff;
}

/* Professional Button Styles */
.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-primary);
  color: var(--surface);
}

.btn-accent {
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--primary-hover);
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-accent:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-accent);
  color: var(--surface);
}

/* Professional Card Styles */
.card {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--divider-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-surface);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-surface);
}

/* Professional Hero Styles */
.hero {
  background-image: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

/* Professional Link Styles */
a {
  color: var(--accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger) 100%);
  color: var(--surface);
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.php-email-form .error-message.show {
  display: block;
}

.php-email-form .sent-message {
  display: none;
  color: var(--surface);
  background: linear-gradient(135deg, var(--success) 0%, var(--success) 100%);
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.php-email-form .sent-message.show {
  display: block;
}

.php-email-form .loading {
  display: none;
  background: linear-gradient(
    135deg,
    var(--surface-color) 0%,
    var(--surface-muted) 100%
  );
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 2px solid rgba(0, 80, 160, 0.1);
  color: var(--accent-color);
  font-weight: 600;
}

.php-email-form .loading.show {
  display: block;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header .profile-img {
  position: relative;
  margin: 20px auto;
  display: block;
  width: 100px;
  animation: profileFloat 6s ease-in-out infinite;
}

.header .profile-img img {
  width: 100px;
  border: 6px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header .profile-img:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
  text-align: center;
}

.logo-section {
  justify-content: center !important;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.header .logo:hover h1 {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 8px var(--shadow-primary));
}

.header .social-links {
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.social-row-main {
  gap: 10px;
}

.social-row-secondary {
  gap: 8px;
}

.header .social-links a {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header .social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.header .social-links a:hover::before {
  left: 100%;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 15px var(--shadow-accent);
}

/* Social Media Brand Colors on Hover */

/* X (Twitter) specific styling */
.header .social-links a.twitter:hover {
  background: var(--text-primary);
  box-shadow: 0 4px 15px var(--shadow-surface);
}

/* Facebook specific styling */
.header .social-links a.facebook:hover {
  background: var(--info);
  box-shadow: 0 4px 15px var(--shadow-primary);
}

/* Instagram specific styling */
.header .social-links a.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

/* Phone specific styling */
.header .social-links a.google-plus:hover {
  background: var(--success);
  box-shadow: 0 4px 15px var(--shadow-primary);
}

/* WhatsApp specific styling */
.header .social-links a.whatsapp:hover {
  background: var(--success);
  box-shadow: 0 4px 15px var(--shadow-primary);
}

/* Telegram specific styling */
.header .social-links a.telegram:hover {
  background: var(--info);
  box-shadow: 0 4px 15px var(--shadow-primary);
}

/* LinkedIn specific styling */
.header .social-links a.linkedin:hover {
  background: var(--primary);
  box-shadow: 0 4px 15px var(--shadow-primary);
}

/* GitHub specific styling */
.header .social-links a.github:hover {
  background: var(--text-primary);
  box-shadow: 0 4px 15px var(--shadow-surface);
}

/* Stack Overflow specific styling */
.header .social-links a.stackoverflow:hover {
  background: var(--warning);
  box-shadow: 0 4px 15px var(--shadow-primary);
}

@media (min-width: 1200px) {
  .header ~ #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

/* LTR Navigation Menu Spacing - English Version */
html[dir="ltr"] .navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

html[dir="ltr"] .navmenu a,
html[dir="ltr"] .navmenu a:focus {
  padding: 12px 10px;
  margin-bottom: 4px;
}

html[dir="ltr"] .navmenu a .navicon,
html[dir="ltr"] .navmenu a:focus .navicon {
  margin-right: 10px;
}

/* RTL Navigation Menu Spacing - Persian Version */
html[dir="rtl"] .navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

html[dir="rtl"] .navmenu a,
html[dir="rtl"] .navmenu a:focus {
  padding: 12px 10px;
  margin-bottom: 4px;
}

html[dir="rtl"] .navmenu a .navicon,
html[dir="rtl"] .navmenu a:focus .navicon {
  margin-left: 10px;
  margin-right: 0;
}

/* LTR Hover and Active States */
html[dir="ltr"] .navmenu a:hover,
html[dir="ltr"] .navmenu .active,
html[dir="ltr"] .navmenu .active:focus {
  transform: translateX(6px) scale(1.02);
}

/* RTL Hover and Active States */
html[dir="rtl"] .navmenu a:hover,
html[dir="rtl"] .navmenu .active,
html[dir="rtl"] .navmenu .active:focus {
  transform: translateX(-6px) scale(1.02);
}

/* LTR Typography and Sizing - English Version */
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6 {
  font-weight: 600;
}

html[dir="ltr"] .hero h2 {
  font-weight: 700;
}

html[dir="ltr"] .section-title h2 {
  font-weight: 600;
}

html[dir="ltr"] .about .content h2 {
  font-weight: 600;
}

html[dir="ltr"] .resume .resume-title {
  font-weight: 600;
}

html[dir="ltr"] .services .service-item h4 {
  font-weight: 600;
}

html[dir="ltr"] .testimonials .testimonial-item h3,
html[dir="ltr"] .testimonials .testimonial-item h4 {
  font-weight: 600;
}

html[dir="ltr"] .contact .info-item h3 {
  font-weight: 600;
}

html[dir="ltr"] .contact .php-email-form button {
  font-weight: 500;
}

html[dir="ltr"] .section-title p {
  line-height: 1.8;
}

html[dir="ltr"] .about .content p {
  line-height: 1.8;
}

html[dir="ltr"] .services .service-item .description {
  line-height: 1.8;
}

html[dir="ltr"] .testimonials .testimonial-item p {
  line-height: 1.8;
}

html[dir="ltr"] .stats .stats-item strong {
  font-weight: 600;
}

html[dir="ltr"] .portfolio .portfolio-filters li {
  font-weight: 500;
}

html[dir="ltr"] .portfolio .portfolio-info h4 {
  font-weight: 600;
}

html[dir="ltr"] .skills .progress .skill span {
  font-weight: 500;
}

html[dir="ltr"] .about .content ul strong {
  font-weight: 600;
}

html[dir="ltr"] .about .content .bio-quote em {
  font-weight: 500;
}

html[dir="ltr"] .resume .resume-item h4 {
  font-weight: 600;
}

html[dir="ltr"] .resume .resume-item h5 {
  font-weight: 500;
}

html[dir="ltr"] .resume .resume-item ul li {
  line-height: 1.7;
}

html[dir="ltr"] .services .service-item p {
  line-height: 1.7;
}

html[dir="ltr"] .hero-actions {
  margin-top: 2.5rem;
}

html[dir="ltr"] .hero-subtitle .typed::after {
  margin-left: 2px;
  margin-right: 0;
}

html[dir="ltr"] .inspirational-quote p {
  line-height: 1.8;
}

html[dir="ltr"] .testimonials .testimonial-item .testimonial-img {
  margin: 0 auto 20px auto;
}

/* LTR Layout and Spacing */
html[dir="ltr"] .contact .info-item i {
  margin-right: 0;
  margin-left: 15px;
}

html[dir="ltr"] .services .service-item .icon {
  margin-right: 0;
  margin-left: 0;
}

html[dir="ltr"] .header .logo img {
  margin-inline-start: 0;
  margin-inline-end: 8px;
}

html[dir="ltr"] #navmenu a .navicon {
  margin-right: 10px;
}

html[dir="ltr"] .about .content ul strong {
  margin-right: 10px;
}

/* LTR Desktop Layout */
@media (min-width: 1200px) {
  html[dir="ltr"] .header ~ main,
  html[dir="ltr"] .header ~ #footer {
    margin-left: 300px !important;
    margin-right: 0 !important;
  }
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 12px 10px;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 18px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a:hover .toggle-dropdown,
.navmenu a:focus .toggle-dropdown:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), #4a90e2 20%)
  );
  color: var(--contrast-color);
  transform: scale(1.15) rotate(180deg);
  box-shadow: 0 4px 12px rgba(0, 80, 160, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.12),
    rgba(20, 124, 235, 0.18),
    rgba(0, 113, 227, 0.08)
  );
  border-radius: 12px;
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-accent);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu a:hover::before,
.navmenu .active::before,
.navmenu .active:focus::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu a:hover::before,
.navmenu .active::before,
.navmenu .active:focus::before {
  left: 100%;
}

.navmenu a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.navmenu a:active::after {
  width: 200px;
  height: 200px;
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--shadow-accent));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: var(--nav-dropdown-color);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px 10px;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.15),
    rgba(20, 124, 235, 0.2),
    rgba(0, 113, 227, 0.1)
  );
  border-radius: 8px;
  transform: translateX(4px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown > .dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
  text-align: center; /* Center align footer content */
}

.footer .copyright p {
  margin-bottom: 0;
  text-align: center; /* Center align copyright text */
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/* RTL Support for Footer */
html[dir="rtl"] .footer {
  text-align: center; /* Keep center alignment in RTL */
}

html[dir="rtl"] .footer .copyright p {
  text-align: center; /* Keep center alignment in RTL */
}

html[dir="rtl"] .footer .credits {
  text-align: center; /* Keep center alignment in RTL */
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 80, 160, 0.4);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--primary-hover);
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  border-radius: 2px;
  left: 0;
  bottom: 0;
}

html[dir="rtl"] .section-title h2:after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .section-title {
  text-align: right;
}

html[dir="rtl"] .section-title h2 {
  text-align: right;
}

html[dir="rtl"] .section-title p {
  text-align: right;
}

.section-title p {
  margin-bottom: 0;
  color: var(--pure-black);
  font-size: 1.1rem;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Hero overlay removed for clean background */

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

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

  .hero p {
    font-size: 1.2rem;
  }

  /* Mobile-specific improvements */
  .hero {
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem;
  }

  .hero-img {
    width: 180px !important;
    height: 180px !important;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-actions .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 0.9rem;
  }

  /* دکمه‌های کوچک‌تر و کنار هم در موبایل */
  .hero .social-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
  }

  .hero .social-links a {
    font-size: 18px;
    margin-right: 0;
  }

  .hero .container {
    text-align: center;
  }

  /* Services responsive - removed duplicate rules */

  .services .service-item {
    min-height: 200px;
    padding: 1.5rem;
  }

  /* Portfolio responsive */
  .portfolio .portfolio-filters {
    gap: 1rem;
  }

  .portfolio .portfolio-filters li {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* About responsive */
  .about {
    padding: 60px 0;
  }

  .about .col-lg-4 {
    margin-bottom: 3rem;
  }

  .about .col-lg-4 img {
    max-width: 280px;
  }

  .about .content {
    padding: 0 1rem;
  }

  .about .content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .about .content .fst-italic {
    font-size: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .about .content .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about .content ul {
    padding: 1.25rem;
  }

  .about .content ul li {
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    flex-direction: row;
    align-items: center;
  }

  .about .content ul strong {
    min-width: 70px;
    font-size: 0.9rem;
  }

  .about .content p:last-child {
    font-size: 0.95rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  /* Stats responsive */
  .stats .stats-item {
    padding: 2rem;
    margin-bottom: 1rem;
  }

  .stats .stats-item i {
    font-size: 2.5rem;
  }

  .stats .stats-item .purecounter {
    font-size: 2.5rem;
  }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575px) {
  /* Services responsive for small phones - removed duplicate rules */

  .services .service-item {
    min-height: 180px;
    padding: 1.25rem;
  }

  /* Hero responsive for small phones */
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .hero-img {
    width: 150px !important;
    height: 150px !important;
  }

  .hero-actions .btn {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  /* Portfolio responsive for small phones */
  .portfolio .portfolio-filters {
    gap: 0.75rem;
  }

  .portfolio .portfolio-filters li {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* About responsive for small phones */
  .about {
    padding: 40px 0;
  }

  .about .col-lg-4 img {
    max-width: 250px;
  }

  .about .content {
    padding: 0 0.5rem;
  }

  .about .content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .about .content .fst-italic {
    font-size: 0.95rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .about .content ul {
    padding: 1rem;
  }

  .about .content ul li {
    padding: 0.5rem;
    margin-bottom: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .about .content ul strong {
    min-width: auto;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    margin-right: 0;
  }

  .about .content ul span,
  .about .content ul a {
    font-size: 0.9rem;
  }

  .about .content p:last-child {
    font-size: 0.9rem;
    padding: 1rem;
    margin-top: 1rem;
  }

  /* Stats responsive for small phones */
  .stats .stats-item {
    padding: 1.5rem;
  }

  .stats .stats-item i {
    font-size: 2rem;
  }

  .stats .stats-item .purecounter {
    font-size: 2rem;
  }

  /* Mobile navigation improvements */
  .header {
    width: 280px;
    padding: 0 10px;
  }

  /* Mobile LTR Navigation Spacing */
  html[dir="ltr"] .navmenu a,
  html[dir="ltr"] .navmenu a:focus {
    padding: 10px 8px;
    margin-bottom: 3px;
  }

  html[dir="ltr"] .navmenu a .navicon,
  html[dir="ltr"] .navmenu a:focus .navicon {
    margin-right: 8px;
    font-size: 16px;
  }

  /* Mobile RTL Navigation Spacing */
  html[dir="rtl"] .navmenu a,
  html[dir="rtl"] .navmenu a:focus {
    padding: 10px 8px;
    margin-bottom: 3px;
  }

  html[dir="rtl"] .navmenu a .navicon,
  html[dir="rtl"] .navmenu a:focus .navicon {
    margin-left: 8px;
    margin-right: 0;
    font-size: 16px;
  }

  /* Mobile LTR Typography */
  html[dir="ltr"] .navmenu a {
    padding: 15px 10px 15px 20px;
  }

  html[dir="ltr"] .resume .resume-item {
    padding: 0 0 25px 25px;
    border-left: 3px solid var(--primary);
    border-right: none;
    border-radius: 0 8px 8px 0;
  }

  html[dir="ltr"] .resume .resume-item::before {
    left: -10px;
    right: auto;
  }

  html[dir="ltr"] .about .content ul i {
    margin-right: 5px;
    margin-left: 0;
  }

  .header .profile-img {
    width: 80px;
    margin: 10px auto;
  }

  .header .profile-img img {
    width: 80px;
  }

  .header .logo h1 {
    font-size: 20px;
  }

  .header .social-links {
    gap: 8px;
  }

  .social-row {
    gap: 6px;
  }

  .social-row-main {
    gap: 8px;
  }

  .social-row-secondary {
    gap: 6px;
  }

  .header .social-links a {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }


  /* Mobile sections padding */
  section,
  .section {
    padding: 40px 0;
  }

  .section-title {
    padding-bottom: 40px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  /* Mobile stats */
  .stats .stats-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .stats .stats-item i {
    font-size: 36px;
  }

  .stats .stats-item .purecounter {
    font-size: 36px;
    margin-left: 50px;
  }

  .stats .stats-item p {
    margin-left: 50px;
    font-size: 13px;
  }

  /* Mobile skills */
  .skills .progress {
    padding: 0.6rem;
    margin-bottom: 0.8rem;
  }

  .skills .progress .skill {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .skills .progress .skill .val {
    font-size: 0.75rem;
  }

  /* Mobile portfolio */
  .portfolio .portfolio-filters li {
    font-size: 13px;
    margin: 0;
    padding: 10px 16px;
  }

  .portfolio .portfolio-content .portfolio-info h4 {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .portfolio .portfolio-content .portfolio-info p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .portfolio .portfolio-content .portfolio-info .preview-link,
  .portfolio .portfolio-content .portfolio-info .details-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Mobile services */
  .services .service-item {
    margin-bottom: 30px;
  }

  .services .service-item .icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
  }

  .services .service-item .icon i {
    font-size: 20px;
  }

  .services .service-item .title {
    font-size: 16px;
  }

  .services .service-item .description {
    font-size: 13px;
    line-height: 22px;
  }

  /* Mobile testimonials - Microsoft Style */
  .testimonials {
    padding: 50px 0;
  }

  .testimonials .testimonial-item {
    min-height: 280px;
    padding: 20px 15px;
    border-radius: 8px;
    margin: 0 10px;
  }

  .testimonials .testimonial-item .testimonial-img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: cover;
  }

  .testimonials .testimonial-item h3 {
    font-size: 15px;
    margin: 10px 0 5px 0;
    line-height: 1.3;
  }

  .testimonials .testimonial-item h4 {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .testimonials .testimonial-item p {
    font-size: 13px;
    margin: 0 0 15px 0;
    line-height: 1.5;
    text-align: center;
  }

  .testimonials .testimonial-item .quote-icon-left,
  .testimonials .testimonial-item .quote-icon-right {
    font-size: 16px;
  }

  .testimonials .swiper-pagination {
    margin-top: 25px;
    gap: 8px;
  }

  .testimonials .swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  /* Hide navigation buttons on mobile */
  .testimonials .swiper-button-next,
  .testimonials .swiper-button-prev {
    display: none;
  }

  /* Mobile contact */
  .contact .info-wrap {
    padding: 20px;
    margin-bottom: 30px;
  }

  .contact .php-email-form {
    padding: 20px;
  }

  .contact .info-item {
    margin-bottom: 30px;
  }

  .contact .info-item i {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-right: 12px;
  }

  .contact .info-item h3 {
    font-size: 16px;
  }

  .contact .info-item p {
    font-size: 14px;
  }

  /* Mobile resume */
  .resume .resume-title {
    font-size: 22px;
  }

  .resume .resume-item h4 {
    font-size: 18px;
  }

  .resume .resume-item h5 {
    font-size: 14px;
    padding: 4px 12px;
  }

  .resume .resume-item ul li {
    font-size: 14px;
    padding-bottom: 8px;
  }

  /* Mobile about */
  .about .content h2 {
    font-size: 20px;
  }

  .about .content ul li {
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* Small Mobile LTR Navigation Spacing */
  html[dir="ltr"] .navmenu a,
  html[dir="ltr"] .navmenu a:focus {
    padding: 8px 6px;
    margin-bottom: 2px;
  }

  html[dir="ltr"] .navmenu a .navicon,
  html[dir="ltr"] .navmenu a:focus .navicon {
    margin-right: 6px;
    font-size: 14px;
  }

  /* Small Mobile RTL Navigation Spacing */
  html[dir="rtl"] .navmenu a,
  html[dir="rtl"] .navmenu a:focus {
    padding: 8px 6px;
    margin-bottom: 2px;
  }

  html[dir="rtl"] .navmenu a .navicon,
  html[dir="rtl"] .navmenu a:focus .navicon {
    margin-left: 6px;
    margin-right: 0;
    font-size: 14px;
  }

  /* Small Mobile LTR Typography */
  html[dir="ltr"] .navmenu a {
    padding: 15px 10px 15px 20px;
  }

  html[dir="ltr"] .resume .resume-item {
    padding: 0 0 25px 25px;
    border-left: 3px solid var(--primary);
    border-right: none;
    border-radius: 0 8px 8px 0;
  }

  html[dir="ltr"] .resume .resume-item::before {
    left: -10px;
    right: auto;
  }

  html[dir="ltr"] .about .content ul i {
    margin-right: 5px;
    margin-left: 0;
  }

  .about .content ul i {
    font-size: 14px;
  }

  /* Mobile footer */
  .footer {
    padding: 30px 0;
    font-size: 13px;
    text-align: center; /* Ensure center alignment on mobile */
  }

  .footer .copyright p {
    text-align: center; /* Ensure center alignment on mobile */
  }

  .footer .credits {
    text-align: center; /* Ensure center alignment on mobile */
  }

  /* Mobile scroll top */
  .scroll-top {
    width: 40px;
    height: 40px;
    right: 10px;
    bottom: 10px;
  }

  .scroll-top i {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# About Section - Modern Design
--------------------------------------------------------------*/
.about {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--surface-muted) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* About Wrapper */
.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Content Section */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* About Header */
.about-header {
  margin-bottom: 1rem;
}

.about-title {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--heading-color);
}

.title-main {
  display: block;
  background: linear-gradient(135deg, var(--heading-color), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-accent {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.5rem;
  opacity: 0.8;
}

.about-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-header i {
  font-size: 1.5rem;
  color: var(--primary);
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.info-item i {
  font-size: 1.1rem;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-hover);
}

.status-available {
  color: #10b981;
  font-weight: 600;
}

/* Description Section */
.description-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.description-card,
.philosophy-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.description-card:hover,
.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.description-title,
.philosophy-title {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.description-title::before {
  content: "👨‍💻";
  font-size: 1.2rem;
}

.philosophy-title::before {
  content: "💭";
  font-size: 1.2rem;
}

.description-text,
.philosophy-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Quote Section */
.quote-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.quote-card {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 25%,
    #4facfe 50%,
    #667eea 75%,
    #764ba2 100%
  );
  background-size: 300% 300%;
  border-radius: 25px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: gradientShift 8s ease infinite;
  transition: all 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
  border-radius: 25px;
}

.quote-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.quote-card i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

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

.inspirational-quote {
  margin: 0;
  position: relative;
  z-index: 2;
}

.inspirational-quote p {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  font-style: italic;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .about-title {
    font-size: 2rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .description-section {
    grid-template-columns: 1fr;
  }
}

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

  .info-card,
  .description-card,
  .philosophy-card {
    padding: 1.25rem;
  }

  .quote-card {
    padding: 2.5rem 2rem;
  }

  .quote-card i {
    font-size: 3.5rem;
  }

  .inspirational-quote p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 1.5rem;
  }

  .about-subtitle {
    font-size: 1rem;
  }

  .info-card,
  .description-card,
  .philosophy-card {
    padding: 1rem;
  }

  .quote-card {
    padding: 2rem 1.5rem;
  }

  .quote-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .inspirational-quote p {
    font-size: 1.1rem;
  }
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 113, 227, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(20, 124, 235, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* About Container */
.about .container {
  position: relative;
  z-index: 2;
}

/* Profile Image */
.about .col-lg-4 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.about .col-lg-4 img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15),
    0 0 0 1px rgba(0, 113, 227, 0.1);
  transition: all 0.4s ease;
  object-fit: cover;
  aspect-ratio: 1;
}

.about .col-lg-4 img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 113, 227, 0.2),
    0 0 0 1px rgba(0, 113, 227, 0.15);
}

/* About Content */
.about .content {
  padding: 0 2rem;
}

.about .content h2 {
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.2;
}

.about .content h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 2px;
}

.about .content .fst-italic {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.08);
}

/* Personal Information Grid */
.about .content .row {
  margin: 0;
  gap: 1rem;
}

.about .content .col-lg-6 {
  padding: 0;
  flex: 1;
}

.about .content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.08);
  border: 1px solid var(--divider-border);
  height: 100%;
}

.about .content ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.about .content ul li:last-child {
  margin-bottom: 0;
}

.about .content ul li:hover {
  background: linear-gradient(
    135deg,
    var(--surface-muted) 0%,
    var(--background) 100%
  );
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.1);
}

.about .content ul i {
  font-size: 16px;
  margin-right: 12px;
  color: var(--primary);
  line-height: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.about .content ul strong {
  margin-right: 12px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.about .content ul span,
.about .content ul a {
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
}

.about .content ul a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.about .content ul a:hover {
  color: var(--primary-hover);
}

/* Professional Philosophy */
.about .content p:last-child {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--surface-muted) 100%
  );
  border-radius: 15px;
  border: 1px solid var(--divider-border);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.05);
}

/*--------------------------------------------------------------
# Stats Section - Modern Design
--------------------------------------------------------------*/
.stats {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  opacity: 0.05;
  pointer-events: none;
}

.stats .stats-item {
  padding: 2.5rem;
  width: 100%;
  background: var(--surface);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--divider-border);
  box-shadow: 0 5px 20px rgba(0, 113, 227, 0.08);
  position: relative;
  overflow: hidden;
}

.stats .stats-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stats .stats-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 113, 227, 0.15);
}

.stats .stats-item:hover::before {
  transform: scaleX(1);
}

.stats .stats-item i {
  color: var(--primary);
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats .stats-item .purecounter {
  color: var(--text-primary);
  font-size: 3rem;
  line-height: 1;
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats .stats-item p {
  color: var(--text-secondary);
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Skills Section - Modern Design
--------------------------------------------------------------*/
.skills {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--surface-muted) 100%
  );
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(0, 113, 227, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(20, 124, 235, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.skills .progress {
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(107, 114, 128, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills .progress:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 114, 128, 0.1);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(107, 114, 128, 0.15);
}

.skills .progress .skill {
  color: var(--text-primary);
  padding: 0;
  margin: 0 0 0.5rem 0;
  text-transform: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1px;
}

.skills .progress .skill .val {
  font-style: normal;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: rgba(107, 114, 128, 0.08);
  border: 1px solid rgba(107, 114, 128, 0.15);
  transition: all 0.3s ease;
}

html[dir="rtl"] .skills .progress .skill .val {
  float: left;
}

.skills .progress:hover .skill .val {
  background-color: rgba(107, 114, 128, 0.12);
  border-color: rgba(107, 114, 128, 0.2);
  transform: scale(1.05);
}

.skills .progress-bar-wrap {
  background: #f1f5f9;
  height: 3px;
  border-radius: 0;
  border: none;
  overflow: visible;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: none;
}

.skills .progress-bar-wrap::before {
  display: none;
}

.skills .progress-bar {
  width: 0%;
  height: 3px;
  transition: width 1.2s ease-out;
  background: #3b82f6;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  animation: none;
}

/* Clean minimal animations */

/* Progress bar animation removed - handled by JavaScript */

/* Animation delays removed - handled by JavaScript */
/* All animation delays removed - handled by JavaScript */

.skills .progress:hover .progress-bar {
  transform: scaleY(1.5);
}

/* Simple and clean percentage display */

.skills .progress:hover .progress-bar-wrap {
  background: #e2e8f0;
}

/* Clean and simple progress bars */
.skills .col-lg-6:first-child .progress-bar {
  background: #3b82f6;
}

.skills .col-lg-6:last-child .progress-bar {
  background: #10b981;
}

/* Clean animations */

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

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 32px;
  font-weight: 800;
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resume .resume-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #5ac8fa 50%,
    var(--primary-hover) 100%
  );
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

html[dir="rtl"] .resume .resume-title::after {
  left: auto;
  right: 0;
}

.resume .resume-item {
  padding: 25px 30px 30px 30px;
  margin-top: -2px;
  border-left: 4px solid var(--accent-color);
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: resumeItemSlideIn 0.6s ease-out forwards;
  min-height: 120px;
}

.resume .resume-item:nth-child(1) {
  animation-delay: 0.1s;
}
.resume .resume-item:nth-child(2) {
  animation-delay: 0.2s;
}
.resume .resume-item:nth-child(3) {
  animation-delay: 0.3s;
}
.resume .resume-item:nth-child(4) {
  animation-delay: 0.4s;
}
.resume .resume-item:nth-child(5) {
  animation-delay: 0.5s;
}
.resume .resume-item:nth-child(6) {
  animation-delay: 0.6s;
}
.resume .resume-item:nth-child(7) {
  animation-delay: 0.7s;
}
.resume .resume-item:nth-child(8) {
  animation-delay: 0.8s;
}
.resume .resume-item:nth-child(9) {
  animation-delay: 0.9s;
}
.resume .resume-item:nth-child(10) {
  animation-delay: 1s;
}

.resume .resume-item:hover {
  background: rgba(0, 122, 255, 0.05);
  border-left-color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.1);
}

html[dir="rtl"] .resume .resume-item {
  padding: 25px 30px 30px 30px;
  border-left: none;
  border-right: 4px solid var(--accent-color);
  border-radius: 12px 0 0 12px;
}

html[dir="rtl"] .resume .resume-item:hover {
  border-right-color: #38bdf8;
  transform: translateX(-5px);
}

.resume .resume-item h4 {
  line-height: 1.4;
  font-size: 22px;
  font-weight: 800;
  text-transform: none;
  color: var(--heading-color);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.resume .resume-item:hover h4 {
  color: var(--accent-color);
}

.resume .resume-item h5 {
  font-size: 14px;
  padding: 6px 16px;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.resume .resume-item:hover h5 {
  background: linear-gradient(
    135deg,
    var(--primary-hover) 0%,
    var(--primary) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.resume .resume-item ul {
  padding-left: 20px;
}

html[dir="rtl"] .resume .resume-item ul {
  padding-left: 0;
  padding-right: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 15px;
  color: var(--pure-black);
  line-height: 1.7;
  position: relative;
  padding-left: 25px;
  transition: all 0.3s ease;
}

.resume .resume-item ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 14px;
  top: 3px;
  transition: all 0.3s ease;
}

.resume .resume-item:hover ul li::before {
  color: #38bdf8;
  transform: scale(1.2);
}

html[dir="rtl"] .resume .resume-item ul li {
  padding-left: 0;
  padding-right: 25px;
}

html[dir="rtl"] .resume .resume-item ul li::before {
  content: "◀";
  left: auto;
  right: 0;
}

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

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50px;
  left: -12px;
  top: 0;
  background: var(--background-color);
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.15);
  transition: all 0.3s ease;
}

.resume .resume-item:hover::before {
  border-color: #38bdf8;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.2);
}

/* Resume Links Styling */
.resume .resume-item a {
  color: #4a4a4a;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
}

.resume .resume-item a:hover {
  color: var(--accent-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.resume .resume-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  transition: width 0.3s ease;
}

.resume .resume-item a:hover::after {
  width: 100%;
}

html[dir="rtl"] .resume .resume-item::before {
  left: auto;
  right: -12px;
}

/* About Section Links Styling */
.about .content ul li a {
  color: #4a4a4a;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
}

.about .content ul li a:hover {
  color: var(--accent-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.about .content ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  transition: width 0.3s ease;
}

.about .content ul li a:hover::after {
  width: 100%;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--surface-muted) 100%
  );
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 40% 60%,
      rgba(0, 113, 227, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 60% 40%,
      rgba(20, 124, 235, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 3rem auto;
  list-style: none;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.portfolio .portfolio-filters li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.1),
    rgba(20, 124, 235, 0.15)
  );
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--primary);
  border-color: rgba(0, 113, 227, 0.3);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 113, 227, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.portfolio .portfolio-filters li:hover::before,
.portfolio .portfolio-filters li.filter-active::before {
  opacity: 1;
}

.portfolio .portfolio-filters li.filter-active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.3);
}

.portfolio .portfolio-filters li.filter-active::before {
  opacity: 0;
}

.portfolio .portfolio-filters li span {
  position: relative;
  z-index: 1;
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters {
    gap: 1rem;
  }

  .portfolio .portfolio-filters li {
    font-size: 14px;
    padding: 12px 20px;
    margin: 0;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--divider-border);
}

.portfolio .portfolio-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 113, 227, 0.2);
}

.portfolio .portfolio-content img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.05);
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.4s;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
  padding: 1.5rem;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 1.1rem;
  padding: 12px 20px;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.portfolio .portfolio-content .portfolio-info p {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  max-width: 80%;
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: relative;
  font-size: 1.2rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  font-size: 1.1rem;
}

/* Container for buttons */
.portfolio .portfolio-content .portfolio-info .portfolio-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.services .col-lg-4 {
  padding: 0;
  flex: 0 0 calc(33.333% - 10px);
}
.services .service-item {
  position: relative;
  margin-bottom: 20px;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--divider-border);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(0, 113, 227, 0.08);
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.services .service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.services .service-item:hover::before {
  transform: scaleX(1);
}

.services .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15);
  border-color: var(--primary);
}

.services .service-item .icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.services .service-item .icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services .service-item:hover .icon::before {
  opacity: 1;
}

.services .service-item .icon i {
  color: white;
  font-size: 24px;
  line-height: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.services .service-item:hover .icon {
  background: linear-gradient(135deg, var(--primary-hover), var(--info));
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.4);
}

.services .service-item:hover .icon i {
  color: #ffffff;
  transform: scale(1.15);
  filter: brightness(1.3);
}

.services .service-item .title {
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.3;
  flex-grow: 0;
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services .service-item .title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.services .service-item .title a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services .service-item .description {
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 500;
  flex-grow: 1;
}

/* Responsive design for services */
@media (max-width: 991px) {
  .services .col-lg-4 {
    flex: 0 0 calc(50% - 7.5px);
  }

  .services .row {
    gap: 15px;
  }

  .services .service-item {
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  .services .col-lg-4 {
    flex: 0 0 100%;
  }

  .services .row {
    gap: 12px;
  }

  .services .service-item {
    min-height: 180px;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      135deg,
      rgba(0, 120, 212, 0.03) 0%,
      rgba(16, 124, 16, 0.03) 50%,
      rgba(255, 185, 0, 0.03) 100%
    ),
    linear-gradient(
      180deg,
      rgba(248, 249, 250, 0.8) 0%,
      rgba(255, 255, 255, 0.9) 100%
    );
  pointer-events: none;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.testimonials .testimonial-item {
  box-sizing: border-box;
  text-align: center;
  min-height: 320px;
  padding: 30px 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.testimonials .testimonial-item .testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonials .testimonial-item:hover .testimonial-img {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 15px 0 8px 0;
  color: #323130;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.testimonials .testimonial-item:hover h3 {
  color: var(--accent);
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #605e5c;
  margin: 0 0 18px 0;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.testimonials .testimonial-item:hover h4 {
  color: #323130;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #a19f9d;
  font-size: 20px;
  line-height: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.testimonials .testimonial-item:hover .quote-icon-left,
.testimonials .testimonial-item:hover .quote-icon-right {
  color: var(--accent);
  opacity: 1;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -4px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -4px;
  position: relative;
  top: 8px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: normal;
  margin: 0 0 20px 0;
  padding: 0;
  background: none;
  position: relative;
  color: #323130;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials .testimonial-item:hover p {
  color: #323130;
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 25px solid rgba(255, 255, 255, 0.9);
  border-right: 25px solid transparent;
  border-left: 25px solid transparent;
  position: absolute;
  bottom: -25px;
  left: calc(50% - 25px);
  transition: all 0.3s ease;
}

.testimonials .testimonial-item:hover p::after {
  border-top-color: rgba(255, 255, 255, 0.95);
}

.testimonials .swiper-wrapper {
  height: auto;
  align-items: stretch;
}

.testimonials .swiper-slide {
  height: auto;
  display: flex;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #a19f9d;
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
}

.testimonials .swiper-pagination .swiper-pagination-bullet:hover {
  background: #605e5c;
  transform: scale(1.2);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Swiper Navigation Buttons */
.testimonials .swiper-button-next,
.testimonials .swiper-button-prev {
  color: var(--primary);
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.testimonials .swiper-button-next:hover,
.testimonials .swiper-button-prev:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.testimonials .swiper-button-next:after,
.testimonials .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.testimonials .swiper-button-next {
  right: 10px;
}

.testimonials .swiper-button-prev {
  left: 10px;
}

/* Tablet Responsive */
@media (max-width: 991px) {
  .testimonials .swiper-button-next,
  .testimonials .swiper-button-prev {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .testimonials {
    padding: 40px 0;
  }
  
  .testimonials .testimonial-item {
    min-height: 300px;
    padding: 20px 15px;
    margin: 0 5px;
  }
  
  .testimonials .testimonial-item .testimonial-img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  
  .testimonials .testimonial-item h3 {
    font-size: 16px;
    margin: 12px 0 6px 0;
  }
  
  .testimonials .testimonial-item h4 {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .testimonials .testimonial-item p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
  .testimonials {
    padding: 30px 0;
  }
  
  .testimonials .testimonial-item {
    min-height: 280px;
    padding: 15px 12px;
    margin: 0 2px;
  }
  
  .testimonials .testimonial-item .testimonial-img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  
  .testimonials .testimonial-item h3 {
    font-size: 15px;
    margin: 10px 0 5px 0;
  }
  
  .testimonials .testimonial-item h4 {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .testimonials .testimonial-item p {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .testimonials .swiper-pagination {
    margin-top: 20px;
  }
  
  /* Improve touch scrolling */
  .testimonials .swiper {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--surface-muted) 100%
  );
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact .info-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 113, 227, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(20, 124, 235, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 25px;
    background: linear-gradient(
      135deg,
      var(--apple-white) 0%,
      var(--surface-muted) 100%
    );
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 100%;
  }
}

.contact .info-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--success),
    var(--primary),
    var(--success),
    var(--primary),
    var(--apple-red)
  );
  border-radius: 15px 15px 0 0;
}

.contact .info-item {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.contact .info-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 113, 227, 0.2);
}

.contact .info-item {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.contact .info-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 113, 227, 0.2);
}

.contact .info-item i {
  font-size: 20px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.contact .info-item h3 {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--default-color);
}

.contact .info-item p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact .info-item p a:hover {
  color: var(--apple-red);
}

.contact .info-item:hover i {
  background: var(--primary);
  color: var(--apple-white);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

/* آیکون آدرس - سبز اپل */
.contact .info-item i.bi-geo-alt {
  color: var(--success);
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.3);
}

.contact .info-item:hover i.bi-geo-alt {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* آیکون تلفن - آبی اپل */
.contact .info-item i.bi-telephone,
.contact .info-item i.bi-phone {
  color: var(--primary);
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
}

.contact .info-item:hover i.bi-telephone,
.contact .info-item:hover i.bi-phone {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* آیکون واتساپ - سبز واتساپ */
.contact .info-item i.bi-whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
}

.contact .info-item:hover i.bi-whatsapp {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

/* آیکون تلگرام - آبی تلگرام */
.contact .info-item i.bi-telegram {
  color: #0088cc;
  background: rgba(0, 136, 204, 0.1);
  border-color: rgba(0, 136, 204, 0.3);
}

.contact .info-item:hover i.bi-telegram {
  background: #0088cc;
  color: white;
  border-color: #0088cc;
}

/* آیکون ایمیل - قرمز اپل */
.contact .info-item i.bi-envelope {
  color: var(--apple-red);
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .info-item i.bi-envelope:hover {
  background: var(--apple-red);
  color: #ffffff !important;
  border-color: var(--apple-red);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px #ebebeb;
}

.contact .info-item:hover i.bi-envelope {
  background: #b90000;
  color: white;
  border-color: #b90000;
}

.contact .php-email-form {
  background: rgba(255, 255, 255, 0.95);
  height: 100%;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact .php-email-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--success),
    var(--apple-orange)
  );
  border-radius: 15px 15px 0 0;
}

/* نقشه */
.contact .map-container {
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.contact .info-wrap iframe {
  border-radius: 16px;
  border: none;
  width: 100%;
  height: 300px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 16px;
  padding: 16px 20px;
  box-shadow: none;
  border-radius: 12px;
  color: var(--default-color);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact .php-email-form input[type="text"]:hover,
.contact .php-email-form input[type="email"]:hover,
.contact .php-email-form textarea:hover {
  border-color: rgba(0, 113, 227, 0.3);
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.contact .php-email-form label {
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 6px;
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contact .php-email-form button[type="submit"] {
  color: var(--apple-white);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  border: 0;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.2);
  text-transform: none;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact .php-email-form button[type="submit"]::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;
}

.contact .php-email-form button[type="submit"]:hover::before {
  left: 100%;
}

.contact .php-email-form button[type="submit"]:hover {
  background: linear-gradient(
    135deg,
    var(--primary-hover) 0%,
    var(--primary) 100%
  );
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 113, 227, 0.4);
}

.contact .php-email-form button[type="submit"]:active {
  transform: translateY(-1px) scale(0.98);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid
    color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

/* === Final Light Mode Patch v2 === */

/* 1) Header: Remove dark background + add subtle transparency */
.header.dark-background {
  --background-color: #ffffff;
  --default-color: #1f2937;
  --heading-color: #0f172a;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

/* 2) Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial,
    sans-serif;
  --heading-font: "Poppins", "Raleway", sans-serif;

  /* Persian fonts for RTL support */
  --persian-font: "Vazirmatn", "Estedad", "Tahoma", "Arial", sans-serif;
  --persian-heading-font: "Estedad", "Vazirmatn", "Tahoma", "Arial", sans-serif;

  /* Better contrast for menu in light mode */
  --nav-color: #6b7280; /* Previous was too light (#c6c6c6) */
  --nav-hover-color: #0f172a;
  --nav-dropdown-color: #334155;
  --nav-dropdown-hover-color: #0f172a;

  /* Brand navy blue */
  --accent-color: #0050a0;

  /* Language transition animations */
  --transition-duration: 0.3s;
  --transition-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Page fade from top animation */
html.language-transition {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html.language-transition.fade-out {
  opacity: 0;
  transform: translateY(-50px);
}

html.language-transition.fade-in {
  opacity: 0;
  transform: translateY(50px);
}

html.language-transition.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page load animation - fade from top */
html {
  animation: fadeInFromTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* 3) Stats card-style */
.stats .stats-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-color);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.stats .stats-item i {
  font-size: 44px;
  line-height: 1;
  color: var(--success);
}
.stats .stats-item .purecounter {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
}
.stats .stats-item p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* 4) Light nav dropdown + fix var() */
.navmenu .dropdown ul {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
  padding: 8px 0;
}
.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: var(--nav-dropdown-color); /* ← Fix var() */
}
.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

/* Deep submenu slightly distinct */
.navmenu .dropdown ul ul {
  background-color: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
}

/* Hover and active menu states */
.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}
.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

/* Dropdown toggle handle */
.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
}
.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Service items styling moved to main services section above */

/* Skills styles are handled in the main skills section above */

/* If using custom blocks (skills-info/skill-container/skill-percentage) */
.skills-info h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skill-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}
.skill-container {
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  height: 8px;
}
.skill-percentage {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  transition: width 1s ease;
}
/* Width mapping (Technical/Professional) */
.skill-percentage.skill-1 {
  width: 90%;
}
.skill-percentage.skill-2 {
  width: 85%;
}
.skill-percentage.skill-3 {
  width: 80%;
}
.skill-percentage.skill-4 {
  width: 85%;
}
.skill-percentage.skill-5 {
  width: 75%;
}
.skill-percentage.skill-6 {
  width: 70%;
}
.skill-percentage.skill-7 {
  width: 80%;
}
.skill-percentage.skill-8 {
  width: 85%;
}
.skill-percentage.skill-9 {
  width: 75%;
}
.skill-percentage.skill-10 {
  width: 70%;
}

/* 7) Header social networks – light background and brand hover */
.header .social-links a {
  background: rgba(0, 0, 0, 0.06);
}
.header .social-links a:hover {
  background: var(--primary);
  color: var(--contrast-color);
}

/* Social Media Brand Colors for Light Mode */

/* X (Twitter) specific styling for light mode */
.header .social-links a.twitter:hover {
  background: #000000;
  color: white;
}

/* Facebook specific styling for light mode */
.header .social-links a.facebook:hover {
  background: #1877f2;
  color: white;
}

/* Instagram specific styling for light mode */
.header .social-links a.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

/* Phone specific styling for light mode */
.header .social-links a.google-plus:hover {
  background: #34a853;
  color: white;
}

/* WhatsApp specific styling for light mode */
.header .social-links a.whatsapp:hover {
  background: #25d366;
  color: white;
}

/* Telegram specific styling for light mode */
.header .social-links a.telegram:hover {
  background: #0088cc;
  color: white;
}

/* LinkedIn specific styling for light mode */
.header .social-links a.linkedin:hover {
  background: #0077b5;
  color: white;
}

/* GitHub specific styling for light mode */
.header .social-links a.github:hover {
  background: #333333;
  color: white;
}

/* Stack Overflow specific styling for light mode */
.header .social-links a.stackoverflow:hover {
  background: #f48024;
  color: white;
}

/* 8) Mobile minor fixes: menu button always on top */
@media (max-width: 1199px) {
  .header {
    border-right: none;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  }
}
/* Mobile menu toggle (outside header) */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--contrast-color);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.12);
  font-size: 20px;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  background: color-mix(in srgb, var(--primary) 90%, white 10%);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.menu-toggle:active {
  transform: scale(0.98);
}

.menu-toggle i {
  line-height: 1;
}

/* overlay when menu is open (mobile) */
/* Overlay اختیاری */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}
#menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* When header is open, it already has header-show class: just ensure it's above overlay */
.header {
  z-index: 10002;
}

/* i18n-colon-rtl-ltr */
.colon::before {
  content: ":";
  display: inline-block;
  margin: 0 0.25rem;
}
html[dir="rtl"] .colon::before {
  margin: 0 0.25rem;
}

/*--------------------------------------------------------------
# Logo Section with Language Switcher
--------------------------------------------------------------*/
.logo-section {
  margin-bottom: 20px;
  padding: 0 10px;
}



/* Article page styles moved to articles.css */

/* Article styles moved to articles.css */

/* Article styles moved to articles.css */

/* Code block styles moved to articles.css */

/* OpenVPN Setup Steps - Redesigned Styles */
.setup-header {
  text-align: center;
  margin-bottom: 3rem;
}

.setup-description {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

.progress-bar {
  height: 8px;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  border-radius: 6px;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007aff 0%, #0056cc 50%, #007aff 100%);
  background-size: 200% 100%;
  width: 14.28%; /* 1/7 steps */
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Setup Steps Container */
.setup-steps-container {
  margin-top: 3rem;
  overflow: visible; /* Allow step badges to extend outside */
}

.step-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  margin-bottom: 3rem;
  margin-top: 1.5rem; /* Add top margin to accommodate the badge */
  overflow: visible; /* Allow badge to extend outside */
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.1),
    0 4px 16px -4px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff8d19 0%, #e67e00 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.2),
    0 8px 25px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.step-card:hover::before {
  opacity: 1;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  border-radius: 24px 24px 0 0;
}

.step-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.step-info {
  flex: 1;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.step-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.step-content {
  padding: 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 0 0 24px 24px;
}

.step-content .code-block {
  direction: ltr !important; /* Force left-to-right for code blocks in steps */
  text-align: left !important; /* Force left alignment for code blocks in steps */
}

/* Testing Steps */
.testing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.test-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.test-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff8d19 0%, #e67e00 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.test-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #d04338;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

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

.test-content h4 {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.test-content p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .step-label {
    font-size: 11px;
  }

  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem;
  }

  .step-title {
    font-size: 1.3rem;
  }

  .step-content {
    padding: 2.5rem;
  }

  .step-card {
    margin-top: 0.75rem; /* Adjust top margin for mobile */
  }

  .testing-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .test-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .setup-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .step-label {
    font-size: 10px;
  }

  .step-header {
    padding: 1.5rem;
    gap: 1rem;
  }

  .step-title {
    font-size: 1.2rem;
  }

  .step-content {
    padding: 1.5rem;
  }

  .step-card {
    margin-top: 0.5rem; /* Adjust top margin for small mobile */
  }

  .test-item {
    padding: 1.25rem;
  }
}

/* Article styles moved to articles.css */

/* Accessibility Improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #d04338;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Article styles moved to articles.css */

/* Article styles moved to articles.css */

/* Article styles moved to articles.css */

/* Article styles moved to articles.css */

/* Background Elements - Apple Style */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.bg-shape-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.bg-shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Article styles moved to articles.css */

/* Article styles moved to articles.css */

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
}

.author-title {
  font-size: 14px;
  opacity: 0.8;
}

/* Article styles moved to articles.css */

.toc {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 10px;
}

.toc a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: var(--text-primary);
}

.highlight-box {
  background: linear-gradient(135deg, var(--surface), var(--surface-muted));
  border: 1px solid var(--divider-border);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlight-box h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.highlight-box ul {
  margin: 0;
  padding-left: 20px;
}

.highlight-box li {
  color: var(--default-color);
  margin-bottom: 8px;
}

/* Article styles moved to articles.css */

.info-box {
  background: linear-gradient(135deg, var(--surface), var(--surface-muted));
  border: 1px solid var(--divider-border);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--success);
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-box h4 {
  color: #10b981;
  margin-bottom: 15px;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

.info-box li {
  color: var(--default-color);
  margin-bottom: 8px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.tool-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.tool-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.tool-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--default-color);
  font-size: 0.95rem;
  margin: 0;
}

.security-checklist {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(220, 38, 38, 0.05)
  );
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.security-checklist h4 {
  color: #ef4444;
  margin-bottom: 15px;
}

.security-checklist ul {
  margin: 0;
  padding-left: 20px;
}

.security-checklist li {
  color: var(--default-color);
  margin-bottom: 8px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metric-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--default-color);
  font-weight: 500;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

.author-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  position: relative;
  z-index: 2;
}

.author-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid #ffffff;
  flex-shrink: 0;
  box-shadow: 0 20px 40px -8px rgba(255, 141, 25, 0.4),
    0 8px 25px -4px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  padding: 4px;
  animation: rotateIn 1.2s ease-out 0.2s both;
}

@keyframes rotateIn {
  0% {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.author-photo::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

.author-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -8px rgba(255, 141, 25, 0.5),
    0 12px 30px -4px rgba(0, 0, 0, 0.15);
}

/* Glow effect for author photo */
.author-photo::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.author-photo:hover::after {
  opacity: 0.3;
}

.author-details h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: slideInFromTop 0.8s ease-out 0.1s both;
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.author-details h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff8d19 0%, #e67e00 100%);
  border-radius: 2px;
}

.author-details h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideInFromLeft 0.8s ease-out;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.expert-badge {
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 141, 25, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: bounceIn 1s ease-out 0.5s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.expert-badge::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;
}

.expert-badge:hover::before {
  left: 100%;
}

.expert-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 141, 25, 0.4);
}

.author-details p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.author-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  animation: slideInFromRight 1s ease-out 0.7s both;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #64748b;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 12px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: scaleIn 0.6s ease-out both;
}

.author-social a:nth-child(1) {
  animation-delay: 0.8s;
}

.author-social a:nth-child(2) {
  animation-delay: 0.9s;
}

.author-social a:nth-child(3) {
  animation-delay: 1s;
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.author-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #d04338 0%, #b8392f 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.author-social a i {
  font-size: 24px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.author-social a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px -8px rgba(255, 141, 25, 0.4),
    0 8px 25px -4px rgba(0, 0, 0, 0.1);
}

.author-social a:hover::before {
  opacity: 1;
}

.author-social a:hover i {
  color: white;
  transform: scale(1.1);
}

/* Specific colors for each social platform */
.author-social a[href*="linkedin"]:hover {
  box-shadow: 0 16px 40px -8px rgba(0, 119, 181, 0.4),
    0 8px 25px -4px rgba(0, 0, 0, 0.1);
}

.author-social a[href*="linkedin"]:hover::before {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.author-social a[href*="github"]:hover {
  box-shadow: 0 16px 40px -8px rgba(51, 51, 51, 0.4),
    0 8px 25px -4px rgba(0, 0, 0, 0.1);
}

.author-social a[href*="github"]:hover::before {
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
}

.author-social a[href*="twitter"]:hover {
  box-shadow: 0 16px 40px -8px rgba(29, 161, 242, 0.4),
    0 8px 25px -4px rgba(0, 0, 0, 0.1);
}

.author-social a[href*="twitter"]:hover::before {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.related-articles {
  background: linear-gradient(
    135deg,
    var(--surface-muted) 0%,
    var(--background) 100%
  );
  padding: 80px 0;
  animation: fadeInUp 0.8s ease-out;
}

.related-articles h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 50px;
}

.related-card {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--divider-border);
  animation: fadeInUp 0.6s ease-out;
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 25px;
}

.related-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.related-content p {
  font-size: 0.95rem;
  color: var(--default-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--text-primary);
}

/* Article styles moved to articles.css */

html[dir="rtl"] .toc {
  text-align: right;
}

html[dir="rtl"] .author-card {
  flex-direction: row-reverse;
}

html[dir="rtl"] .author-details {
  text-align: right;
}

html[dir="rtl"] .author-social {
  justify-content: flex-end;
}

html[dir="rtl"] .related-content {
  text-align: right;
}

/* Article styles moved to articles.css */

.tools-grid {
  grid-template-columns: 1fr;
}

.metrics-grid {
  grid-template-columns: repeat(2, 1fr);
}

.author-card {
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  padding: 2.5rem;
}

.author-photo {
  width: 120px;
  height: 120px;
}

.author-details h3 {
  font-size: 1.5rem;
}

.author-details h4 {
  font-size: 1.4rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.expert-badge {
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
}

.author-details p {
  font-size: 1rem;
}

.author-social {
  justify-content: center;
  gap: 1rem;
}

.author-social a {
  width: 48px;
  height: 48px;
}

.author-social a i {
  font-size: 20px;
}

.related-articles h2 {
  font-size: 2rem;
}

.related-content h3 {
  font-size: 1.2rem;
}

/* Article styles moved to articles.css */

.highlight-box,
.info-box {
  padding: 20px;
  margin: 20px 0;
}

.metrics-grid {
  grid-template-columns: 1fr;
}

.related-articles {
  padding: 40px 0;
}

.related-articles h2 {
  font-size: 1.8rem;
}

/*--------------------------------------------------------------
# Article Page Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/*--------------------------------------------------------------
# Hero Section - Side by Side Design (LTR)
--------------------------------------------------------------*/

/* Hero Animations */
@keyframes heroImgFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes heroTitleSlide {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroSubtitleFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroActionsSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBtnShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes skillsShine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes progressBarFill {
  0% {
    width: 0%;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes progressBarGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes resumeItemSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 2rem 0;
  gap: 4rem;
  flex-direction: row-reverse;
  position: relative;
}

/* Modern Hero Background with Gradient Overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.1) 0%,
    rgba(20, 124, 235, 0.05) 25%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Floating Elements Animation */
.hero::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--devops-accent),
    var(--secondary-accent)
  );
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

/* Modern Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

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

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

@keyframes heroTitleSlide {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleFade {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroActionsSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-profile-section {
  flex: 0 0 auto;
}

.hero-profile-img {
  position: relative;
  display: inline-block;
}

.hero-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 6px solid rgba(255, 255, 255, 0.2);
  animation: heroImgFloat 6s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 113, 227, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 3;
}

.hero-img-border {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: heroBorderPulse 3s ease-in-out infinite;
}

.hero-img-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), transparent);
  opacity: 0;
  transition: all 0.4s ease;
}

.hero-profile-img:hover .hero-img {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-profile-img:hover .hero-img-border {
  opacity: 1;
  transform: scale(1.02);
}

.hero-profile-img:hover .hero-img-shadow {
  opacity: 0.2;
}

.hero-status-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 4;
  animation: heroStatusPulse 2s infinite;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes heroStatusPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
}

.hero-content-section {
  flex: 1;
  max-width: 650px;
  position: relative;
}

.hero-content {
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Modern Badge - Dark Theme */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-badge:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Modern Title Design */
.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 20%,
    var(--primary) 40%,
    var(--primary-hover) 60%,
    #ffffff 80%,
    #f8fafc 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  animation: heroTitleGradient 4s ease-in-out infinite;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
}

.title-line-1 {
  display: block;
  margin-bottom: 0.2em;
}

.title-line-2 {
  display: block;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--info) 50%,
    var(--security-accent) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes heroTitleGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-title:hover {
  transform: scale(1.02) translateY(-3px);
}

/* Enhanced Subtitle */
.hero-subtitle-wrapper {
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 2.2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  animation: heroSubtitleFade 1.5s ease-out 0.5s both;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.subtitle-prefix {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-subtitle .typed {
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
  position: relative;
}

.hero-subtitle .typed::after {
  content: "|";
  color: var(--primary);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-subtitle:hover {
  transform: scale(1.01) translateY(-1px);
}

/* Modern Action Buttons */
.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: heroActionsSlide 1.8s ease-out 1s both;
}

.hero-actions .btn-modern {
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1rem;
  min-width: 160px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.btn-icon {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.hero-actions .btn-modern:hover .btn-icon {
  transform: translateX(4px);
}

.hero-actions .btn-modern:hover .btn-text {
  transform: translateX(-2px);
}

/* Modern Primary Button - Original Colors */
.hero-actions .btn-primary.btn-modern {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 50%,
    var(--info) 100%
  );
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-primary.btn-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-actions .btn-primary.btn-modern:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 113, 227, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-actions .btn-primary.btn-modern:hover::before {
  opacity: 1;
}

.hero-actions .btn-primary.btn-modern:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

/* Modern Outline Button - Dark Theme */
.hero-actions .btn-outline-light.btn-modern {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-outline-light.btn-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-actions .btn-outline-light.btn-modern:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.9);
}

.hero-actions .btn-outline-light.btn-modern:hover::before {
  opacity: 1;
}

.hero-actions .btn-outline-light.btn-modern:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

/* Hero Responsive Design */
@media (max-width: 1199px) {
  .hero-wrapper {
    gap: 3rem;
  }

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

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-img {
    width: 250px;
    height: 250px;
  }

  /* About responsive for tablets */
  .about {
    padding: 70px 0;
  }

  .about .col-lg-4 img {
    max-width: 300px;
  }

  .about .content h2 {
    font-size: 2rem;
  }

  .about .content .fst-italic {
    font-size: 1.05rem;
  }
}

@media (max-width: 991px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 1rem 0;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-profile-section {
    order: 1;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .hero-img {
    width: 200px;
    height: 200px;
  }

  .hero-actions {
    justify-content: center;
    gap: 1rem;
  }

  .hero-actions .btn {
    min-width: 150px;
    padding: 15px 30px;
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-img {
    width: 200px;
    height: 200px;
  }

  .hero-description p {
    font-size: 1.1rem;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-wrapper {
    padding: 0 0 50px 0;
    gap: 1.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* دکمه‌های کوچک‌تر و کنار هم در موبایل */
  .hero-actions {
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: center;
  }

  .hero-actions .btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    min-width: auto !important;
    width: auto !important;
    flex: 1;
    max-width: 120px;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-img {
    width: 150px;
    height: 150px;
  }

  .hero-description p {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  .hero-actions .btn {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 140px;
  }
}

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

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-img {
    width: 120px;
    height: 120px;
  }

  .hero-description p {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 200px;
    padding: 12px 20px;
  }
}
