/* ============================================
       VARIABLES
    ============================================ */
:root {
  --primary-blue: #00c2ff;
  --primary-purple: #b026ff;
  --gradient-1: linear-gradient(90deg, #00c2ff, #b026ff);
  --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-gray: #c4c4c4;
  --text-dark: #8b8b8b;
  --bg-card: rgba(17, 28, 56, 0.55);
  --bg-card-solid: rgba(17, 28, 56, 0.85);
  --border-glow: rgba(0, 194, 255, 0.25);
  --shadow-glow: 0 10px 30px rgba(0, 194, 255, 0.1);
  --shadow-glow-hover: 0 15px 40px rgba(0, 194, 255, 0.2);
}

/* ============================================
       HEADER
    ============================================ */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 194, 255, 0.2);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.header-container.scrolled {
  padding: 0.5rem 0;
  background: rgba(5, 8, 22, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  width: 180px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.02);
}

.navbar {
  display: flex;
  gap: 2.2rem;
}

.nav-link {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.btn-resume {
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid var(--primary-blue);
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-resume:hover {
  background: var(--gradient-1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.3);
}
.btn-resume i {
  margin-left: 0.5rem;
}

/* ============================================
       HERO SECTION
    ============================================ */
.hero-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 90vh;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 194, 255, 0.15);
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.hero-title .highlight {
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-1);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-glow-hover);
}

.btn-secondary {
  border: 1px solid var(--primary-blue);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: rgba(0, 194, 255, 0.1);
  transform: translateX(-5px);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 1rem 1.8rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-glow);
  transition: all 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: bold;
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}
.hero-image img {
  /* max-width: 100%; */
  width: 700px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
       ABOUT SECTION
    ============================================ */
.about-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  border: 1px solid var(--border-glow);
  padding: 3rem;
  display: flex;
  gap: 4rem;
  transition: all 0.3s ease;
}
.about-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

.about-content {
  flex: 1.2;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-title i {
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text {
  color: var(--text-gray);
  margin: 1.5rem 0;
  line-height: 1.8;
}

.about-list {
  margin: 1.5rem 0;
}
.about-list li {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.about-list li::before {
  content: "✨";
}

.about-info {
  flex: 0.8;
  background: rgba(17, 31, 65, 0.4);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border-glow);
}
.about-info h3 {
  color: var(--primary-blue);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}
.info-item {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
}
.info-label {
  color: var(--text-dark);
  min-width: 70px;
}
.info-value {
  color: var(--text-gray);
}
.info-value.highlight {
  color: var(--primary-blue);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  max-width: 250px;
  border-radius: 20px;
  border: 2px solid var(--primary-blue);
  transition: all 0.3s ease;
  object-fit: cover;
}
.about-avatar img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
}

/* ============================================
       SERVICES SECTION
    ============================================ */
.services-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-subtitle {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow-hover);
}
.service-icon {
  font-size: 3rem;
  background: var(--gradient-1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.service-link {
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.service-link:hover {
  gap: 1rem;
}

/* ============================================
       PORTFOLIO SECTION
    ============================================ */
.portfolio-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Vazir;
  font-size: 0.85rem;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-1);
  color: #fff;
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow-hover);
}
.portfolio-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-image {
  transform: scale(1.02);
}
.portfolio-info {
  padding: 1.5rem;
  text-align: center;
}
.portfolio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.portfolio-info p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.portfolio-link {
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.portfolio-link:hover {
  gap: 1rem;
}

/* ============================================
       CTA BANNER
    ============================================ */
.cta-banner {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}
.cta-card {
  background: linear-gradient(
    135deg,
    rgba(176, 38, 255, 0.15),
    rgba(0, 33, 139, 0.15)
  );
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 40px;
  padding: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  transition: all 0.3s ease;
}
.cta-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}
.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta-content p {
  color: var(--text-gray);
}
.cta-button {
  background: var(--gradient-1);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.cta-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-hover);
}

/* ============================================
       FOOTER
    ============================================ */
.footer-section {
  max-width: 1400px;
  margin: 5rem auto 2rem;
  padding: 0 2rem;
}
.footer-content {
  background: var(--bg-card-solid);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 32px;
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer-logo img {
  width: 180px;
  margin-bottom: 1.2rem;
}
.footer-logo p {
  color: var(--text-gray);
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-link:hover {
  background: var(--gradient-1);
  transform: translateY(-3px);
}
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--primary-blue);
  display: inline-block;
  padding-bottom: 0.3rem;
}
.footer-col ul li {
  margin: 0.8rem 0;
}
.footer-col ul li a {
  color: var(--text-gray);
  transition: all 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--primary-blue);
  padding-right: 0.5rem;
}
.footer-col .contact-info li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer-col .contact-info li i {
  color: var(--primary-blue);
}
.copyright {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-dark);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-glow);
  margin-top: 2rem;
}

/* ============================================
       SCROLL TOP BUTTON
    ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.3);
}
.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 194, 255, 0.5);
}

/* ============================================
       ANIMATIONS
    ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
       RESPONSIVE
    ============================================ */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .about-avatar {
    text-align: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .about-card {
    flex-direction: column;
  }
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* HEADER */
  .header-container {
    padding: 0.6rem 0;
  }

  .header-inner {
    width: 100%;
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
  }

  .logo {
    width: 150px;
  }

  .navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .btn-resume {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
  }


  /* HERO */
  .hero-title {
    font-size: 2rem;
    margin-top: 0;
  }

  .hero-image {
    width: 100%;
  }

  .hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }


  /* SECTIONS */
  .section-title {
    font-size: 1.6rem;
  }

  .portfolio-filter {
    gap: 0.6rem;
  }

  .filter-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
  }

  .services-grid,
  .portfolio-grid {
    gap: 1.2rem;
  }


  /* FOOTER */
  .footer-content {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-col h3 {
    display: block;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .stat-item {
    padding: 0.6rem 1.2rem;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}
