/* ============================================
   KAMBIZ KOOSHESHI - Personal Website
   Shared Stylesheet — Enhanced Edition
   ============================================ */

/* ============ ANIMATED BORDER PROPERTY ============ */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ============ CSS VARIABLES ============ */
:root {
  --bg-primary: #060b18;
  --bg-secondary: #0d1225;
  --bg-card: #111936;
  --bg-card-hover: #161f45;
  --bg-glass: rgba(17, 25, 54, 0.7);
  --border-glass: rgba(59, 130, 246, 0.15);

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;

  /* Aurora glow colors */
  --aurora-1: rgba(59, 130, 246, 0.25);
  --aurora-2: rgba(139, 92, 246, 0.2);
  --aurora-3: rgba(6, 182, 212, 0.18);
  --aurora-4: rgba(16, 185, 129, 0.12);

  /* Mesh gradient */
  --mesh-gradient: radial-gradient(at 20% 30%, var(--aurora-1) 0%, transparent 50%),
                   radial-gradient(at 80% 20%, var(--aurora-2) 0%, transparent 50%),
                   radial-gradient(at 50% 80%, var(--aurora-3) 0%, transparent 50%),
                   radial-gradient(at 70% 60%, var(--aurora-4) 0%, transparent 40%);

  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-hero: linear-gradient(180deg, rgba(6,11,24,0) 0%, var(--bg-primary) 100%);

  /* Enhanced shadows */
  --shadow-blue-glow: 0 0 40px rgba(59, 130, 246, 0.2), 0 0 80px rgba(59, 130, 246, 0.1);
  --shadow-card-hover: 0 8px 40px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --font-en: 'Inter', sans-serif;
  --font-fa: 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.15);

  /* Premium easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --nav-height: 72px;
  --section-padding: 100px 0;
  --container-width: 1200px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
  font-family: var(--font-fa);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--accent-cyan); }

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

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1001;
  transition: width 0.1s linear;
  will-change: width;
}

/* ============ SECTION DOT NAVIGATION ============ */
.section-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[dir="rtl"] .section-dots {
  right: auto;
  left: 24px;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.section-dot:hover,
.section-dot.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
  transform: scale(1.3);
}

.section-dot .dot-label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--border-glass);
}

[dir="rtl"] .section-dot .dot-label {
  right: auto;
  left: 24px;
}

.section-dot:hover .dot-label {
  opacity: 1;
}

/* ============ UTILITY CLASSES ============ */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6, #3b82f6, #06b6d4);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shimmer 4s ease infinite;
}

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

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

[dir="rtl"] .section-label {
  font-family: var(--font-fa);
  letter-spacing: 0;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 50px;
}

/* ============ SCROLL ANIMATIONS (Enhanced) ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-glass);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-lang-btn:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-white);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, var(--aurora-1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, var(--aurora-3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--aurora-2) 0%, transparent 50%);
  animation: aurora-shift 15s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, var(--aurora-1) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, var(--aurora-3) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, var(--aurora-2) 0%, transparent 50%);
  }
  33% {
    background:
      radial-gradient(ellipse at 40% 30%, var(--aurora-2) 0%, transparent 60%),
      radial-gradient(ellipse at 70% 60%, var(--aurora-4) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 70%, var(--aurora-1) 0%, transparent 50%);
  }
  66% {
    background:
      radial-gradient(ellipse at 60% 40%, var(--aurora-3) 0%, transparent 60%),
      radial-gradient(ellipse at 20% 70%, var(--aurora-1) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 50%, var(--aurora-4) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse at 30% 60%, var(--aurora-4) 0%, transparent 60%),
      radial-gradient(ellipse at 60% 20%, var(--aurora-2) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, var(--aurora-3) 0%, transparent 50%);
  }
}

/* Hero Orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.12);
  top: 10%;
  left: 15%;
  animation: float-orb 20s ease-in-out infinite;
}

.hero-orb:nth-child(2) {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.1);
  top: 50%;
  right: 10%;
  animation: float-orb 18s ease-in-out infinite 3s;
}

.hero-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.1);
  bottom: 15%;
  left: 40%;
  animation: float-orb 22s ease-in-out infinite 6s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 15s infinite linear;
  will-change: transform;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Hero entrance animations */
.hero-text {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  animation: hero-fade-up 1s var(--ease-out-expo) forwards;
}

@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  opacity: 0;
  transform: scale(0.95);
  filter: blur(6px);
  animation: hero-name-in 1.2s var(--ease-out-expo) 0.2s forwards;
}

