/*
Theme Name: MohamAdmin
Description: یک قالب پورتفولیو مدرن و پیشرفته برای وردپرس با پنل مدیریت کامل و سیستم نمونه کارها
Version: 1.0.0
Author: Mohammad Amin
Text Domain: mohammadmin
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: portfolio, responsive, modern, customizable, dark-theme, light-theme, rtl, persian, farsi, admin-panel, portfolio-management
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

MohamAdmin - قالب پورتفولیو پیشرفته
=====================================

ویژگی‌های اصلی:
- پنل مدیریت کامل و پیشرفته
- سیستم مدیریت نمونه کارها
- آپلود و نمایش فایل‌های HTML/CSS/JS
- فیلتر هوشمند نمونه کارها
- مودال لایت‌باکس برای نمایش جزئیات
- طراحی ریسپانسیو و مدرن
- پشتیبانی کامل از RTL و فارسی
- سیستم اشتراک‌گذاری اجتماعی
- بهینه‌سازی برای SEO

نحوه استفاده:
1. قالب را در وردپرس نصب کنید
2. به پنل ادمین → قالب محمد بروید
3. نمونه کارهای خود را اضافه کنید
4. از قابلیت‌های پیشرفته استفاده کنید

پشتیبانی: mohammad@example.com
*/

:root {
  --color-bg: #0f172a;
  --color-surface: #111827;
  --color-text: #e5e7eb;
  --color-muted: #94a3b8;
  --color-primary: #06b6d4;
  --color-accent: #a78bfa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 25px rgba(0,0,0,.35);
  --shadow-2: 0 8px 20px rgba(6,182,212,.25);
  --container: 1100px;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #475569;
    --shadow-1: 0 10px 25px rgba(2,6,23,.08);
    --shadow-2: 0 8px 20px rgba(8,145,178,.18);
  }
}

* { 
  box-sizing: border-box; 
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
html, body { height: 100%; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
/* Typography Improvements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
  margin: 0;
  font-family: 'Inter', 'Vazirmatn', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: radial-gradient(1200px 600px at 90% -20%, rgba(167,139,250,.18), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(6,182,212,.18), transparent 60%),
              var(--color-bg);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
  decoding: async;
}

/* Lazy loading images */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}

/* Responsive images */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Image captions */
.wp-caption {
  max-width: 100%;
  margin: 0 auto 20px;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

.wp-caption-text {
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 10px;
  padding: 0 10px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.main-navigation {
  padding: 20px 0;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148,163,184,.3);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.main-navigation.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
  padding: 15px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(6, 182, 212, 0.2);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}




@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .nav-list a {
    font-size: 1.2rem;
    color: #ffffff !important;
    padding: 15px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
  }
  
  .nav-list a:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4 !important;
    transform: translateY(-2px);
  }
  
  .nav-content {
    justify-content: space-between;
  }
  
  .main-navigation {
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
  }
  
  .main-navigation.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo-text:hover {
  transform: translateY(-2px);
}

.logo-text-fa {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo-text-fa:hover {
  color: var(--color-primary);
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.logo-text-en {
  font-size: 14px;
  font-weight: 300;
  color: #06b6d4;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
  margin-top: 2px;
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text:hover .logo-text-en {
  color: var(--color-accent);
  transform: scale(1.05);
  opacity: 1;
}

@media (max-width: 768px) {
  .logo-text-fa {
    font-size: 20px;
  }
  
  .logo-text-en {
    font-size: 12px;
  }
}

.site-description {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Particles Background */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s ease-in-out infinite;
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  animation: grainMove 20s linear infinite;
}

@keyframes grainMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100px, -100px); }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
  background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

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

.hero-subtitle-en {
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@media (max-width: 768px) {
  .hero-subtitle-en {
    font-size: 1.4rem;
    margin: 8px 0;
  }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-muted);
  margin: 0 0 30px 0;
}

.hero-description {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
  hyphens: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-600);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(148,163,184,.35);
}

.btn-outline:hover {
  background: color-mix(in oklab, var(--color-surface) 80%, transparent);
  border-color: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
  color: var(--color-primary);
}

/* Parallax Sections */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

/* Skills Section with Parallax */
#skills {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

#skills .section-title,
#skills .section-description {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Experience Section with Parallax */
#experience {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.9), rgba(245, 87, 108, 0.9));
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

#experience .section-title,
#experience .section-description {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 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 fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered animations */
.section .container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.section.animate-in .container > * {
  opacity: 1;
  transform: translateY(0);
}

.section.animate-in .container > *:nth-child(1) { transition-delay: 0.1s; }
.section.animate-in .container > *:nth-child(2) { transition-delay: 0.2s; }
.section.animate-in .container > *:nth-child(3) { transition-delay: 0.3s; }
.section.animate-in .container > *:nth-child(4) { transition-delay: 0.4s; }
.section.animate-in .container > *:nth-child(5) { transition-delay: 0.5s; }
.section.animate-in .container > *:nth-child(6) { transition-delay: 0.6s; }

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 20px 0;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.section-description {
  font-size: 18px;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 60px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out forwards;
}

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

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

.service-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--color-primary);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.service-description {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.skill-item {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  padding: 25px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.skill-item.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.skill-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
}

.skill-percentage {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(148,163,184,.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-600));
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Experience */
.experience-timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 30px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-600));
  border-radius: 1px;
}

