/* ===== CSS VARIABLES ===== */
:root {
    /* Light Theme Colors */
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --accent-gold: #f39c12;
    --accent-hover: #e67e22;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 20px rgba(0,0,0,0.1);
    
    /* Dark Theme Colors */
    --dark-primary: #1a1a1a;
    --dark-secondary: #2d2d2d;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-border: #404040;
    --dark-shadow: 0 2px 20px rgba(0,0,0,0.3);
    
    /* Spacing & Typography */
    --nav-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  /* ===== RESET & BASE ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-primary);
    transition: var(--transition);
    overflow-x: hidden;
  }
  
  /* ===== NAVIGATION HEADER ===== */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
  }
  
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
    transform: translateY(0);
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* ===== LOGO ===== */
  .nav-logo {
    z-index: 1001;
  }
  
  .logo-link {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: var(--transition);
  }
  
  .logo-text {
    color: var(--text-primary);
    transition: var(--transition);
  }
  
  .logo-accent {
    color: var(--accent-gold);
    margin-right: 2px;
    transition: var(--transition);
  }
  
  .logo-link:hover {
    transform: translateY(-2px);
  }
  
  .logo-link:hover .logo-text {
    color: var(--accent-gold);
  }
  
  /* ===== DESKTOP NAVIGATION ===== */
  .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
  }
  
  .nav-item {
    position: relative;
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .nav-link i {
    font-size: 1.1rem;
    transition: var(--transition);
  }
  
  .nav-link:hover {
    color: var(--accent-gold);
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-2px);
  }
  
  .nav-link:hover i {
    transform: scale(1.1);
  }
  
  .nav-link.active {
    color: var(--accent-gold);
    background: rgba(243, 156, 18, 0.15);
  }
  
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
  }
  
  /* Resume Button Special Style */
  .resume-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
    color: white !important;
    margin-right: 8px;
  }
  
  .resume-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
  }
  
  /* ===== NAVIGATION ACTIONS ===== */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
  }
  
  /* Theme Toggle */
  .theme-toggle {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .theme-toggle:hover {
    background: var(--accent-gold);
    color: white;
    transform: rotate(180deg) scale(1.1);
  }
  
  .theme-icon {
    font-size: 1.3rem;
    transition: var(--transition);
  }
  
  /* Mobile Toggle */
  .mobile-toggle {
    width: 45px;
    height: 45px;
    border: none;
    background: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
  }
  
  .hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
  }
  
  .mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* ===== MOBILE MENU OVERLAY ===== */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* ===== DARK THEME ===== */
  body.dark-theme {
    --primary-color: var(--dark-primary);
    --secondary-color: var(--dark-secondary);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --border-color: var(--dark-border);
    --shadow-light: var(--dark-shadow);
  }
  
  body.dark-theme .navbar {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: var(--dark-border);
  }
  
  body.dark-theme .navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
  }
  
  body.dark-theme .hamburger-line {
    background: var(--dark-text-primary);
  }
  
  /* ===== RESPONSIVE DESIGN ===== */
  
  /* Tablet */
  /* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Tablet - Large */
/* Tablet - Large */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .nav-menu {
    gap: 4px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link i {
    margin: 0;
  }
}

