/* Skills and Certificates Page Styles */
:root {
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --main-text: #e0e0e0;
  --accent-green: #41ee16;
  --accent-blue: #3aaddf;
  --accent-orange: #e06c11;
  --glow-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
  --terminal-font: 'Fira Code', 'Courier New', monospace;
  --content-font: 'Rajdhani', 'Segoe UI', sans-serif;
  --Shabnam: 'Shabnam', sans-serif;
  --Vazir: 'Vazir', sans-serif;
  --Consolas: 'Consolas', 'Courier New', monospace;
}

/* Skills Section Styles */
.skills-certificates-section {
  padding: 100px 0;
  position: relative;
}

.skills-certificates-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.05) 0%, transparent 15%),
    radial-gradient(circle at 80% 70%, rgba(0, 119, 255, 0.05) 0%, transparent 15%);
  animation: pulse-opacity 8s infinite alternate;
  z-index: -1;
}

.skills-certificates-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 255, 65, 0.02) 2px,
      rgba(0, 255, 65, 0.02) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(0, 119, 255, 0.02) 2px,
      rgba(0, 119, 255, 0.02) 3px
    );
  opacity: 0.5;
  pointer-events: none;
  animation: scan 20s linear infinite;
  z-index: -1;
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-orange), transparent);
}

.section-subtitle h2 {
  color: var(--accent-green);
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgb(224, 108, 17);
  animation: glow-pulse 3s infinite alternate;
}

.section-subtitle h2 i {
  margin-left: 10px;
  color: var(--accent-orange);
  animation: rotate-icon 6s linear infinite;
  display: inline-block;
}

/* Skills and Certificates Layout */
.skills-certificates-layout {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.skills-section {
  flex: 1;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up 1s forwards;
}

.certificates-section {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up 1s 0.3s forwards;
}

/* Skills Container */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Skill Category */
.skill-category {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.6), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 65, 0.2);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 95%, var(--accent-green) 95%);
  opacity: 0.1;
  z-index: 0;
}

.skill-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.skill-category-header:hover {
  background-color: rgba(0, 255, 65, 0.1);
}

.skill-category-title {
  display: flex;
  align-items: center;
}

.skill-category-title i {
  color: var(--accent-green);
  font-size: 1.5rem;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.skill-category-title h3 {
  color: var(--main-text);
  font-size: 1.5rem;
  margin: 0;
}

.toggle-arrow i {
  color: var(--accent-green);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.skill-category.active .toggle-arrow i {
  transform: rotate(180deg);
}

.skill-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.skill-category.active .skill-category-content {
  max-height: 1000px;
}

/* Skill List */
.skill-list {
  padding: 20px;
}

/* Skill Item */
.skill-item {
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  transform: translateX(20px);
}

.skill-category.active .skill-item {
  animation: slide-in-right 0.5s forwards;
}

.skill-category.active .skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-category.active .skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-category.active .skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-category.active .skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-category.active .skill-item:nth-child(5) { animation-delay: 0.5s; }

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  color: var(--main-text);
  font-size: 1.1rem;
}

.skill-percentage {
  color: var(--accent-green);
  font-size: 1rem;
  font-family: var(--terminal-font);
  background-color: rgba(0, 255, 65, 0.1);
  padding: 2px 8px;
  border-radius: 15px;
  min-width: 50px;
  text-align: center;
}

/* Skill Bar */
.skill-bar {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--accent-green), #00cc33);
  border-radius: 5px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shine 2s infinite;
}

.skill-progress.animated {
  animation: progress-fill 1.5s cubic-bezier(0.1, 0.5, 0.2, 1) forwards;
}

.skill-progress.glow-effect {
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

/* Certificates Container */
.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 30px;
}

/* Certificate Category */
.certificate-category {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.6), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.certificate-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 65, 0.2);
}

.certificate-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 95%, var(--accent-green) 95%);
  opacity: 0.1;
  z-index: 0;
}

.certificate-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.certificate-category-header:hover {
  background-color: rgba(0, 255, 65, 0.1);
}

.certificate-category-title {
  display: flex;
  align-items: center;
}

.certificate-category-title i {
  color: var(--accent-green);
  font-size: 1.5rem;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.certificate-category-title h3 {
  color: var(--main-text);
  font-size: 1.5rem;
  margin: 0;
}

.certificate-category.active .toggle-arrow i {
  transform: rotate(180deg);
}

.certificate-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.certificate-category.active .certificate-category-content {
  max-height: 2000px;
}

/* Certificate List */
.certificate-list {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Certificate Item */
.certificate-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
}

.certificate-category.active .certificate-item {
  animation: scale-in 0.5s forwards;
}

.certificate-category.active .certificate-item:nth-child(1) { animation-delay: 0.1s; }
.certificate-category.active .certificate-item:nth-child(2) { animation-delay: 0.2s; }
.certificate-category.active .certificate-item:nth-child(3) { animation-delay: 0.3s; }
.certificate-category.active .certificate-item:nth-child(4) { animation-delay: 0.4s; }

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.certificate-title {
  color: var(--accent-green);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.certificate-date {
  color: var(--main-text);
  font-size: 0.9rem;
  background-color: rgba(0, 255, 65, 0.1);
  padding: 2px 8px;
  border-radius: 15px;
  white-space: nowrap;
}

.certificate-issuer {
  color: var(--main-text);
  font-size: 0.9rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.certificate-image {
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.certificate-image:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Certificate Modal */
.certificate-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-modal.show {
  display: block;
  opacity: 1;
}

.certificate-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  animation: zoom-in 0.3s;
}

.close-certificate-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--main-text);
  font-size: 40px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.close-certificate-modal:hover {
  color: var(--accent-green);
  transform: rotate(90deg);
}

/* Animations */
@keyframes pulse-opacity {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 100px; }
}

@keyframes progress-fill {
  from { width: 0; }
  to { width: var(--percentage); }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoom-in {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgb(224, 108, 17);
  }
  100% {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
  }
}

@keyframes rotate-icon {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Float Animation */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse Animation */
.pulse-animation {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 255, 65, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
  }
}

/* Particle Effect */
.particle-effect {
  position: relative;
  overflow: hidden;
}

.particle-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 35%, rgba(0, 255, 65, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 75% 44%, rgba(0, 255, 65, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 46% 52%, rgba(0, 255, 65, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 32% 10%, rgba(0, 255, 65, 0.2) 0%, transparent 10%),
    radial-gradient(circle at 62% 80%, rgba(0, 255, 65, 0.2) 0%, transparent 10%);
  animation: particle-move 3s linear infinite;
}

@keyframes particle-move {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    background-position: 20% 20%, -10% 10%, 15% -5%, -15% -15%, 10% -10%;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .skills-container,
  .certificates-container {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  }
}

@media (max-width: 992px) {
  .skills-container,
  .certificates-container {
    grid-template-columns: 1fr;
  }
  
  .certificate-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .certificate-list {
    grid-template-columns: 1fr;
  }
  
  .section-subtitle h2 {
    font-size: 1.8rem;
  }
  
  .skill-category-title h3,
  .certificate-category-title h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .skill-header,
  .certificate-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .skill-percentage,
  .certificate-date {
    margin-top: 5px;
  }
}

/* Font Classes */
.font-title-skills {
  font-family: var(--Vazir);
  font-weight: bold;
}

.font-description-skills {
  font-family: var(--Shabnam);
}

.font-button-skills {
  font-family: var(--Shabnam);
  font-weight: bold;
}
