/* =======================
   Global Reset & Base
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body,
  html {
    height: 100%;
    font-family: sans-serif;
  }
  
  /* =======================
     Header & Navigation
  ========================== */
  header {
    position: relative;
    width: 100%;
    background: #111; /* رنگ پشتیبان در صورت عدم بارگذاری تصویر */
  }
  
  .navigation {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.6rem; /* ارتفاع ثابت برای ناوبری */
    padding: 0 4.8rem;
    position: relative;
  }
  
  .logo {
    margin-top: 10px;
    height: 3.6rem;
  }
  
  .main-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.8rem;
    padding-top: 0rem;
  }
  
  .main-nav-link:link,
  .main-nav-link:visited {
    display: inline-block;
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    font-size: 1.5rem;
    transition: all 0.3s;
    padding-top: 3rem;
  }
  
  .main-nav-link:hover,
  .main-nav-link:active {
    color: #FFBF00;
  }
  
  .main-nav-link.nav-cta:link,
  .main-nav-link.nav-cta:visited {
    padding: 1.2rem 2.4rem;
    border-radius: 9px;
    color: #333;
    background-color: #FFBF00;
  }
  
  .main-nav-link.nav-cta:hover,
  .main-nav-link.nav-cta:active {
    background-color: #cf711f;
  }
  
  /* =======================
     Mobile Styles
  ========================== */
  .btn-mobile-nav {
    border: none;
    background: none;
    cursor: pointer;
    display: none;
  }
  
  .icon-mobile-nav {
    height: 4.8rem;
    width: 4.8rem;
    color: #FFBF00;
  }
  
  .icon-mobile-nav[name="close-outline"] {
    display: none;
  }
  
  @media (max-width: 768px) {
    header {
      overflow: visible;
    }

    .navigation {
      position: relative;
      z-index: 1000;
    }

    .btn-mobile-nav {
      display: block;
    }
    .navigation.nav-open .main-nav {
      display: block;
    }
    
    .main-nav {
      display: none; /* مخفی کردن منوی اصلی در موبایل */
    }
    
    .main-nav-list {
      
      z-index: 1200;
      flex-direction: column;
      gap: 1rem;
      z-index: 1200;
      padding-top: 5rem;
    }
    
    .main-nav-list li {
      z-index: 12001;
      text-align: center;
    }

    .main-nav-link:link,
    .main-nav-link:visited {
      display: inline-block;
      text-decoration: none;
      color: #222;
      font-weight: 500;
      font-size: 1.5rem;
      transition: all 0.3s;
      padding-top: 3rem;
  }
  .profile-bg {

    position: absolute;
   right: 2rem; /* فاصله دلخواه از سمت راست */
   bottom: 10rem;
   
   /* به جای استفاده از bottom و right، اگر می‌خواهید موقعیت نسبی باشد، می‌توانید از margin یا padding استفاده کنید */
   margin-top: 2rem;  /* تنظیم موقعیت دلخواه */
   margin-bottom: 3.5em;
   width: 200px;   /* اندازه قابل تنظیم */
   height: 200px;  /* اندازه قابل تنظیم */
   z-index: 3;
   border-radius: 10%;
   overflow: hidden;
   opacity: 0.9;
   border: 2px solid #FFBF00;
 }
 .info-text {
  position: relative;
  top: 5%;
  left: 3%;
  z-index: 3;
  color: #fff;
  max-width: 300px;
  z-index: 20;
}
  }
  
  /* =======================
     Sticky Navigation
  ========================== */
  .sticky .navigation {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 8rem;
    padding-top: 0;
    padding-bottom: 0;
    background-color: rgba(255, 255, 255, 0.97);
    z-index: 999;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
  }
  
  .sticky .section-hero {
    margin-top: 9.6rem;
  }
  
  /* =======================
     Hero Section & tsParticles
  ========================== */
  .hero {
    position: relative;
    background-color: #111; /* پس‌زمینه مشکی */
    overflow: hidden;  
    height: 96vh;
  }
  
  #tsparticles {
    position: absolute; /* مطمئن شوید این عنصر از نوع relative است */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }
  
  /* =======================
     Info Text & Profile Image
  ========================== */
  .info-text {
    position: relative;
    top: 5%;
    left: 4%;
    z-index: 3;
    color: #fff;
    max-width: 500px;
    z-index: 20;
  }
  
  .info-text h1 {
    color: #FFBF00;
    font-size: 3.8em;
    margin-top: 3.5em;
    margin-bottom: 0.5em;
  }
  
  .info-text h3 {
    font-size: 2.2em;
  }
  
  /* Profile image positioned at bottom right */
  .profile-bg {

     position: absolute;
    right: 2rem; /* فاصله دلخواه از سمت راست */
    bottom: 10rem;
    
    /* به جای استفاده از bottom و right، اگر می‌خواهید موقعیت نسبی باشد، می‌توانید از margin یا padding استفاده کنید */
    margin-top: 2rem;  /* تنظیم موقعیت دلخواه */
    margin-bottom: 3.5em;
    width: 250px;   /* اندازه قابل تنظیم */
    height: 250px;  /* اندازه قابل تنظیم */
    z-index: 3;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.9;
    border: 2px solid #FFBF00;
  }
  
  .profile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* =======================
     Scroll Button Animation
  ========================== */
  .hero .scroll {
    position: absolute;
    font-size: 1.2rem;
    bottom: 3rem;
    left: 50%;
    color: #fff;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    z-index: 1111;
    transform: translate(0, -50%);
    transition: all 0.5s;
  }
  
  .hero .scroll:hover {
    opacity: 0.7;
  }
  
  .hero .scroll::before {
    position: absolute;
    top: -16px;
    left: -16px;
    z-index: -1;
    content: '';
    width: 40px;
    height: 40px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    border-radius: 100%;
    animation: pulse 3s infinite;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 0;
    }
    15%, 45% {
      opacity: 1;
    }
    60% {
      box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1);
      opacity: 0;
    }
  }
  
  /* =======================
     Portfolio Section (scs)
  ========================== */
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  #seo-charts {
    padding: 0rem;
    background-color: #e9ff99;
    background-image:
        radial-gradient(at 9% 89%, hsla(215, 90%, 73%, 1) 0px, transparent 50%),
        radial-gradient(at 72% 6%, hsla(331, 74%, 64%, 1) 0px, transparent 50%),
        radial-gradient(at 24% 19%, hsla(14, 90%, 74%, 1) 0px, transparent 50%),
        radial-gradient(at 65% 6%, hsla(6, 79%, 76%, 1) 0px, transparent 50%),
        radial-gradient(at 20% 98%, hsla(316, 72%, 64%, 1) 0px, transparent 50%),
        radial-gradient(at 44% 9%, hsla(40, 96%, 77%, 1) 0px, transparent 50%),
        radial-gradient(at 10% 9%, hsla(76, 65%, 63%, 1) 0px, transparent 50%);
    animation: gradientShift 15s ease infinite;
    }
  .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0px;
  }

  .port {
    border-left: 6px solid #FFBF00; /* بوردر سمت چپ با رنگ اصلی سایت */
    padding-left: 1rem;           /* فاصله از بوردر به نوشته */
    margin: 2rem 0;                 /* فاصله عمودی از سایر بخش‌ها */
    text-align: left;               /* چپ چین شدن متن */
  }
  
  .port h2 {
    color: #333;   /* رنگ متن مطابق با رنگ ثانویه سایت */
    font-size: 2.5rem; /* اندازه دلخواه برای برجسته کردن عنوان */
    margin: 0;        /* حذف فاصله‌های اضافی */
  }  

  .chart-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-left: #FFBF00;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 1rem;
  }

  .chart-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
  }

  /* ردیف کارت‌های متریک */
  .metrics {
    display: flex;
    flex-wrap: nowrap;       /* جلوگیر از شکستن به خط بعد */
    overflow-x: hidden;
    width: 90%;        /* در صورت کمبود فضا، اسکرول افقی ایجاد شود */
    border-radius: 8px 8px 0 0;
  }

  /* کارت‌ها */
  .metric {
    flex: 0 0 auto;  
    text-align: left;       
    padding: 10px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
  }
  /* کارت آبی (Total Clicks) */
  .metric.clicks {
    background-color: #4285f4;
    color: #ffffff;
  }
  /* کارت بنفش (Total Impressions) */
  .metric.impressions {
    background-color: #673ab7;
    color: #ffffff;
  }
  /* کارت‌های غیر فعال (Average CTR, Position) */
  .metric.disabled {
    background-color: #ffffff;
    color: #5f6368;
    border: 1px solid #dadce0;
  }

  /* برچسب و مقدار داخل کارت */
  .metric .label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  .metric .value {
    font-size: 1.8rem;
    font-weight: 500;
  }

  /* ردیف نمودار */
  .chart-area {
  width: 100%; /* عرض متناسب با صفحه */
  max-width: 1200px; /* حداکثر عرض */
  height: 340px; /* ارتفاع ثابت */
    background-color: #ffffff;
    padding: 10px;
    margin-bottom: 0rem;
    border-top: 1px solid #dadce0;
    border-radius: 0 0 8px 8px;
  }
  .chart-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0px;
  }
  .chart-info .y-axis-label {
    color: #5f6368;
    font-size: 0.9rem;
    margin-left: 10px;
  }
  .chart-info .y-axis-label.impressions-label {
    margin-right: 10px;
  }
  #chart {
    width: 100%;
    height: 300px;
  }

  .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  @media (max-width: 768px) {
    .charts-grid {
      grid-template-columns: 1fr;
    }
  }
  .services-section {
    padding: 2rem;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .service-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  }
  
  .service-icon img {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
  
  .service-card h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #000;
  }
  
  .service-card p {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .btn-consultation {
    display: inline-block;
    background-color: #ffd900;
    color: #000;
    font-size: 1.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
  }
  
  .btn-consultation:hover {
    background-color: #e2c700;
  }

/* Main footer wrapper */
.site-footer {
  background: #3e3e3e;  /* Dark background color */
  color: #fff;
  padding: 2rem 1rem;
}

/* Container to hold columns */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* Column 1: Trust Seals */
.footer-trust {
  flex: 1 1 200px;
}
.footer-trust h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffd500; /* Gold/yellow highlight */
}
.trust-seals {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.trust-seals img {
  width: 250px;   /* Adjust size to your liking */
  height: auto;
  display: block;
}

/* Column 2: Easy Access Menu */
.footer-menu {
  flex: 1 1 200px;
}
.footer-menu h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffd500;
}
.footer-menu ul {
  list-style: none;
}
.footer-menu ul li a {
  display: block;
  padding: 0.5rem 0;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-menu ul li a:hover {
  color: #ffd500;
}

/* Column 3: About & Social */
.footer-about {
  flex: 1 1 250px;
  text-align: center;
}
.footer-avatar {
  margin-bottom: 1rem;
}
.footer-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* Paragraphs in footer-about */
.footer-about p {
  width: 350px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 3.5rem;
  color: #fff;
  margin: 0 0.3rem;
  font-size: 1.3rem;
  transition: color 0.2s;
  text-decoration: none;
}
.social-icon {
  width: 24px;   /* اندازه دلخواه آیکن */
  height: 24px;  /* اگر از SVG استفاده می‌کنید، می‌توانید height را auto بگذارید */
  object-fit: contain; /* در صورتی که تصویری غیرمربع دارید */
}
.footer-social a:hover {
  color: #ffd500;
}

/* Responsive: for very small screens, stack columns */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-trust,
  .footer-menu,
  .footer-about {
    flex: 1 1 100%;
  }
  .trust-seals {
    align-items: center;
  }
}