@keyframes hero-name-in {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

[dir="rtl"] .hero-name {
  letter-spacing: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 60px 0;
}

[dir="rtl"] .hero-content {
  flex-direction: row-reverse;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-titles {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 30px;
}

.hero-typing {
  color: var(--accent-cyan);
  font-weight: 600;
}

.hero-typing .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-cyan);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

[dir="rtl"] .hero-typing .cursor {
  margin-left: 0;
  margin-right: 2px;
}

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

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.6s var(--ease-out-expo) 0.6s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Shine effect on primary button */
.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-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
  color: var(--text-white);
}

/* Ripple effect */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.6s var(--ease-out-expo) 0.8s forwards;
}

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

[dir="rtl"] .hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

[dir="rtl"] .hero-stat-label {
  letter-spacing: 0;
}

/* Hero Image */
.hero-image {
  flex-shrink: 0;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  filter: blur(8px);
  animation: hero-image-in 1.4s var(--ease-out-expo) 0.4s forwards;
}

@keyframes hero-image-in {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.hero-image-wrapper {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: 0;
  animation: rotate-border 8s linear infinite;
}

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

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: 1;
}

.hero-image-wrapper img {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.hero-image-float {
  position: absolute;
  padding: 10px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 10;
  white-space: nowrap;
  animation: float-badge 6s ease-in-out infinite;
}

.hero-image-float.top-right {
  top: 20px;
  right: -40px;
}

.hero-image-float.bottom-left {
  bottom: 20px;
  left: -50px;
  animation-delay: -3s;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce-scroll 2s ease-in-out infinite;
}

.hero-scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

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

/* ============ WAVE DIVIDER ============ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 1;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider.flip {
  transform: rotate(180deg);
  margin-top: 0;
  margin-bottom: -1px;
}

/* ============ ABOUT SECTION ============ */
.about {
  padding: var(--section-padding);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.about-info-item:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.about-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

[dir="rtl"] .about-info-label {
  letter-spacing: 0;
}

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

/* About image/visual side */
.about-visual {
  position: relative;
}

.about-image-card {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
}

.about-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Philosophy Cards */
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.philosophy-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.philosophy-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.philosophy-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.philosophy-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ GALLERY SECTION ============ */
.gallery {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.gallery-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-card.featured {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(6,11,24,0.9));
  color: var(--text-white);
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Gallery placeholder */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(139,92,246,0.05));
  padding: 30px;
  text-align: center;
}

.gallery-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.gallery-placeholder-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

.lightbox-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============ EXPERIENCE SECTION ============ */
.experience {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.06);
}

/* Animated timeline fill line */
.timeline-progress {
  position: absolute;
  left: 24px;
  top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  z-index: 1;
  transition: height 0.1s linear;
  will-change: height;
}

[dir="rtl"] .timeline::before,
[dir="rtl"] .timeline-progress {
  left: auto;
  right: 24px;
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: 50px;
}

[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 70px;
}

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

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-blue);
  z-index: 2;
}

[dir="rtl"] .timeline-dot {
  left: auto;
  right: 15px;
}

.timeline-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  animation: timeline-pulse 2s ease-in-out infinite;
}

@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.2); }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.timeline-description ul {
  margin-top: 10px;
}

.timeline-description li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

[dir="rtl"] .timeline-description li {
  padding-left: 0;
  padding-right: 18px;
}

.timeline-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

[dir="rtl"] .timeline-description li::before {
  left: auto;
  right: 0;
}

/* ============ EDUCATION SECTION ============ */
.education {
  padding: var(--section-padding);
  position: relative;
}

.education-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.edu-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.edu-card.current {
  border-color: rgba(59, 130, 246, 0.3);
}

.edu-card.current::before {
  opacity: 1;
}

