/* ======== متغیرهای CSS ======== */
:root {
  /* رنگ‌ها */
  --primary-blue: #005f75;
  --electric-blue: #00b4d8;
  --energy-yellow: #fdb813;
  --dark-bg: #0a192f;
  --light-bg: #f8f8f8;
  
  /* گرادیانت‌ها */
  --gradient-tech: linear-gradient(135deg, var(--primary-blue) 0%, var(--electric-blue) 100%);
  --gradient-border: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  
  /* تایپوگرافی */
  --font-title: 'Vazirmatn', Tahoma, sans-serif;
  
  /* سایه‌ها */
  --button-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 12px 40px rgba(0, 180, 216, 0.2);
  
  /* انتقال‌ها */
  --transition-default: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ======== استایل‌های پایه ======== */
* {
  box-sizing: border-box;
  margin: 8px;
  padding: 5px;
}

body {
  background: var(--light-bg);
  color: #2d3436;
  font-family: var(--font-title);
  scroll-behavior: smooth;
  line-height: 1.6;
}

a {
  color: #2b2d42;
  transition: var(--transition-default);
  position: relative;
  font-weight: 500;
  text-decoration: none !important;
}

a:hover { color: #667eea; }
main p,h2{
	margin:8px 13px;
	padding:5px;
}
/* استایل اختصاصی دکمه CTA */
.cta-button-psych {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #FF9F4A 0%, #FF6B6B 100%); /* گرادیان نارنجی-قرمز انرژی‌بخش */
    color: white !important;
    font-weight: bold;
    font-size: 22px;
    border-radius: 35px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin: 25px 0;
}

/* افکت hover برای جلب توجه */
.cta-button-psych:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* افکت کلیک */
.cta-button-psych:active {
    transform: translateY(1px);
}

/* ایجاد جلوه درخشان متحرک */
.cta-button-psych::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}
.emon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #2ecc71;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.emon:hover {
    transform: translateY(-5px);
}

.emon::before {
    content: "⭐";
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 3rem;
    opacity: 0.15;
    z-index: 0;
}

.emon p {
    font-family: 'Vazir', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.emon p:first-child {
    font-weight: 700;
    color: #2ecc71;
    font-size: 1.3rem;
    position: relative;
    padding-right: 30px;
}

.emon p:first-child::after {
    content: "💡";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.emon strong {
    color: #e74c3c;
    border-bottom: 2px dotted #e74c3c;
}

@media (max-width: 768px) {
    .emon {
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .emon p {
        font-size: 1rem;
    }
}
/* متن تشویقی */
.cta-text {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #444;
}
/* ======== کامپوننت‌های اصلی ======== */

/* رسپانسیو برای تبلت */
@media (max-width: 992px) {
    .mega-menu .dropdown-content {
        width: 90vw;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .mega-menu .dropdown-content {
        width: 100vw;
        grid-template-columns: 1fr;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .dropdown.mega-menu {
        position: static;
    }
}

/* بهبود hover effect */
.mega-menu .dropdown-content a {
    padding: 12px;
    border-radius: 4px;
    margin: 5px 0;
    display: block;
    background: rgba(253, 184, 19, 0.1);
}

.mega-menu .dropdown-content a:hover {
    background: var(--energy-yellow);
    transform: translateX(5px);
}
/* ======== هدر هوشمند ======== */
header {
  background: var(--gradient-tech);
  padding: 7.5rem 1.25rem 5rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

header h1 {
  font-size: 3.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

/* ======== سیستم کارتی ======== */
.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.video-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition-default);
  box-shadow: var(--button-shadow);
}

.video-item:hover {
  transform: translateY(-0.625rem);
  box-shadow: var(--hover-shadow);
}

.video-item h3 {
  background: var(--gradient-tech);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.video-card{
	border: solid 1px #667eea;
	margin: 5em 1.5em;
	padding: 8px;
}	
.video-card li{
	margin:0.5em 2.5em;
}
.video-card h2{
	margin:1.5em; 
}
/* ======== دکمه‌های پیشرفته ======== */
.custom-video-button,
.back-button {
  margin:34px 55px;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: var(--transition-default);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.custom-video-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
  animation: persuasive-pulse 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  transition: all 0.3s ease;
}
.custom-video-button:hover {
    animation-play-state: paused;
    transform: scale(1.08) rotate(-2deg);
    cursor: pointer;
}

.custom-video-button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}


.back-button {
  background: linear-gradient(45deg, #e8e9f3 0%, #f7f7fc 100%);
  border: 2px solid #d7d9e2;
}
/* ======== استایل فوتر پیشرفته ======== */
.main-footer {
  background: var(--dark-bg);
  padding: 4rem 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--energy-yellow);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin: 1rem 0;
  transition: var(--transition-default);
  position: relative;
  display: inline-block;
}

.footer-text:hover {
  color: var(--energy-yellow);
  transform: translateY(-3px);
}

/* افکت نور پس‌زمینه */
.main-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(0,180,216,0.1) 0%, 
    rgba(0,95,117,0.05) 50%, 
    transparent 100%
  );
  animation: footer-glow 8s infinite linear;
}

/* گرادیانت متحرک */
@keyframes footer-glow {
  0% { transform: rotate(0deg) translate(-50%, -50%); }
  100% { transform: rotate(360deg) translate(-50%, -50%); }
}

/* خط جداکننده پویا */
.main-footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--electric-blue) 50%,
    transparent 100%
  );
  animation: line-move 5s infinite linear;
}

