:root{
  

   --c1:#081333;
   --c2:#60cada;
   --c3:#03528a;
   --c4:#FFFFFF;
   --c5:#202124;
   --c6:#5F6368;
   --c7:#DADCE0;
   --c8:#EA4335;
}
@font-face {
		font-family: 'iransans';
		src:url('IRANSans.ttf') ;
		
		
	}
	
@font-face {
		font-family: 'iransans_bold';
		src:url('IRANSans_Bold.ttf') ;
		
		
	}
	
@font-face {
		font-family: 'dastnevis';
		src:url('danstevis.otf') ;
		
		
	}
	
	
*{
    margin: 0;
    padding: 0;
}
button,select{
    font-family: iransans; 
    
}

html {
    background: #130c09; 
    max-width:600px;
   margin:auto;
}
body {
    width:100%;
    direction:rtl;
    font-family: iransans, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
     padding-bottom: 70px;
 
    
}
p{
    text-align:justify;
}


.container {
    width: 95%;
    max-width: 600px;
    margin: 0 auto;
   
}
.fullcontainer {
    width: 100%;
    
    margin: 0 auto;
}
.row-flex{
    display:flex;
    gap:5px; 
    align-items:center;
}

.slider{
    width:95%; 
    max-width:1200px;
    margin:20px auto; 
    aspect-ratio:24/9; 
    display:flex; 
    gap:5px; 
    align-items:stretch;
    overflow:hidden;
    
    
}

.price{
    
}
.price::after{
    content:"تــومان";
    color:gray;
    font-size:8px; 
}
.product{
    width:95%; 
    max-width:1200px;
    margin:20px auto; 
    display:flex; 
    flex-wrap:wrap;
    gap:5px; 
    align-items:stretch;
}
.product card{
    width:calc(25% - 15px); 
    padding:5px;
    display:flex;
    flex-direction:column;
    gap:5px; 
    align-items:stretch;
    box-shadow:2px 2px 5px rgba(0,0,0,.3);
}
.product card img{
    aspect-ratio:1/1;
    object-fit:cover; 
    
}

.ptitle{
    width:100%;
    font-family:iransans_bold;
    font-size:12px; 
    color:var(--c1);
}
.sliderP1 img{
    width:100%;
    height:100%;
    transition: transform 0.3s, box-shadow 0.3s;
    
}

.sliderP2 img{
    width:100%;
    aspect-ratio:16/9; 
    transition: transform 0.3s, box-shadow 0.3s;
    
}
.sliderP2 img:hover{
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
.sliderP1 img:hover{
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
.cirSec{
    width:95%;
    max-width:1200px ;
    margin:auto;
    display:flex;
    justify-content: center;
}

.cirSec img{
    background:green;
    width:30%;
    aspect-ratio:1/1;
    border-radius:50%;
    margin:-20px; 
    border:solid 1px gray; 
    box-shadow: 3px 3px 10px gray;
}
.cirSec img{
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
header {
    background-color: none;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    margin:10px;
}
.logo img{
    height:40px;
    width:auto;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

.loading{
    position:relative;
    width:95%;
    max-width:1200px;
    margin:auto;
    border:solid 1px lightgray;
    border-radius:10px;
    min-height:50px;
}
.loading::after {
     content: "";
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 20px;
     height: 20px;
     border-radius: 50%;
     border: 3px solid gray;
     border-top-color: transparent;
     animation: loadingAnimation 0.6s linear infinite;
   }
   
   @keyframes loadingAnimation {
     to {
       transform: translate(-50%, -50%) rotate(360deg);
     }
   }
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    margin: 5px 0;
}

/* دکمه دارک مود */
#dark-mode-toggle {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* منوی همبرگری */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

/* هیرو بخش */
.hero {
    background:none; 
    color: #fff;
    padding:0; /* اضافه کردن padding-top برای هدر ثابت */
    text-align: center;
    
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-family:iransans_bold;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

 .cta-button {
    background-color: #fff;
    color: #007BFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* خدمات */
.services {
    padding: 50px 0;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor:pointer;
    margin-bottom:10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* فوتر */
footer{
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size:10px;
    margin-top:50px;
}

/* استایل‌های دارک مود */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode header {
    background-color: #1f1f1f;
}

body.dark-mode .hero {
    background-color: #1a73e8;
}

body.dark-mode .card {
    background-color: #1f1f1f;
    color: #ffffff;
}

body.dark-mode footer {
    background-color: #1f1f1f;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: -100%;
        background-color: #333;
        width: 100%;
        height: calc(100vh - 60px);
        overflow-y: auto;
        text-align: center;
        transition: left 0.3s ease-in-out;
    }

    .nav-menu.active {
        left: 0;
        display:flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .has-submenu .submenu {
        position: static;
        background-color: #444;
        display: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    #dark-mode-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* انیمیشن برای بخش‌ها */
section {
    opacity:0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}