: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') ;
		
		
	}
	
*{
    margin: 0;
    padding: 0;
    
}

::placeholder {
  color: #666; /* رنگ متن */
  font-size: 12px; /* اندازه فونت */
  font-family: iransans; /* فونت */
  opacity: 0.8; /* شفافیت */
  text-align: center; /* تراز متن */
  text-transform: uppercase; /* تبدیل متن به حروف بزرگ */
}

body {
    
    direction:rtl;
    font-family: iransans;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}
button{
    font-family: iransans_bold;
}
p{
    text-align:justify;
    color:var(--c6);
   
}

h2{
    margin:15px 5px 10px 5px;
}

a{
    text-decoration:none;
    
}
a h3{
    color:var(--c5);
}

.map ul{
    display:flex;
    gap:10px; 
    font-size:12px; 
    color:var(--c6); 
    
}
li{
    list-style:none; 
    
}
li::before{
    content:"";
}
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}
.fullcontainer {
    width: 95%;
    
    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;
    
    
}
.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: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 8;
    transition: background-color 0.3s;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    height:60px;
    width:auto;
    margin:auto 10px auto 20px;
    align-items:center;
    display:flex;
    color:var(--c4); 
    gap:10px
    
}
.logo img{
    height:40px;
    width:auto;
}


header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items:center;
    gap: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}
 article{
        padding:15px;
        
       }
.pop{
            display:none;
            position:fixed;
            width:100%; 
            height:100%;
            top:0px;
            left:0px;
            z-index:10;
            background:rgba(0,0,0,0.8);
            align-items:center;
            justify-content:center;
            
        }
        .popDiv{
            width:500px;
            max-height:700px;  
            max-width:95%;
            background:var(--c7);
            border-radius:10px;
            padding:15px;
            overflow:auto;
            
        }

 .alert{
            display:flex;
            position:fixed;
            width:100%; 
            height:100%;
            top:0px;
            left:0px;
            z-index:10;
            background:rgba(0,0,0,0.8);
            align-items:center;
            justify-content:center;
            
        }
        .alert div{
            width:500px;
            max-width:95%;
            background:var(--c7);
            border-radius:10px;
            padding:15px;
            
            
        }
        
         .alert button{
            width:80%;
            margin:10px auto;
            background:var(--c3);
            color:var(--c4);
            border-radius:10px;
            padding:15px;
            display:block;
            
        }
.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:linear-gradient(135deg,var(--c1),var(--c3),var(--c2));
    color: #fff;
    padding: 70px 0 50px; /* اضافه کردن padding-top برای هدر ثابت */
    text-align: center;
    margin-top:70px;
    overflow:hidden;
    
}

.hero h1 {
    font-size: 20px;
    margin-bottom: 20px;
    
    text-shadow:3px 3px 5px gray;
}
.hero h2 {
    font-size: 14px;
   
}
.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero .cta-button {
    background-color: #fff;
    color: #007BFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* خدمات */
.services {
    padding: 10px 0;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    flex-wrap:wrap;
    gap: 20px;
    justify-content: center;
}

.card{
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 20%;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor:pointer;
}
.card p{
    font-size:12px;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.maincard{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 20%;
    aspect-ratio:20/10; 
    transition: transform 0.3s, box-shadow 0.3s;
    cursor:pointer;
    background-image: linear-gradient(0deg,#42729a,#779cbe);
 }
 .maincard P{
     color:#fff;
     height:50px;
     overflow:hidden; 
     text-overflow:ellipsis;
     font-size:12px;
 }
  .maincard h3{
     color:#fff;
     overflow:hidden; 
     text-overflow:ellipsis; 
     font-size:20px;
 }
.maincard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.maincard{
    color:#fff;
}



.artList{
    width:95%;
    max-width:1200px;
    margin:auto;
     overflow:hidden;
    text-overflow:ellipsis;
}
.singleRow{
    color:var(--c6);
    white-space:nowrap;
    
}
.artList card{
    display:flex;
    gap:10px;
    align-items:center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor:pointer;
    margin-bottom:20px;
}
.artList card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.artList img{
    height:100px;
    width:100px;
    object-fit:cover;
    border:solid .5px ;
    border-radius:10px;
    aspect-ratio:1/1 !important;
}

.form{
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 20px;
    animation: openform 0.5s ease; 
}

  @keyframes openform{
        0%{scale:0.0;opacity:0;}
        70%{scale:1.2; opacity:1;}
        100%{scale:1; opacity:1;}
    }



.form-group {
  margin-bottom: 15px;
}
.form-butt-group {
  margin-bottom: 15px;
  display:flex;
  justify-content:space-between;
}

.form-group h3{
    font-weight:bold;
    text-align:center;
  margin-bottom: 5px;
  background:var(--co1);
  color:var(--co2);
  padding:10px;
}
.form-group label {
  margin-bottom: 5px;
  color:gray;
  font-size:12px;
}
.form-group span{
    font-size:10px;
    color:red;
}

.form-group textarea{
    width:calc(100% - 20px);
    padding:10px;
    font-family:iransans;
}

.form-group input,select {
  width:100%;
  max-width:100%;
  padding: 10px 0px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align:center;
  font-family:iransans;
}

.searchbtn{ /*for form group*/
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align:center;
}


.btn{
    direction:ltr;
    
}

.btn :nth-child(1){
font-family:iransans_bold;
  width: 50%;
  background-color: #008CBA;
  color: #fff;
  border: none;
 
  border-radius: 5px;
  border-style:solid;
  border-width:0.5px; 
  cursor: pointer;
  padding:10px;
}

.btn :nth-child(2){
    width: 45%;
  background: none;
  color: #008CBA;
  border: none;
 
  border-radius: 5px;
  border-style:solid;
  border-width:0.5px; 
  cursor: pointer;
  padding:10px;
}


/* فوتر */
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;
        padding:20px 0;
        top: 60px;
        left: -100%;
        background-color: #333;
        width: 100%;
        height: calc(100vh - 100px);
        overflow-y: auto;
        text-align: right;
        transition: left 0.3s ease-in-out;
    }

    .nav-menu.active {
        left: 0;
        display:flex;
    }

    .nav-menu ul {
        margin-right:20px;
        flex-direction: column;
        justify-content:start;
        align-items:start;
        gap: 10px;
    }

    .has-submenu .submenu {
        position: static;
        background-color: #444;
        display: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }
    .card{
     width:calc(45% - 20px);   
    }
    .maincard{
     width:calc(95% - 20px);   
    }

    #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);
}