.experience-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
  opacity: 0;
  transform: translateX(-30px);
}

.experience-item.animate-in {
  opacity: 1;
  transform: translateX(0);
  animation: fadeInLeft 0.6s ease-out forwards;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-primary);
}

.experience-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
}

.experience-date .year {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 10%, transparent);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 5px;
}

.experience-date .duration {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
}

.experience-content {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.experience-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid color-mix(in oklab, var(--color-surface) 85%, transparent);
}

.experience-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
}

.experience-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--color-text);
}

.experience-company {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 15px 0;
}

.experience-description {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.blog-item {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.blog-item.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out forwards;
}

.blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.blog-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--color-muted);
}

.blog-date,
.blog-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-date::before {
  content: '📅';
}

.blog-author::before {
  content: '👤';
}

.blog-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

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

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

.blog-excerpt {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.blog-read-more::after {
  content: '←';
  transition: transform 0.3s ease;
}

.blog-read-more:hover::after {
  transform: translateX(-3px);
}

.blog-cta {
  text-align: center;
  margin-top: 50px;
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
}

.no-posts p {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

/* Portfolio Filter */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 25px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 25px;
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

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

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.portfolio-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.portfolio-item.filtered-out {
  display: none;
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.portfolio-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.portfolio-view-btn,
.portfolio-link-btn {
  padding: 12px 25px;
  background: var(--color-primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-view-btn:hover,
.portfolio-link-btn:hover,
.portfolio-demo-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.portfolio-demo-btn {
  padding: 12px 25px;
  background: var(--color-accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-item.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out forwards;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(6,182,212,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.portfolio-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

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

.portfolio-item:hover .portfolio-title {
  color: var(--color-primary);
}

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

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.portfolio-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 15px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-category {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-primary);
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-description {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Portfolio Modal */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portfolio-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-text);
  font-size: 32px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.modal-close:hover {
  background: var(--color-primary);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.modal-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.modal-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.modal-info p {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.social-share-buttons span {
  color: var(--color-muted);
  font-weight: 600;
}

.share-btn {
  padding: 8px 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Demo Modal (Full Screen) */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  background: rgba(0, 0, 0, 0.95);
}

.demo-modal.active {
  display: flex;
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
}

.demo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
}

.demo-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10002;
  display: flex;
  gap: 10px;
}

.demo-close,
.demo-fullscreen-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.demo-close:hover,
.demo-fullscreen-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

#demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* About Cards Section */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.about-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out forwards;
}

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

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

.about-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.about-card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--color-primary);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.card-description {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive About Cards */
@media (max-width: 768px) {
  .about-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  
  .about-card {
    padding: 25px 20px;
  }
  
  .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .card-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .about-card {
    padding: 20px 15px;
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(167, 139, 250, 0.1));
  z-index: -1;
}

.about-text p {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(167, 139, 250, 0.2));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-image:hover::before {
  opacity: 1;
}

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

.contact-form {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  padding: 40px;
}

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

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 8px;
  background: color-mix(in oklab, var(--color-bg) 60%, transparent);
  color: var(--color-text);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

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

.contact-info {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: 50%;
  color: white;
}

/* Footer */
.site-footer {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border-top: 1px solid rgba(148,163,184,.18);
  padding: 40px 0;
  text-align: center;
  color: var(--color-muted);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.blog-item {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-1);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 30px;
}

.blog-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.blog-excerpt {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--color-muted);
}

.blog-category {
  background: rgba(6,182,212,.15);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}


/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.skill-category {
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  padding: 30px;
}

.skill-category-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 30px 0;
  text-align: center;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.skill-name {
  min-width: 100px;
  font-weight: 700;
  font-size: 16px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(148,163,184,.2);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.skill-percentage {
  min-width: 40px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
}

/* Experience Section */
.experience-timeline {
  max-width: 800px;
  margin: 60px auto 0;
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.experience-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.experience-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.experience-year {
  flex: 0 0 200px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,.18);
}

.experience-content {
  flex: 1;
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  padding: 30px;
  margin: 0 30px;
}

.experience-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.experience-company {
  color: var(--color-primary);
  font-weight: 700;
  margin: 0 0 15px 0;
}

.experience-description {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}


/* Responsive Updates */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-timeline::before {
    left: 30px;
  }
  
  .experience-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .experience-item:nth-child(odd) {
    flex-direction: column;
  }
  
  .experience-year {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .experience-content {
    margin: 0;
    margin-right: 60px;
  }
  
}

/* Social Media Section */
.social-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: color-mix(in oklab, var(--color-surface) 85%, transparent);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  text-align: center;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-1);
  border-color: var(--color-primary);
}

.social-icon {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
}

.social-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

/* Social Media Specific Colors */
.social-link.instagram:hover {
  border-color: #E4405F;
  box-shadow: 0 10px 30px rgba(228, 64, 95, 0.3);
}

.social-link.telegram:hover {
  border-color: #0088cc;
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
}

.social-link.whatsapp:hover {
  border-color: #25D366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.social-link.linkedin:hover {
  border-color: #0077B5;
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}

.social-link.github:hover {
  border-color: #333;
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.3);
}

.social-link.twitter:hover {
  border-color: #1DA1F2;
  box-shadow: 0 10px 30px rgba(29, 161, 242, 0.3);
}

.social-link.youtube:hover {
  border-color: #FF0000;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.social-link.facebook:hover {
  border-color: #1877F2;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
}

.social-link.tiktok:hover {
  border-color: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-link.snapchat:hover {
  border-color: #FFFC00;
  box-shadow: 0 10px 30px rgba(255, 252, 0, 0.3);
}

/* Responsive Updates */
@media (max-width: 768px) {
  .social-media-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .social-link {
    padding: 20px 15px;
  }
  
  .social-icon {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .social-name {
    font-size: 14px;
  }
}

/* WordPress specific */
.wp-block-group {
  margin-bottom: 0;
}

.wp-block-image {
  margin: 0;
}

.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-button {
  margin: 0;
}

.wp-block-button__link {
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.wp-block-button__link:hover {
  background: var(--color-primary-600);
  transform: translateY(-2px);
}

/* Contact Form Styles */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  word-wrap: break-word;
  hyphens: auto;
}

.contact-form-section {
  background: var(--color-surface);
  padding: 35px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  word-wrap: break-word;
  hyphens: auto;
}

.contact-form-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-text);
    text-align: center;
}

.form-group {
  margin-bottom: 20px;
  word-wrap: break-word;
  hyphens: auto;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: var(--color-surface);
  color: var(--color-text);
  box-sizing: border-box;
  min-height: 44px;
  touch-action: manipulation;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  touch-action: manipulation;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 15px;
  border-radius: var(--radius);
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
  word-wrap: break-word;
  hyphens: auto;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-section {
        padding: 30px 20px;
    }
}

/* Navigation Styles - Additional */

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding .site-logo {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-image {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(6, 182, 212, 0.2);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
}

/* Dark Mode Styles */
[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #475569;
    --color-border: #e2e8f0;
    --shadow-1: 0 10px 25px rgba(2,6,23,.08);
    --shadow-2: 0 8px 20px rgba(8,145,178,.18);
}

[data-theme="dark"] {
    --color-bg: #0f172a;
    --color-surface: #111827;
    --color-text: #e5e7eb;
    --color-muted: #94a3b8;
    --color-border: #334155;
    --shadow-1: 0 10px 25px rgba(0,0,0,.35);
    --shadow-2: 0 8px 20px rgba(6,182,212,.25);
}

/* Theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Footer Styles */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 35px;
  padding: 50px 0 35px;
  word-wrap: break-word;
  hyphens: auto;
}

.footer-name-en {
  font-size: 16px;
  color: var(--color-primary);
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
  margin: 5px 0 15px 0;
  opacity: 0.8;
  font-weight: 300;
}

.footer-section h3,
.footer-section h4 {
  color: var(--color-text);
  margin-bottom: 15px;
  word-wrap: break-word;
  hyphens: auto;
}

.footer-section p {
  color: var(--color-text-light);
  line-height: 1.6;
  word-wrap: break-word;
  hyphens: auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  word-wrap: break-word;
  hyphens: auto;
}

.footer-links li {
  margin-bottom: 8px;
  word-wrap: break-word;
  hyphens: auto;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  hyphens: auto;
  min-height: 44px;
  touch-action: manipulation;
}

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

.contact-info p {
    margin-bottom: 15px;
}

.contact-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-input {
  display: flex;
  gap: 8px;
  word-wrap: break-word;
  hyphens: auto;
}

.newsletter-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  box-sizing: border-box;
  min-height: 44px;
  touch-action: manipulation;
}

.newsletter-input button {
  padding: 10px 18px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
  min-height: 44px;
  touch-action: manipulation;
}

.newsletter-input button:hover {
    background: var(--color-primary-600);
}

.newsletter-success,
.newsletter-error {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.newsletter-success {
    background: #d4edda;
    color: #155724;
}

.newsletter-error {
    background: #f8d7da;
    color: #721c24;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 15px 0;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.footer-bottom-content p {
  margin: 4px 0;
  color: var(--color-text-light);
  word-wrap: break-word;
  hyphens: auto;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  min-height: 44px;
  touch-action: manipulation;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-600);
    transform: translateY(-2px);
}

.back-to-top-icon {
  font-size: 20px;
  font-weight: bold;
  word-wrap: break-word;
  hyphens: auto;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
  word-wrap: break-word;
  hyphens: auto;
}

.loading-spinner {
  text-align: center;
  color: var(--color-text);
  word-wrap: break-word;
  hyphens: auto;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
  word-wrap: break-word;
  hyphens: auto;
}

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

/* Single Post Styles */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 35px 0;
  word-wrap: break-word;
  hyphens: auto;
}

.post-header {
  text-align: center;
  margin-bottom: 35px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 15px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--color-text-light);
  word-wrap: break-word;
  hyphens: auto;
}

.meta-icon {
  margin-left: 4px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-featured-image {
  margin-bottom: 35px;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  word-wrap: break-word;
  hyphens: auto;
}

.post-content {
  line-height: 1.7;
  color: var(--color-text-light);
  word-wrap: break-word;
  hyphens: auto;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--color-text);
  margin-top: 25px;
  margin-bottom: 12px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-content p {
  margin-bottom: 15px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-content ul,
.post-content ol {
  margin-bottom: 15px;
  padding-right: 18px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-content li {
  margin-bottom: 8px;
  word-wrap: break-word;
  hyphens: auto;
}

.post-content blockquote {
  border-right: 4px solid var(--color-primary);
  padding-right: 18px;
  margin: 25px 0;
  font-style: italic;
  color: var(--color-text-light);
  word-wrap: break-word;
  hyphens: auto;
}

.post-content code {
  background: var(--color-surface);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  word-wrap: break-word;
  hyphens: auto;
}

.post-content pre {
  background: var(--color-surface);
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 18px 0;
  word-wrap: break-word;
  hyphens: auto;
}

.post-content pre code {
  background: none;
  padding: 0;
  word-wrap: break-word;
  hyphens: auto;
}

.post-footer {
  margin-top: 35px;
  padding-top: 35px;
  border-top: 1px solid var(--color-border);
  word-wrap: break-word;
  hyphens: auto;
}

.social-sharing {
    text-align: center;
}

.social-sharing h4 {
    margin-bottom: 20px;
    color: var(--color-text);
}

.sharing-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077B5;
    color: white;
}

.share-btn.telegram:hover {
    background: #0088cc;
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    margin-bottom: 10px;
}

.related-post-content h4 a {
    color: var(--color-text);
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: var(--color-primary);
}

.related-post-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.related-post-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Page Styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.page-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.page-content-inner {
    line-height: 1.8;
    color: var(--color-text-light);
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-icon {
    margin-bottom: 40px;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.error-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.error-search {
    margin-bottom: 40px;
}

.error-search h3 {
    margin-bottom: 20px;
    color: var(--color-text);
}

.error-suggestions h3 {
    margin-bottom: 20px;
    color: var(--color-text);
}

.suggested-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.suggested-links li a {
    color: var(--color-primary);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--color-surface);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.suggested-links li a:hover {
    background: var(--color-primary);
    color: white;
}

/* Search Page Styles */
.search-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.search-term {
    color: var(--color-primary);
}

.search-info {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.search-results {
    margin-bottom: 60px;
}

.search-result-item {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

.search-result-header {
    margin-bottom: 20px;
}

.search-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.search-result-title a {
    color: var(--color-text);
    text-decoration: none;
}

.search-result-title a:hover {
    color: var(--color-primary);
}

.search-result-meta {
    display: flex;
    gap: 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.search-result-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover {
    text-decoration: underline;
}

.read-more-icon {
    transition: transform 0.3s ease;
}

.read-more-link:hover .read-more-icon {
    transform: translateX(3px);
}

.no-search-results {
    text-align: center;
    padding: 80px 0;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 30px;
}

.no-results-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.no-results-content p {
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.no-results-suggestions {
    margin-bottom: 40px;
}

.no-results-suggestions h3 {
    margin-bottom: 20px;
    color: var(--color-text);
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results-suggestions li {
    padding: 10px 0;
    color: var(--color-text-light);
}

.no-results-search h3 {
    margin-bottom: 20px;
    color: var(--color-text);
}

/* Archive Page Styles */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.archive-description {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.archive-posts {
    margin-bottom: 60px;
}

.archive-post-item {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease;
}

.archive-post-item:hover {
    transform: translateY(-2px);
}

.archive-post-header {
    margin-bottom: 20px;
}

.archive-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.archive-post-title a {
    color: var(--color-text);
    text-decoration: none;
}

.archive-post-title a:hover {
    color: var(--color-primary);
}

.archive-post-meta {
    display: flex;
    gap: 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.archive-post-thumbnail {
    margin-bottom: 20px;
}

.archive-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}

.archive-post-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.archive-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.post-tags a {
    background: var(--color-surface);
    color: var(--color-text-light);
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--color-primary);
    color: white;
}

/* Blog Page Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin-top: 40px;
}

.blog-content {
    min-width: 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.blog-description {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.blog-posts {
    margin-bottom: 60px;
}

.blog-post-item {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-2px);
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-post-title a {
    color: var(--color-text);
    text-decoration: none;
}

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

.blog-post-meta {
    display: flex;
    gap: 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.blog-post-thumbnail {
    margin-bottom: 30px;
}

.blog-post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

.blog-post-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tags-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-left: 10px;
}

.blog-sidebar {
    min-width: 0;
}

/* Comments Styles */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-body {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-1);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-author img {
    border-radius: 50%;
    margin-left: 15px;
}

.comment-author-info {
    flex: 1;
}

.comment-author-info .fn {
    font-weight: 600;
    color: var(--color-text);
}

.comment-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-actions a:hover {
    text-decoration: underline;
}

.comment-awaiting-moderation {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: center;
}

.comment-form {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-1);
}

.comment-form h3 {
    margin-bottom: 30px;
    color: var(--color-text);
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.comment-form .submit {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--color-primary-600);
}

/* Sidebar Styles */
.widget-area {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-1);
    height: fit-content;
}

.widget {
    margin-bottom: 40px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.widget-content {
    color: var(--color-text-light);
    line-height: 1.6;
}

.widget-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.widget-link:hover {
    text-decoration: underline;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

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

.recent-post-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

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

.category-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.category-count {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

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

.tag-link {
    background: var(--color-surface);
    color: var(--color-text-light);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.tag-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.contact-widget p {
    margin-bottom: 15px;
}

.contact-widget a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-widget a:hover {
    text-decoration: underline;
}

.social-widget h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.social-widget .social-links {
    display: flex;
    gap: 10px;
}

.social-widget .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-widget .social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-widget .social-link.instagram:hover {
    background: #E4405F;
    border-color: #E4405F;
}

.social-widget .social-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.social-widget .social-link.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.social-widget .social-link.github:hover {
    background: #333;
    border-color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Container and Layout */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portfolio-item {
        border-radius: 15px;
        overflow: hidden;
    }
    
    .portfolio-image {
        height: 200px;
        object-fit: cover;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .about-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 15px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .contact-form-section h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    /* Social Media */
    .social-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-link {
        padding: 20px 15px;
        border-radius: 15px;
        text-align: center;
    }
    
    .social-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .social-name {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .newsletter-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input input {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .newsletter-input button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Error Pages */
    .error-number {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .suggested-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* Search Results */
    .search-result-meta,
    .archive-post-meta,
    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .archive-post-footer,
    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top-icon {
        font-size: 18px;
    }
    
    /* Blog Layout */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .blog-post-item {
        padding: 25px 20px;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-post-thumbnail img {
        height: 200px;
    }
    
    .blog-post-excerpt {
        font-size: 1rem;
    }
    
    /* Comments */
    .comment-body {
        padding: 20px 15px;
    }
    
    .comment-form {
        padding: 25px 20px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* Widgets */
    .widget-area {
        padding: 25px 20px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .widget-content {
        font-size: 0.95rem;
    }
    
    /* Single Post */
    .single-post {
        padding: 30px 0;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6 {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    /* Page Content */
    .page-content {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content-inner {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Archive */
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-post-item {
        padding: 25px 20px;
    }
    
    .archive-post-title {
        font-size: 1.3rem;
    }
    
    .archive-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .archive-post-thumbnail img {
        height: 180px;
    }
    
    .archive-post-excerpt {
        font-size: 0.95rem;
    }
    
    /* Search */
    .search-title {
        font-size: 2rem;
    }
    
    .search-result-item {
        padding: 25px 20px;
    }
    
    .search-result-title {
        font-size: 1.3rem;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-result-excerpt {
        font-size: 0.95rem;
    }
    
    /* No Results */
    .no-results-content h2 {
        font-size: 1.8rem;
    }
    
    .no-results-content p {
        font-size: 1rem;
    }
    
    /* No Posts */
    .no-posts-content h2 {
        font-size: 1.8rem;
    }
    
    .no-posts-content p {
        font-size: 1rem;
    }
    
    /* Tags */
    .post-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-tags a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Social Widget */
    .social-widget .social-links {
        justify-content: center;
        gap: 15px;
    }
    
    .social-widget .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Portfolio Modal Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .modal-info p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .portfolio-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* Demo Modal Responsive */
    .demo-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .demo-close,
    .demo-fullscreen-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .portfolio-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-view-btn,
    .portfolio-link-btn,
    .portfolio-demo-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .portfolio-content {
        padding: 15px;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .contact-form-section {
        padding: 20px 15px;
    }
    
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-link {
        padding: 15px 10px;
    }
    
    .social-icon {
        font-size: 1.8rem;
    }
    
    .social-name {
        font-size: 0.85rem;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .blog-post-item {
        padding: 20px 15px;
    }
    
    .blog-post-title {
        font-size: 1.3rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .search-title {
        font-size: 1.8rem;
    }
    
    .archive-post-item {
        padding: 20px 15px;
    }
    
    .search-result-item {
        padding: 20px 15px;
    }
    
    .comment-body {
        padding: 15px 12px;
    }
    
    .comment-form {
        padding: 20px 15px;
    }
    
    .widget-area {
        padding: 20px 15px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top-icon {
        font-size: 16px;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        padding-top: 30px;
    }
}