.edu-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.edu-icon.phd { background: rgba(139, 92, 246, 0.12); }
.edu-icon.msc { background: rgba(59, 130, 246, 0.12); }
.edu-icon.bsc { background: rgba(6, 182, 212, 0.12); }

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.edu-field {
  font-size: 0.95rem;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.edu-university {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.edu-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.edu-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.edu-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.edu-status.completed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============ PUBLICATIONS SECTION ============ */
.publications {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.pub-category {
  margin-bottom: 40px;
}

.pub-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-category-title .icon {
  font-size: 1.3rem;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: all var(--transition-normal);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pub-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.pub-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.5;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}

.pub-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.pub-meta-item.journal {
  color: var(--accent-cyan);
  font-weight: 500;
}

.pub-meta-item.year {
  color: var(--accent-gold);
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.pub-link:hover {
  color: var(--accent-cyan);
}

/* ============ BLOG SECTION ============ */
.blog {
  padding: var(--section-padding);
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.blog-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.blog-card-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 16px;
}

[dir="rtl"] .blog-card-tag {
  letter-spacing: 0;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.blog-card-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ============ SKILLS SECTION ============ */
.skills {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  border-radius: 0 0 3px 0;
  transition: height var(--transition-slow);
}

[dir="rtl"] .skill-card::before {
  left: auto;
  right: 0;
  border-radius: 0 0 0 3px;
}

.skill-card:hover::before {
  height: 100%;
}

.skill-card.dev::before { background: var(--accent-blue); }
.skill-card.erp::before { background: var(--accent-purple); }
.skill-card.cloud::before { background: var(--accent-cyan); }
.skill-card.ai::before { background: var(--accent-gold); }

.skill-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
}

.skill-card.dev .skill-card-icon { background: rgba(59, 130, 246, 0.12); }
.skill-card.erp .skill-card-icon { background: rgba(139, 92, 246, 0.12); }
.skill-card.cloud .skill-card-icon { background: rgba(6, 182, 212, 0.12); }
.skill-card.ai .skill-card-icon { background: rgba(245, 158, 11, 0.12); }

/* Skill progress ring */
.skill-ring {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-left: auto;
}

[dir="rtl"] .skill-ring {
  margin-left: 0;
  margin-right: auto;
}

.skill-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.skill-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 4;
}

.skill-ring-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.skill-ring-text {
  font-size: 0.7rem;
  font-weight: 700;
  fill: var(--text-primary);
  text-anchor: middle;
  dominant-baseline: central;
}

.skill-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

/* ============ PROJECTS SECTION ============ */
.projects {
  padding: var(--section-padding);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.project-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-card-tags span {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.project-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============ CERTIFICATIONS SECTION ============ */
.certifications {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-normal);
}

.cert-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.cert-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.cert-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cert-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ ACHIEVEMENTS SECTION ============ */
.achievements {
  padding: var(--section-padding);
  position: relative;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.achievement-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.achievement-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.achievement-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.achievement-year {
  display: inline-flex;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  padding-top: 20px;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 3rem;
  color: var(--accent-blue);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

[dir="rtl"] .testimonial-quote::before {
  left: auto;
  right: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 24px 0;
  font-style: italic;
}

.testimonial-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 30px;
  opacity: 0.7;
  font-style: italic;
}

/* ============ CONTACT SECTION ============ */
.contact {
  padding: var(--section-padding);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

[dir="rtl"] .contact-label {
  letter-spacing: 0;
}

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

/* Enhanced Language Proficiency Cards */
.contact-languages {
  margin-top: 30px;
}

.contact-languages h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}

.lang-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-card {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-normal);
}

.lang-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.lang-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lang-card-flag {
  font-size: 1.5rem;
}

.lang-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
}

.lang-card-level {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.lang-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lang-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  transition: width 1s var(--ease-out-expo);
}

.lang-card-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Legacy lang-list fallback */
.lang-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-item {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.lang-item .level {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}

[dir="rtl"] .lang-item .level {
  margin-left: 0;
  margin-right: 6px;
}

/* Contact visual side */
.contact-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.contact-visual h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-white);
}

.contact-visual p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.interest-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
}

/* ============ FOOTER ============ */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

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

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ============ LANDING PAGE ============ */
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.landing-bg {
  position: absolute;
  inset: 0;
}

.landing-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59,130,246,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(139,92,246,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
}

/* Canvas code matrix */
.landing-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

.landing-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px;
}

.landing-name {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.landing-title {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
}

.landing-lang-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-lang-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 44px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.landing-lang-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-glow);
  border-color: var(--accent-blue);
  color: var(--text-white);
}

.landing-lang-btn .flag {
  font-size: 1.6rem;
}

/* Legacy text-based code rain */
.landing-code-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.04;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  color: var(--accent-blue);
  word-break: break-all;
  padding: 20px;
  pointer-events: none;
  user-select: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
  }

  .hero-image-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero-image-wrapper img {
    width: 252px;
    height: 252px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-cards {
    grid-template-columns: 1fr;
  }

  .education-cards {
    grid-template-columns: 1fr;
  }

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

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

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

  .gallery-card.featured {
    grid-row: span 1;
  }

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

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

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
    --nav-height: 64px;
  }

  .section-dots {
    display: none;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px 0;
  }

  [dir="rtl"] .hero-content {
    flex-direction: column-reverse;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 220px;
    height: 220px;
  }

  .hero-image-wrapper img {
    width: 212px;
    height: 212px;
  }

  .hero-image-float {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
  }

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

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

  .pub-item {
    flex-direction: column;
    gap: 12px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
  }

  .timeline-item {
    padding-left: 55px;
  }

  [dir="rtl"] .timeline-item {
    padding-right: 55px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .landing-lang-btn {
    padding: 16px 32px;
    font-size: 1rem;
  }

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

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

  .lang-cards {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  .landing-name {
    font-size: 2.5rem;
  }
}