@keyframes line-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* نسخه موبایل */
@media (max-width: 768px) {
  .main-footer {
    padding: 2.5rem 1rem;
    margin-top: 3rem;
  }
  
  .footer-text {
    font-size: 0.95rem;
    display: block;
    margin: 0.8rem 0;
  }
}
/* === بخش کلی === */
section {
  padding: 3rem 1.5rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  background: #ffffff;
}

section:hover {
  transform: translateY(-5px);
}

/* === بخش‌های تخصصی === */
#overview {
  border-left: 5px solid #3498db; /* آبی - نماد دانش */
  background: linear-gradient(45deg, #f8f9fa 30%, #e9f5ff 100%);
}

#solar-structure {
  border-left: 5px solid #f1c40f; /* طلایی - نماد انرژی */
  position: relative;
  overflow: hidden;
}

#solar-structure::before {
  content: "⚡";
  position: absolute;
  right: -30px;
  top: -30px;
  font-size: 8rem;
  opacity: 0.1;
  transform: rotate(25deg);
}

#inverters {
  border-left: 5px solid #2ecc71; /* سبز - نماد فناوری */
  background: repeating-linear-gradient(
    45deg,
    #f0fff4,
    #f0fff4 10px,
    #ffffff 10px,
    #ffffff 20px
  );
}

#essential-info {
  border-left: 5px solid #e74c3c; /* قرمز - نماد اهمیت */
  background: #fff5f5;
  position: relative;
}

#essential-info h2::before {
  content: "❗";
  margin-left: 10px;
}

#design {
  border-left: 5px solid #9b59b6; /* بنفش - نماد خلاقیت */
  background: #f8f5ff;
}


#pvsyst {
  border-left: 5px solid #1abc9c; /* فیروزه‌ای - نماد نرم‌افزار */
  background: 
    radial-gradient(circle at 90% 10%, #e3fafc 0%, #ffffff 30%);
}

#optimization {
  border-left: 5px solid #e67e22; /* نارنجی - نماد بهینه‌سازی */
  background: #fff4e6;
}

#final-notes {
  border-left: 5px solid #95a5a6; /* خاکستری - نماد پایانی */
  background: #f8f9fa;
  text-align: center;
}

#final-notes p {
  font-style: italic;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* === CTA Section === */
#cta {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
}

#cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 10%, transparent 70%);
  animation: pulse 4s infinite;
}





/* ======== انیمیشن‌ها ======== */
@keyframes pulse1 {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.625rem); }
}

@keyframes buttonGlow {
  100% { transform: rotate(360deg) translate(-50%, -50%); }
}

@keyframes pulse {
  50% { transform: scale(1.05); }
}
@keyframes persuasive-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
        filter: brightness(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
}
/* ======== ریسپانسیو ======== */
@media (max-width: 992px) {
  h1,h2,h3,p,ul,il{
	  margin:8px;
  }
  header { padding: 6rem 1rem 4rem; }
  header h1 { font-size: 2.5rem; }
  
  .video-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

@media (hover: hover) {

  .video-item:hover { transform: translateY(-0.625rem); }
}