/* Mobile - Main */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 20px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    z-index: 999; /* FIX: Ensure proper stacking */
    overflow-y: auto; /* FIX: Allow scrolling if menu is too long */
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
    max-width: 300px;
    opacity: 0; /* FIX: Initial state for animation */
    transform: translateY(-20px) scale(0.95); /* FIX: Initial transform */
    transition: all 0.3s ease;
  }
  
  /* FIX: Ensure nav items are visible when menu is active */
  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .nav-link {
    width: 100%;
    padding: 15px 20px;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 15px;
    background: var(--secondary-color);
    border: 2px solid transparent; /* FIX: Prevent layout shift on hover */
    transition: all 0.3s ease;
  }
  
  .nav-link span {
    display: block;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.2);
    border-color: var(--accent-color);
  }
  
  /* FIX: Special styling for resume button in mobile */
  .nav-link.resume-btn {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    margin-top: 10px;
  }
  
  .nav-link.resume-btn:hover {
    background: #e67e22;
    transform: translateY(-3px) scale(1.05);
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
  
  /* FIX: Mobile overlay styles */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .logo-link {
    font-size: 1.6rem;
  }
  
  .nav-menu {
    padding: 30px 15px;
    gap: 15px;
  }
  
  .nav-link {
    padding: 12px 18px;
    font-size: 1rem;
  }
  
  /* FIX: Better spacing for small screens */
  .nav-item {
    max-width: 280px;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .nav-container {
    padding: 0 12px;
  }
  
  .logo-link {
    font-size: 1.4rem;
  }
  
  .nav-menu {
    padding: 25px 12px;
    gap: 12px;
  }
  
  .nav-link {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-menu {
    height: calc(100vh - var(--nav-height));
    padding: 20px;
    gap: 15px;
    overflow-y: auto;
  }
  
  .nav-link {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* FIX: Prevent menu background color issue on resize */
@media (min-width: 769px) {
  .nav-menu {
    position: static !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    padding: 0 !important;
    border: none !important;
    overflow: visible !important;
  }
  
  .nav-item {
    width: auto !important;
    max-width: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .nav-link {
    width: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
  
  .mobile-toggle {
    display: none !important;
  }
}

/* ===== ANIMATIONS FOR RESPONSIVE ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FIX: Staggered animation for mobile menu items */
.nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
.nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
.nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
.nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.35s; }
.nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.4s; }
.nav-menu.active .nav-item:nth-child(8) { transition-delay: 0.45s; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .nav-item {
    transition: none !important;
  }
}

/* FIX: High contrast mode support */
@media (prefers-contrast: high) {
  .nav-link {
    border: 2px solid currentColor;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    background: currentColor;
    color: var(--primary-color);
  }
}

/* ===== فورس کردن دکمه رزومه - 100% کار میکنه ===== */
/* این کد رو در انتهای CSS فایلت کپی کن */

/* قوی‌ترین selector ممکن برای دکمه رزومه */
html body .navbar .nav-container .nav-menu .nav-item .nav-link.resume-btn,
html body .navbar .nav-container .nav-menu .nav-item .nav-link[href*="resume"],
html body .navbar .nav-container .nav-menu .nav-item .nav-link[href*="pdf"],
html body .navbar .nav-container .nav-menu .nav-item a[href*="resume.pdf"],
html body .navbar .nav-container .nav-menu .nav-item a[target="_blank"] {
  background-color: #f39c12 !important;
  background: #f39c12 !important;
  color: #ffffff !important;
  border: 2px solid #f39c12 !important;
  border-color: #f39c12 !important;
}

/* hover state */
html body .navbar .nav-container .nav-menu .nav-item .nav-link.resume-btn:hover,
html body .navbar .nav-container .nav-menu .nav-item .nav-link[href*="resume"]:hover,
html body .navbar .nav-container .nav-menu .nav-item .nav-link[href*="pdf"]:hover,
html body .navbar .nav-container .nav-menu .nav-item a[href*="resume.pdf"]:hover,
html body .navbar .nav-container .nav-menu .nav-item a[target="_blank"]:hover {
  background-color: #e67e22 !important;
  background: #e67e22 !important;
  color: #ffffff !important;
  border-color: #e67e22 !important;
}

/* در تم تاریک هم */
html body.dark-theme .navbar .nav-container .nav-menu .nav-item .nav-link.resume-btn,
html body.dark-theme .navbar .nav-container .nav-menu .nav-item .nav-link[href*="resume"],
html body.dark-theme .navbar .nav-container .nav-menu .nav-item .nav-link[href*="pdf"],
html body.dark-theme .navbar .nav-container .nav-menu .nav-item a[href*="resume.pdf"],
html body.dark-theme .navbar .nav-container .nav-menu .nav-item a[target="_blank"] {
  background-color: #f39c12 !important;
  background: #f39c12 !important;
  color: #ffffff !important;
  border: 2px solid #f39c12 !important;
  border-color: #f39c12 !important;
}

/* در تم روشن هم */
html body:not(.dark-theme) .navbar .nav-container .nav-menu .nav-item .nav-link.resume-btn,
html body:not(.dark-theme) .navbar .nav-container .nav-menu .nav-item .nav-link[href*="resume"],
html body:not(.dark-theme) .navbar .nav-container .nav-menu .nav-item .nav-link[href*="pdf"],
html body:not(.dark-theme) .navbar .nav-container .nav-menu .nav-item a[href*="resume.pdf"],
html body:not(.dark-theme) .navbar .nav-container .nav-menu .nav-item a[target="_blank"] {
  background-color: #f39c12 !important;
  background: #f39c12 !important;
  color: #ffffff !important;
  border: 2px solid #f39c12 !important;
  border-color: #f39c12 !important;
}

/* مشکل range 1030-1065 - درباره من */
@media (min-width: 1030px) and (max-width: 1065px) {
  html body .navbar .nav-container .nav-menu {
    gap: 1px !important;
  }
  
  html body .navbar .nav-container .nav-menu .nav-item .nav-link {
    padding: 6px 4px !important;
    font-size: 0.7rem !important;
  }
  
  /* دکمه درباره من - آیتم دوم */
  html body .navbar .nav-container .nav-menu .nav-item:nth-child(2) .nav-link {
    padding: 6px 2px !important;
    font-size: 0.65rem !important;
  }
  
  /* رزومه در این range */
  html body .navbar .nav-container .nav-menu .nav-item .nav-link.resume-btn,
  html body .navbar .nav-container .nav-menu .nav-item a[target="_blank"] {
    background-color: #f39c12 !important;
    background: #f39c12 !important;
    color: #ffffff !important;
    border: 2px solid #f39c12 !important;
    padding: 6px 6px !important;
    font-size: 0.7rem !important;
  }
}

/* موبایل */
@media (max-width: 768px) {
  html body .navbar .nav-container .nav-menu .nav-item .nav-link.resume-btn,
  html body .navbar .nav-container .nav-menu .nav-item .nav-link[href*="resume"],
  html body .navbar .nav-container .nav-menu .nav-item a[target="_blank"] {
    background-color: #f39c12 !important;
    background: #f39c12 !important;
    color: #ffffff !important;
    border: 2px solid #f39c12 !important;
    margin-top: 10px !important;
  }
}

/* اگه هنوز کار نکرد، این inline style رو هم اضافه کن */
.force-resume-style {
  background: #f39c12 !important;
  color: white !important;
  border: 2px solid #f39c12 !important;
}

/* چک کن ببین کدوم class اصلی داره */
li:last-child .nav-link,
.nav-item:last-child .nav-link,
.nav-item:nth-child(8) .nav-link {
  background: #f39c12 !important;
  color: #ffffff !important;
  border: 2px solid #f39c12 !important;
}
/*--------------------*/
/* Hero Section Styles -------------------------------------------------------------------------------------------------------*/
/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding-top: var(--nav-height);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - var(--nav-height));
}

/* ===== HERO TEXT CONTENT ===== */
.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-line {
  font-size: 1.8rem;
  color: var(--text-secondary);
  font-weight: 400;
  animation: slideInRight 1s ease-out 0.2s both;
}

.title-name {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInRight 1s ease-out 0.4s both;
  position: relative;
}

.title-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: expandWidth 1s ease-out 1.2s both;
}

.title-role {
  font-size: 1.6rem;
  color: var(--text-primary);
  font-weight: 500;
  animation: slideInRight 1s ease-out 0.6s both;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 35px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-description strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.highlight {
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
}

.highlight::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  animation: highlightGlow 2s ease-in-out infinite;
}

/* ===== HERO FEATURES ===== */
.hero-features {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 1s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.feature-item i {
  font-size: 1.2rem;
  color: var(--accent-gold);
  animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(2) i {
  animation-delay: 0.3s;
}

.feature-item:nth-child(3) i {
  animation-delay: 0.6s;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::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.7s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  color: white;
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--accent-gold);
  color: white;
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

/* ===== HERO IMAGES ===== */
.hero-images {
  position: relative;
  height: 500px;
  animation: fadeInLeft 1s ease-out 0.6s both;
}

.image-container {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.main-image {
  width: 320px;
  height: 400px;
  top: 0;
  right: 0;
  z-index: 2;
}

.secondary-image {
  width: 250px;
  height: 300px;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-container:hover .hero-img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.image-container:hover .image-overlay {
  transform: translateY(0);
}

.image-badge {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent-gold);
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: float 3s ease-in-out infinite;
  z-index: 3;
}

.floating-element i {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.tech-1 {
  top: 50px;
  left: 50px;
  animation-delay: 0s;
}

.tech-2 {
  top: 200px;
  right: -30px;
  animation-delay: 1s;
}

.tech-3 {
  bottom: 100px;
  left: 100px;
  animation-delay: 2s;
}

/* ===== SCROLL INDICATOR - REMOVED ===== */
.scroll-indicator {
  display: none;
}

/* ===== BACKGROUND ELEMENTS ===== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.05));
  animation: rotate 20s linear infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  animation-direction: reverse;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(243, 156, 18, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: patternMove 30s linear infinite;
}

/* ===== DARK THEME ===== */
body.dark-theme .hero {
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
}

body.dark-theme .floating-element {
  background: var(--dark-secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-theme .btn-secondary {
  border-color: var(--dark-border);
}

/* ===== RESPONSIVE DESIGN - بهینه شده ===== */

/* Large Tablets */
@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-images {
    height: 400px;
  }
  
  .main-image {
    width: 280px;
    height: 350px;
  }
  
  .secondary-image {
    width: 220px;
    height: 260px;
  }
  
  .floating-element {
    width: 50px;
    height: 50px;
  }
  
  .floating-element i {
    font-size: 1.3rem;
  }
}

/* Tablets */
@media (max-width: 930px) and (min-width: 769px) {
  .hero-buttons {
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    min-width: 200px;
    flex: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: var(--nav-height) 0 40px;
  }
  
  .hero-container {
    padding: 0 15px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-images {
    order: 1;
    height: 300px;
    margin: 0 auto;
    max-width: 280px;
    position: relative;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
  }
  
  .title-line {
    font-size: 1.4rem;
  }
  
  .title-role {
    font-size: 1.3rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .hero-features {
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
  }
  
  .feature-item {
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    justify-content: center;
    gap: 15px;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
  
  /* تصاویر بهینه شده برای تبلت */
  .main-image {
    width: 220px;
    height: 280px;
    top: 0;
    right: 30px;
    position: absolute;
  }
  
  .secondary-image {
    width: 160px;
    height: 200px;
    bottom: 20px;
    left: 0;
    position: absolute;
  }
  
  /* المان‌های شناور کمتر */
  .floating-element {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }
  
  .floating-element i {
    font-size: 1.1rem;
  }
  
  .tech-1 {
    top: 20px;
    left: 20px;
  }
  
  .tech-2 {
    top: 120px;
    right: -10px;
  }
  
  .tech-3 {
    bottom: 60px;
    left: 60px;
  }
}

/* موبایل‌های بزرگ */
@media (max-width: 600px) {
  .hero {
    padding: calc(var(--nav-height) + 20px) 0 40px;
  }
  
  .hero-container {
    padding: 0 20px;
  }
  
  .hero-content {
    gap: 35px;
    padding: 20px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  
  .title-line {
    font-size: 1.2rem;
  }
  
  .title-role {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }
  
  .hero-features {
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .feature-item {
    font-size: 0.85rem;
  }
  
  .feature-item i {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  
  .btn {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    padding: 14px 15px;
    font-size: 0.9rem;
    justify-content: center;
    white-space: nowrap;
  }
  
  /* تصاویر موبایل */
  .hero-images {
    height: 250px;
    max-width: 240px;
  }
  
  .main-image {
    width: 180px;
    height: 230px;
    top: 0;
    right: 20px;
  }
  
  .secondary-image {
    width: 130px;
    height: 160px;
    bottom: 20px;
    left: 0;
  }
  
  /* حذف برخی المان‌های شناور در موبایل */
  .tech-3 {
    display: none;
  }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
  .hero-container {
    padding: 0 15px;
  }
  
  .hero-content {
    gap: 30px;
    padding: 15px 0;
  }
  
  .hero-title {
    font-size: 2rem;
    gap: 5px;
  }
  
  .title-line {
    font-size: 1.1rem;
  }
  
  .title-name {
    font-size: 1.8rem;
  }
  
  .title-role {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
  }
  
  .hero-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .btn {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    padding: 12px 10px;
    font-size: 0.85rem;
    text-align: center;
  }
  
  /* تصاویر موبایل کوچک */
  .hero-images {
    height: 200px;
    max-width: 200px;
  }
  
  .main-image {
    width: 150px;
    height: 190px;
    right: 15px;
  }
  
  .secondary-image {
    width: 110px;
    height: 140px;
    bottom: 15px;
  }
  
  /* المان‌های شناور ساده‌تر */
  .floating-element {
    width: 35px;
    height: 35px;
  }
  
  .floating-element i {
    font-size: 1rem;
  }
  
  .tech-1 {
    top: 15px;
    left: 10px;
  }
  
  .tech-2 {
    top: 100px;
    right: -5px;
  }
  
  /* scroll indicator حذف شده */
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .title-name {
    font-size: 1.6rem;
  }
  
  .hero-description {
    font-size: 0.85rem;
  }
  
  .btn {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    padding: 10px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  
  .hero-images {
    height: 180px;
    max-width: 180px;
  }
  
  .main-image {
    width: 130px;
    height: 170px;
    right: 10px;
  }
  
  .secondary-image {
    width: 95px;
    height: 120px;
    bottom: 10px;
  }
}

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

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

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

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes highlightGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 60%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  80% {
    transform: translateY(-2px);
  }
}

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

@keyframes bounceDown {
  /* Animation removed - not needed anymore */
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes patternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(60px) translateY(60px);
  }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: 100px 0;
  background: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.portfolio-content {
  padding: 30px;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.portfolio-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 100px 0;
  background: var(--primary-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-light);
}

.contact-item i {
  font-size: 2rem;
  color: var(--accent-gold);
  min-width: 50px;
}

.contact-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-form {
  background: var(--secondary-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  background: var(--primary-color);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== RESPONSIVE DESIGN FOR NEW SECTIONS ===== */
@media (max-width: 768px) {
  .portfolio,
  .contact {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .portfolio,
  .contact {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .contact-item {
    padding: 20px;
    gap: 15px;
  }
  
  .contact-item i {
    font-size: 1.5rem;
    min-width: 40px;
  }
  
  .contact-form {
    padding: 25px 15px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
}

/* ===== DARK THEME FOR NEW SECTIONS ===== */
body.dark-theme .portfolio {
  background: var(--dark-secondary);
}

body.dark-theme .contact {
  background: var(--dark-primary);
}

body.dark-theme .portfolio-item {
  background: var(--dark-secondary);
}

body.dark-theme .contact-item,
body.dark-theme .contact-form {
  background: var(--dark-secondary);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: var(--dark-primary);
  border-color: var(--dark-border);
  color: var(--dark-text-primary);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: var(--accent-gold);
}
/*--------------------------------------------------------------------------------------------------*/
.about-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  font-family: var(--font-family);
}

[data-theme="dark"] .about-section {
  background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease;
}




.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 15px 0;
  background: linear-gradient(45deg, var(--text-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .section-title {
  background: linear-gradient(45deg, var(--dark-text-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 300;
}

[data-theme="dark"] .section-subtitle {
  color: var(--dark-text-secondary);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Profile Card */
.profile-card {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

[data-theme="dark"] .profile-card {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-hover));
}

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

.profile-image {
  position: relative;
  margin-bottom: 30px;
}
.profile-madraks{
  margin-top: 20px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
  transition: var(--transition);
  animation: zoomIn 0.8s ease;
}

.profile-img:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(243, 156, 18, 0.5);
}

.status-badge {
  position: absolute;
  bottom: 10px;
  right: 50%;
  transform: translateX(50%);
  background: #2ecc71;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}

.profile-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

[data-theme="dark"] .profile-info h3 {
  color: var(--dark-text-primary);
}

.profile-role {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

[data-theme="dark"] .profile-role {
  color: var(--dark-text-secondary);
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

[data-theme="dark"] .stat-label {
  color: var(--dark-text-secondary);
}

/* About Details */
.about-details {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="dark"] .about-details {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

[data-theme="dark"] .about-text h3 {
  color: var(--dark-text-primary);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

[data-theme="dark"] .about-text p {
  color: var(--dark-text-secondary);
}

.about-text strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.about-text em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

[data-theme="dark"] .about-text em {
  color: var(--dark-text-primary);
}

/* Skills Grid */
.skills-grid {
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.skill-category h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .skill-category h4 {
  color: var(--dark-text-primary);
}

.skill-category i {
  color: var(--accent-gold);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--secondary-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: default;
}

[data-theme="dark"] .skill-tag {
  background: var(--dark-primary);
  color: var(--dark-text-primary);
  border-color: var(--dark-border);
}

.skill-tag:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

/* Value Props */
.value-props {
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.props-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 50px;
}

[data-theme="dark"] .props-title {
  color: var(--dark-text-primary);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; /* کاهش فاصله برای پر کردن فضا */
}

.prop-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  padding: 35px;
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .prop-card {
  background: linear-gradient(135deg, var(--dark-primary), var(--dark-secondary));
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

.prop-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(243, 156, 18, 0.1), transparent);
  transform: rotate(45deg);
  transition: var(--transition);
  opacity: 0;
}

.prop-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

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

.prop-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-hover));
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.prop-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

[data-theme="dark"] .prop-card h4 {
  color: var(--dark-text-primary);
}

.prop-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: 500;
}

[data-theme="dark"] .prop-card p {
  color: var(--dark-text-secondary);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  border-radius: var(--border-radius);
  padding: 60px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 10s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--accent-gold);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-hover));
  opacity: 0.1;
}

.float-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.float-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

.float-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 70%;
  animation: float 7s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

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

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

@keyframes shimmer {
  0% {
      transform: translateX(-100%) translateY(-100%) rotate(45deg);
      opacity: 0;
  }
  50% {
      opacity: 1;
  }
  100% {
      transform: translateX(100%) translateY(100%) rotate(45deg);
      opacity: 0;
  }
}

@keyframes zoomIn {
  from {
      opacity: 0;
      transform: scale(0.8);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-section {
      padding: 60px 0;
  }
  
  .container {
      padding: 0 15px;
  }
  
  .section-title {
      font-size: 2.5rem;
  }
  
  .section-subtitle {
      font-size: 1.1rem;
  }
  
  .about-grid {
      grid-template-columns: 1fr;
      gap: 30px;
      margin-bottom: 50px;
  }
  
  .profile-card, .about-details {
      padding: 30px 20px;
  }
  
  .profile-img {
      width: 120px;
      height: 120px;
  }
  
  .profile-stats {
      flex-direction: column;
      gap: 20px;
  }
  
  .props-title {
      font-size: 2rem;
  }
  
  .props-grid {
      grid-template-columns: 1fr;
      gap: 15px;
  }
  
  .prop-card {
      padding: 25px 20px;
  }
  
  .prop-icon {
      width: 80px;
      height: 80px;
      font-size: 32px;
  }
  
  .prop-card h4 {
      font-size: 1.3rem;
  }
  
  .prop-card p {
      font-size: 1rem;
  }
  
  .cta-content h3 {
      font-size: 1.8rem;
  }
  
  .cta-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .btn-primary, .btn-secondary {
      width: 250px;
      justify-content: center;
  }
  
  .skill-items {
      justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-title {
      font-size: 2rem;
  }
  
  .about-text h3 {
      font-size: 1.6rem;
  }
  
  .about-text p {
      font-size: 1rem;
  }
  
  .props-title {
      font-size: 1.8rem;
  }
  
  .cta-content h3 {
      font-size: 1.5rem;
  }
  
  .cta-content p {
      font-size: 1rem;
  }
}




/*----------------------------------------------------------------------------------------------------------------------------------*/
.portfolio-section {
  padding: 100px 0;
  background: var(--secondary-color);
  font-family: var(--font-family);
}

[data-theme="dark"] .portfolio-section {
  background: var(--dark-primary);
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 60px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  background: var(--primary-color);
  color: var(--text-secondary);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
}

[data-theme="dark"] .filter-btn {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  color: var(--dark-text-secondary);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: white;
  transform: translateY(-2px);
}

/* Portfolio Grid - موبایل فرست */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--primary-color);
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: block;
}

[data-theme="dark"] .portfolio-item {
  background: var(--dark-secondary);
  box-shadow: var(--dark-shadow);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

[data-theme="dark"] .portfolio-item:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.portfolio-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  display: block;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  display: block;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.95) 0%, rgba(230, 126, 34, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 25px;
  z-index: 10;
  box-sizing: border-box;
  margin: 0;
  border: none;
  outline: none;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio-content {
  text-align: center;
  color: white;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.portfolio-content p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 0.95;
  line-height: 1.4;
}

.portfolio-year {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.portfolio-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio-btn {
  padding: 10px 18px;
  background: white;
  color: var(--accent-gold);
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  min-width: 80px;
  justify-content: center;
}

.portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portfolio-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.portfolio-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* Load More Button */
.portfolio-footer {
  text-align: center;
}

.load-more-btn {
  padding: 15px 40px;
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  font-family: var(--font-family);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

/* تبلت - 2 ستونه */
@media (min-width: 768px) {
  .portfolio-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
  }
  
  .portfolio-item.featured {
      grid-column: span 2;
      grid-row: span 1;
  }
  
  .portfolio-item.featured .portfolio-image {
      height: 350px;
  }
  
  .portfolio-item.wide {
      grid-column: span 2;
  }
  
  .portfolio-item.wide .portfolio-image {
      height: 250px;
  }
  
  .portfolio-item.tall .portfolio-image {
      height: 380px;
  }
}

/* دسکتاپ - 3 ستونه خفن */
@media (min-width: 1024px) {
  .portfolio-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
  }
  
  .portfolio-item.featured {
      grid-column: span 2;
      grid-row: span 1;
  }
  
  .portfolio-item.featured .portfolio-image {
      height: 400px;
  }
  
  .portfolio-item.wide {
      grid-column: span 2;
  }
  
  .portfolio-item.wide .portfolio-image {
      height: 280px;
  }
  
  .portfolio-item.tall {
      grid-row: span 2;
  }
  
  .portfolio-item.tall .portfolio-image {
      height: 100%;
      min-height: 500px;
  }
  
  .portfolio-content h3 {
      font-size: 1.6rem;
  }
  
  .portfolio-content p {
      font-size: 1rem;
  }
  
  .portfolio-buttons {
      gap: 15px;
  }
  
  .portfolio-btn {
      padding: 12px 20px;
      font-size: 14px;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .portfolio-section {
      padding: 60px 0;
  }
  
  .portfolio-filters {
      gap: 8px;
      margin: 30px 0 40px 0;
      padding: 0 10px;
  }
  
  .filter-btn {
      padding: 10px 16px;
      font-size: 13px;
  }
  
  .portfolio-grid {
      gap: 15px;
      margin-bottom: 40px;
  }
  
  .portfolio-image {
      height: 240px;
  }
  
  .portfolio-overlay {
      padding: 20px;
      width: 100%;
      height: 100%;
  }
  
  .portfolio-content h3 {
      font-size: 1.2rem;
  }
  
  .portfolio-content p {
      font-size: 0.9rem;
      margin-bottom: 12px;
  }
  
  .portfolio-buttons {
      gap: 8px;
  }
  
  .portfolio-btn {
      padding: 8px 14px;
      font-size: 12px;
      min-width: 70px;
  }
  
  .load-more-btn {
      padding: 12px 30px;
      font-size: 0.9rem;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {
  .portfolio-image {
      height: 200px;
  }
  
  .portfolio-content h3 {
      font-size: 1.1rem;
  }
  
  .portfolio-buttons {
      flex-direction: column;
      gap: 8px;
  }
  
  .portfolio-btn {
      width: 100%;
      justify-content: center;
  }
}



/*-------------------------------------------------------------------------------------------------------------------------------------*/








.contact-section {
  padding: 100px 0;
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: start;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-hover));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 25px;
  font-weight: 500;
}

/* Teacher Message Section */
.teacher-message {
  /* No margin needed as it's in grid */
}

.message-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.message-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(50px, -50px);
}

.message-image {
  position: relative;
}

.message-image img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 4px solid var(--accent-gold);
  transition: var(--transition);
}

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

.message-text h3 {
  font-size: 25px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
}

.message-text h3::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-gold);
  position: absolute;
  top: -15px;
  right: -25px;
  opacity: 0.3;
  font-family: serif;
}

.message-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Work Experience */
.work-experience {
  /* No margin needed as it's in grid */
}



.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.experience-item {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.experience-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.experience-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.image-overlay i {
  color: white;
  font-size: 2rem;
}

.experience-item:hover .experience-image img {
  transform: scale(1.1);
}

.experience-item:hover .image-overlay {
  opacity: 1;
}

.experience-content {
  padding: 35px;
}

.experience-content h4 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.experience-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}





/* Dark Theme */
.dark-theme .contact-section {
  background: var(--dark-secondary);
}

.dark-theme .section-title {
  color: var(--dark-text-primary);
}

.dark-theme .section-subtitle {
  color: var(--dark-text-secondary);
}

.dark-theme .message-content,
.dark-theme .experience-item {
  background: var(--dark-primary);
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

.dark-theme .message-text h3,
.dark-theme .experience-content h4 {
  color: var(--dark-text-primary);
}

.dark-theme .message-text p,
.dark-theme .experience-content p {
  color: var(--dark-text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-grid {
      grid-template-columns: 1fr;
      gap: 50px;
  }
  
  .message-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 30px;
      padding: 40px;
  }
  
  .experience-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-section {
      padding: 80px 0;
  }
  
  .section-title {
      font-size: 2.2rem;
  }
  
  .section-header {
      margin-bottom: 60px;
  }
  
  .contact-grid {
      gap: 40px;
  }
  
  .message-content {
      padding: 30px;
  }
  
  .message-image img {
      width: 120px;
      height: 120px;
  }
  
  .message-text h3 {
      font-size: 1.7rem;
  }
  
  .experience-grid {
      gap: 30px;
  }
  
  .experience-content {
      padding: 25px;
  }
  
  .cta-section {
      padding: 40px 25px;
  }
  
  .cta-content h3 {
      font-size: 1.8rem;
  }
  
  .cta-button {
      padding: 15px 30px;
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }
  
  .section-title {
      font-size: 1.9rem;
  }
  
  .message-content {
      padding: 25px;
  }
  
  .message-image img {
      width: 100px;
      height: 100px;
  }
  
  .message-text h3 {
      font-size: 1.5rem;
  }
  
  .message-text p {
      font-size: 1rem;
  }
  
  .experience-image {
      height: 200px;
  }
  
  .experience-content {
      padding: 20px;
  }
  
  .cta-content h3 {
      font-size: 1.6rem;
  }
  
  .cta-content p {
      font-size: 1rem;
  }
}







/*----------------------------------------------------------------------------------------------------------------------------------*/





/* Blog Section Styles */
.blog-section {
  padding: 5rem 0;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .blog-section {
  background: var(--dark-primary);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

[data-theme="dark"] .blog-title {
  color: var(--dark-text-primary);
}

.blog-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="dark"] .blog-subtitle {
  color: var(--dark-text-secondary);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog Bubble Cards */
.blog-bubble {
  position: relative;
  background: var(--secondary-color);
  border-radius: 25px;
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transform: translateY(0);
}

[data-theme="dark"] .blog-bubble {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

.blog-bubble:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--accent-gold);
}

[data-theme="dark"] .blog-bubble:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Bubble Content */
.bubble-content {
  position: relative;
  z-index: 2;
}

.bubble-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.bubble-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.blog-bubble:hover .bubble-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.bubble-date {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.bubble-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: var(--transition);
}

[data-theme="dark"] .bubble-title {
  color: var(--dark-text-primary);
}

.blog-bubble:hover .bubble-title {
  color: var(--accent-gold);
}

.bubble-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .bubble-excerpt {
  color: var(--dark-text-secondary);
}

.bubble-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.reading-time {
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="dark"] .reading-time {
  color: var(--dark-text-secondary);
}

.blog-category {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hover Effect */
.bubble-hover-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
  z-index: 1;
}

.blog-bubble:hover .bubble-hover-effect {
  transform: scale(1);
}

/* Blog Footer */
.blog-footer {
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.view-all-btn svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.view-all-btn:hover svg {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-section {
      padding: 3rem 0;
  }
  
  .blog-container {
      padding: 0 1rem;
  }
  
  .blog-title {
      font-size: 2.2rem;
  }
  
  .blog-subtitle {
      font-size: 1.1rem;
  }
  
  .blog-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .blog-bubble {
      padding: 1.5rem;
      border-radius: 20px;
  }
  
  .bubble-icon {
      width: 50px;
      height: 50px;
      margin-bottom: 1rem;
  }
  
  .bubble-icon svg {
      width: 24px;
      height: 24px;
  }
  
  .bubble-title {
      font-size: 1.2rem;
  }
  
  .bubble-excerpt {
      font-size: 0.95rem;
  }
  
  .bubble-meta {
      flex-direction: column;
      gap: 0.5rem;
      align-items: flex-start;
  }
  
  .view-all-btn {
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-header {
      margin-bottom: 2rem;
  }
  
  .blog-title {
      font-size: 1.8rem;
  }
  
  .blog-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
  }
  
  .blog-bubble {
      padding: 1.2rem;
      border-radius: 18px;
  }
  
  .bubble-title {
      font-size: 1.1rem;
  }
  
  .bubble-excerpt {
      font-size: 0.9rem;
      margin-bottom: 1rem;
  }
}

/* Animation for loading */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.blog-bubble {
  animation: fadeInUp 0.6s ease forwards;
}

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

/* SEO and Accessibility improvements */
.blog-bubble {
  outline: none;
}

.blog-bubble:focus {
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
  border-color: var(--accent-gold);
}

.blog-bubble:focus:not(:focus-visible) {
  box-shadow: none;
  border-color: var(--border-color);
}

[data-theme="dark"] .blog-bubble:focus:not(:focus-visible) {
  border-color: var(--dark-border);
}










/*-------------------------------------------------------------------------------------------------------------------------------------*/





/* Contact Section Styles */
.contact-section {
  padding: 80px 0;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

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

.title-decoration {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Content */
.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Contact Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.info-card {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-light);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  transform: scaleX(0);
  transition: var(--transition);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.card-icon i {
  font-size: 24px;
  color: white;
  z-index: 2;
}

.card-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-gold));
  transform: scale(0);
  border-radius: 50%;
  transition: var(--transition);
}

.info-card:hover .card-icon::before {
  transform: scale(1);
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 8px;
}

.contact-link:hover {
  color: var(--accent-hover);
  transform: translateX(-5px);
}

.contact-link i {
  font-size: 12px;
  opacity: 0;
  transition: var(--transition);
}

.contact-link:hover i {
  opacity: 1;
}

.contact-text {
  font-family: 'Courier New', monospace;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-gold)20, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.info-card:hover .card-glow {
  opacity: 0.1;
}

/* Status Indicator */
.status-indicator {
  color: #27ae60;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Contact Form */
.contact-form-wrapper {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.form-container {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 40px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 25px;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
  z-index: 2;
  transition: var(--transition);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-family);
  transition: var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.contact-form input:focus + .input-line,
.contact-form select:focus + .input-line,
.contact-form textarea:focus + .input-line {
  transform: scaleX(1);
}

.contact-form input:focus ~ .input-icon,
.contact-form select:focus ~ .input-icon,
.contact-form textarea:focus ~ .input-icon {
  color: var(--accent-gold);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  transform: scaleX(0);
  transition: var(--transition);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.btn-icon {
  transition: var(--transition);
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover .btn-glow {
  left: 100%;
}

/* Skills Showcase */
.skills-showcase {
  text-align: center;
}

.skills-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-color);
  padding: 12px 20px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.skill-item:hover {
  background: var(--accent-gold);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.skill-item i {
  font-size: 18px;
}

/* Background Elements */
.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover));
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

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

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

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

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

.grid-pattern {
  display: none;
}

/* Dark Mode */
body.dark-mode .contact-section {
  background: var(--dark-primary);
}

body.dark-mode .section-title {
  color: var(--dark-text-primary);
}

body.dark-mode .section-subtitle {
  color: var(--dark-text-secondary);
}

body.dark-mode .info-card {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
}

body.dark-mode .info-card:hover {
  box-shadow: var(--dark-shadow);
}

body.dark-mode .card-content h3 {
  color: var(--dark-text-primary);
}

body.dark-mode .card-subtitle {
  color: var(--dark-text-secondary);
}

body.dark-mode .form-container {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
}

body.dark-mode .form-header h3 {
  color: var(--dark-text-primary);
}

body.dark-mode .form-header p {
  color: var(--dark-text-secondary);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form select,
body.dark-mode .contact-form textarea {
  background: var(--dark-primary);
  color: var(--dark-text-primary);
  border-color: var(--dark-border);
}

body.dark-mode .input-icon {
  color: var(--dark-text-secondary);
}

body.dark-mode .skills-header h3 {
  color: var(--dark-text-primary);
}

body.dark-mode .skill-item {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  color: var(--dark-text-primary);
}

body.dark-mode .grid-pattern {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .contact-form-wrapper {
      position: static;
  }
  
  .info-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
  }
}

@media (max-width: 768px) {
  .contact-section {
      padding: 60px 0;
  }
  
  .section-title {
      font-size: 2.2rem;
  }
  
  .section-subtitle {
      font-size: 1.1rem;
  }
  
  .info-grid {
      grid-template-columns: 1fr;
  }
  
  .info-card {
      padding: 25px;
  }
  
  .form-container {
      padding: 30px 20px;
  }
  
  .skills-grid {
      gap: 15px;
  }
  
  .skill-item {
      padding: 10px 16px;
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }
  
  .section-title {
      font-size: 1.8rem;
  }
  
  .section-subtitle {
      font-size: 1rem;
  }
  
  .info-card {
      padding: 20px;
  }
  
  .card-icon {
      width: 50px;
      height: 50px;
  }
  
  .card-icon i {
      font-size: 20px;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
      padding: 12px 12px 12px 40px;
  }
  
  .input-icon {
      left: 12px;
      font-size: 14px;
  }
  
  .submit-btn {
      padding: 15px;
      font-size: 15px;
  }
}

/* Print Styles */
@media print {
  .bg-elements,
  .floating-shape,
  .grid-pattern {
      display: none;
  }
  
  .contact-section {
      background: white !important;
      color: black !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .floating-shape,
  .status-indicator {
      animation: none;
  }
  
  .info-card:hover,
  .submit-btn:hover {
      transform: none;
  }
}

/* Focus Styles */
.info-card:focus,
.submit-btn:focus,
.contact-link:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Selection Styles */
::selection {
  background: var(--accent-gold);
  color: white;
}

::-moz-selection {
  background: var(--accent-gold);
  color: white;
}