@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap");

:root {
  /* Light Luxury Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-premium: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-highlight: rgba(255, 255, 255, 0.9);

  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */

  --accent-gold: #c2a35d;
  --accent-gold-dark: #a08040;
  --accent-gold-glow: rgba(194, 163, 93, 0.25);

  --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 40px rgba(194, 163, 93, 0.15);

  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
  position: relative;
}

/* --- Background Orbs for Depth (Light Theme) --- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(194, 163, 93, 0.15) 0%,
    transparent 70%
  );
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(148, 163, 184, 0.2) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: -100px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Glassmorphism Utilities --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.glass-panel-premium {
  background: var(--glass-bg-premium);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-highlight);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

/* --- Navbar --- */
.smart-nav {
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-logo {
  background: linear-gradient(135deg, var(--text-primary), #334155);
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.brand-name strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-name span {
  font-size: 0.65rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-fast-call {
  background: var(--text-primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-fast-call:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-gold-glow);
}

.btn-fast-call::after {
  display: none !important;
}

/* --- Hero Section --- */
.hero-advanced {
  padding: 100px 0 80px;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  margin-bottom: 24px;
  border-color: rgba(194, 163, 93, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s infinite;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-gold-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn-glow {
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-gold-dark)
  );
  color: white;
  padding: 16px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 30px var(--accent-gold-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(194, 163, 93, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 16px 36px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: white;
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  transform: translateY(-4px);
}

.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 8px; /* Creates a glass border effect around the image */
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  transition: transform 0.8s ease;
}

.image-frame:hover img {
  transform: scale(1.02);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 24px 32px;
  border-radius: 20px;
  text-align: center;
  border-color: rgba(194, 163, 93, 0.3);
}

.experience-badge strong {
  display: block;
  font-size: 2.2rem;
  color: var(--accent-gold);
  font-weight: 900;
  line-height: 1;
}

.experience-badge span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* --- Projects Section --- */
.projects-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sub-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid var(--glass-border);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(194, 163, 93, 0.3);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: white;
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-gold);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.card-overlay p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.15s;
}

.project-card:hover .card-overlay h3,
.project-card:hover .card-overlay p {
  transform: translateY(0);
}

/* --- About Section --- */
.about-advanced {
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-xl);
  padding: 8px;
}

.about-img img {
  width: 100%;
  border-radius: 24px;
  display: block;
  transition: all 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.02);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.resume-item {
  padding: 28px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border-right: 3px solid var(--accent-gold);
}

.resume-item:hover {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.resume-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.resume-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.resume-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Advanced CTA Section (همین حالا پروژه خود را آغاز کنید) --- */
.cta-advanced {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(194, 163, 93, 0.15) 0%,
    transparent 60%
  );
  filter: blur(60px);
  z-index: -1;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold),
    transparent
  );
}

.cta-label {
  display: inline-block;
  background: rgba(194, 163, 93, 0.1);
  color: var(--accent-gold-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
  max-width: 90%;
}

.cta-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--text-primary), #334155);
  color: white;
  padding: 18px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  transition: all 0.4s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--accent-gold-dark)
  );
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 18px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.btn-secondary-glass:hover {
  background: white;
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  transform: translateY(-4px);
}

.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-badge {
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  border-color: rgba(194, 163, 93, 0.4);
  background: rgba(255, 255, 255, 0.9);
  animation: float 6s ease-in-out infinite;
}

.floating-badge span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.floating-badge strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 900;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* --- Footer --- */
.footer-advanced {
  background: var(--text-primary);
  color: white;
  padding: 80px 0 40px;
  text-align: center;
  margin-top: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-brand .main-logo {
  background: white;
  color: var(--text-primary);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 400px;
}

.social-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.s-link {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 120px;
}

.s-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.s-link span {
  font-size: 0.9rem;
  font-weight: 500;
}

.s-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
}

.s-link:hover img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(77%) sepia(29%) saturate(571%)
    hue-rotate(359deg) brightness(89%) contrast(89%);
}

.s-link:hover span {
  color: var(--accent-gold);
}

.copyright {
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

/* --- Animations --- */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .hero-wrapper,
  .about-inner,
  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text p,
  .cta-content p {
    margin: 0 auto 40px;
  }

  .hero-btns,
  .cta-actions {
    justify-content: center;
  }

  .experience-badge,
  .floating-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -30px;
  }

  .floating-badge {
    transform: translateX(50%) translateY(0);
    animation: float 6s ease-in-out infinite;
  }

  .about-img {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 40px 24px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .sub-title {
    font-size: 1.8rem;
  }
  .cta-content h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
  } /* برای نسخه موبایل واقعی، منوی همبرگری با JS اضافه شود */

  .hero-btns,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-glow,
  .btn-outline,
  .btn-primary-glow,
  .btn-secondary-glass {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
/* تنظیمات آیکون‌های SVG در لینک‌های اجتماعی */
.s-link svg {
  width: 32px;
  height: 32px;
  stroke: currentColor; /* رنگ آیکون از رنگ متن لینک پیروی می‌کند */
  transition:
    stroke 0.3s ease,
    transform 0.3s ease;
}

/* اگر در فوتر تیره هستید، رنگ پیش‌فرض سفید است */
.footer-advanced .s-link {
  color: var(--white);
}

/* اگر در بخش روشن سایت هستید، رنگ پیش‌فرض تیره است */
:not(.footer-advanced) .s-link {
  color: var(--dark);
}

/* افکت هاور برای تغییر رنگ آیکون و متن */
.s-link:hover {
  color: var(--primary) !important; /* یا var(--accent-gold) برای تم لوکس */
  transform: translateY(-5px);
}

.s-link:hover svg {
  stroke: currentColor; /* هماهنگی کامل رنگ آیکون با متن هنگام هاور */
}
