/* Modern Dark Design - محمدرضا مقدم کوهی */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
  min-height: 100vh;
  color: #ffffff;
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #764ba2, #f093fb);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Header */
.header {
  text-align: center;
  padding: 60px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 25px;
  z-index: -1;
}

.header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Profile Image */
.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 30px;
  position: relative;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #1a1a2e;
}

.profile-image:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* Typography */
.name {
  font-size: 3.5em;
  font-weight: 800;
  background: linear-gradient(45deg, #ffffff, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.name::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #f093fb);
  border-radius: 2px;
}

.subtitle {
  font-size: 1.4em;
  color: #b8b8b8;
  margin-bottom: 25px;
  font-weight: 500;
  opacity: 0.9;
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Cards */
.card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.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;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(102, 126, 234, 0.3);
}

.card h2 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card h2::before {
  content: '';
  width: 4px;
  height: 30px;
  background: linear-gradient(45deg, #667eea, #f093fb);
  border-radius: 2px;
}

.card p {
  color: #d1d1d1;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  opacity: 0.9;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.skill-tag {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #764ba2, #f093fb);
  transition: left 0.3s ease;
  z-index: -1;
}

.skill-tag:hover::before {
  left: 0;
}

.skill-tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 25px;
  z-index: -1;
}

.footer p {
  color: #b8b8b8;
  margin-bottom: 20px;
  font-size: 1em;
  opacity: 0.8;
}

/* Highlight */
.highlight {
  background: linear-gradient(120deg, rgba(102, 126, 234, 0.3) 0%, rgba(240, 147, 251, 0.3) 100%);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.highlight::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;
}

.highlight:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    padding: 40px 20px;
  }

  .name {
    font-size: 2.5em;
  }

  .subtitle {
    font-size: 1.2em;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .card {
    padding: 30px 25px;
  }

  .card h2 {
    font-size: 1.5em;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 120px;
    height: 120px;
  }

  .name {
    font-size: 2em;
  }

  .card {
    padding: 25px 20px;
  }

  .skills {
    gap: 10px;
  }

  .skill-tag {
    padding: 8px 15px;
    font-size: 0.85em;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) { 
  animation: fadeInUp 0.8s ease forwards 0.1s;
  opacity: 0;
}
.card:nth-child(2) { 
  animation: fadeInUp 0.8s ease forwards 0.2s;
  opacity: 0;
}
.card:nth-child(3) { 
  animation: fadeInUp 0.8s ease forwards 0.3s;
  opacity: 0;
}
.footer { 
  animation: fadeInUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.skill-tag:focus {
  outline: 3px solid #667eea;
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .header,
  .card,
  .footer {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Particle Effect */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  animation: float-particle 8s infinite linear;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Telegram Section */
.telegram-section {
  text-align: center;
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.telegram-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 25px;
  z-index: -1;
}

.telegram-content h2 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 2em;
  font-weight: 700;
  background: linear-gradient(45deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.telegram-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #764ba2, #f093fb, #667eea);
  transition: left 0.4s ease;
  z-index: -1;
}

.telegram-button:hover::before {
  left: 0;
}

.telegram-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.telegram-button svg {
  transition: transform 0.3s ease;
}

.telegram-button:hover svg {
  transform: scale(1.2);
}

/* Responsive for Telegram Section */
@media (max-width: 768px) {
  .telegram-section {
    padding: 30px 20px;
  }

  .telegram-content h2 {
    font-size: 1.6em;
  }

  .telegram-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .telegram-section {
    padding: 25px 15px;
  }

  .telegram-content h2 {
    font-size: 1.4em;
  }

  .telegram-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
} 