*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:tahoma;
}

body{
direction:rtl;
}















/* ===== NAVBAR ===== */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
background:#0066ff;
padding:16px 24px;
}

.logo{
color:#fff;
font-size:22px;
font-weight:bold;
}

/* ===== DESKTOP MENU ===== */

.desktop-menu{
display:flex;
gap:25px;
list-style:none;
}

.desktop-menu li{
position:relative;
}

.desktop-menu a{
color:#fff;
text-decoration:none;
font-size:16px;
}

/* DESKTOP SUBMENU */

.desktop-menu .submenu{
display:none;
position:absolute;
top:100%;
right:0;
background:#fff;
min-width:225px;
padding:10px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,.15);
z-index:9999;
}

.desktop-menu .dropdown:hover .submenu{
display:block;
}

.desktop-menu .submenu a{
display:block;
padding:12px;
color:#222;
border-radius:8px;
}

.desktop-menu .submenu a:hover{
background:#0066ff;
color:#fff;
}

/* ===== HAMBURGER ===== */

.menu-btn{
display:none;
background:none;
border:none;
font-size:32px;
color:#fff;
cursor:pointer;
}

/* ===== OVERLAY ===== */

.overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.45);
opacity:0;
visibility:hidden;
transition:.35s;
z-index:998;
}

.overlay.active{
opacity:1;
visibility:visible;
}

/* ===== SIDEBAR ===== */

.sidebar{
position:fixed;
top:0;
left:-320px;
width:250px;
height:100vh;
background:#fff;
padding:30px 20px;
overflow-x:hidden;
transition:.4s;
z-index:999;
box-shadow:0 0 30px rgba(0,0,0,.18);
}

.sidebar.active{
left:0;
}

/* CLOSE BUTTON */

.close-btn{
width:50px;
height:50px;
border:none;
border-radius:10px;
background:#6c757d;
color:#fff;
font-size:28px;
cursor:pointer;
margin-bottom:25px;
transition:.3s;
}

.close-btn:hover{
background:linear-gradient(135deg,#FFD700,#FFB700);
color:#222;
transform:rotate(90deg);
}

/* SIDEBAR LINKS */

.sidebar ul{
list-style:none;
padding:0;
margin:0;
}

.sidebar li{
margin:10px 0;
}

.sidebar a{
display:block;
padding:14px;
border-radius:12px;
text-decoration:none;
color:#222;
transition:.3s;
}

.sidebar a:hover{
background:#0066ff;
color:#fff;
}

/* MOBILE SUBMENU */
.sidebar .dropdown{

position:relative;

}

/* زیرمنو */

.sidebar .submenu{

display:block;

position:absolute;

top:0;

left:-260px;


width:100%;      /* هم اندازه منو */

max-width:100%;

box-sizing:border-box;

background:#fff;

border-radius:12px;

padding:10px;

box-shadow:0 12px 35px rgba(0,0,0,.15);

opacity:0;

visibility:hidden;

transition:.45s ease;

}

/* باز شدن */

.sidebar .dropdown.open .submenu{

left:0;

opacity:1;

visibility:visible;

}

/* لینک ها */

.sidebar .submenu a{

display:block;

padding:12px;

margin:8px 0;

background:#f4f6fb;

border-radius:10px;

color:#222;

text-decoration:none;

transition:.3s;

}

/* هاور */

.sidebar .submenu a:hover{

background:#0066ff;

color:#fff;

transform:translateX(-4px);

}

/* دکمه بستن */

.close-services{


width:50px;
height:50px;
border:none;
border-radius:10px;
background:#6c757d;
color:#fff;
font-size:28px;
cursor:pointer;
margin-bottom:25px;
transition:.3s;
}

.close-services:hover{
background:linear-gradient(135deg,#FFD700,#FFB700);
color:#222;
transform:rotate(90deg);
}


















/* ===== MOBILE ===== */

@media(max-width:768px){

/* مخفی کردن منوی لپتاپ */

.desktop-menu{
display:none;
}

/* نمایش همبرگری */

.menu-btn{
display:block;
}

.logo{
font-size:16px;
max-width:70%;
}

.navbar{
padding:14px 16px;
}

.sidebar{
width:250px;
padding:25px 15px;
}

}

/* SMALL MOBILE */

@media(max-width:480px){

.logo{
font-size:14px;
}

.sidebar{
width:220px;
}

}

















/* HERO BASE (دسکتاپ) */
.hero{
  min-height:80vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;

  background:
  linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
  url('../images/bac.webp');

  background-size:cover;
  background-position:center;
  color:white;
}

.hero-content{
  max-width:700px;
}

.hero-content h1{
  font-size: 30px !important;
}

.hero-content p{
  font-size:18px;
  margin-bottom:25px;
  opacity:0.9;
  line-height:1.8;
}

.btn{
  display:inline-block;
  background:#00aaff;
  color:white;
  padding:12px 25px;
  border-radius:10px;
  text-decoration:none;
  transition:0.3s;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width:768px){

  .hero{
    min-height:70vh;
    padding:40px 15px;
  }

.hero-content h1{
  font-size: 10px; /* فقط همین */
}

  .hero-content p{
    font-size:30px;
    line-height:1.7;
  }

  .btn{
    width:100%;
    display:block;
    padding:14px;
  }
}

@media (max-width:480px){

  .hero h1{
  font-size: 10px; /* فقط همین */
  }

  .hero p{
    font-size:13px;
  }
}








.services{
padding:60px 20px;
text-align:center;
background:#f4f6f9;
}

.services h2{
margin-bottom:40px;
font-size:28px;
color:#0a2a66;
}

/* گرید کارت‌ها */
.cards{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
max-width:1200px;
margin:auto;
}

/* کارت اصلی */
.card{
background: linear-gradient(145deg, #ffffff, #f0f3f8);
padding:25px;
border-radius:18px;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
transition:0.3s;
border:1px solid rgba(0,0,0,0.05);
position:relative;
overflow:hidden;
cursor:pointer;
}

/* خط رنگی بالا */
.card::before{
content:"";
position:absolute;
top:0;
right:0;
width:100%;
height:4px;
background:linear-gradient(90deg,#0066ff,#00c6ff);
}

/* hover حرفه‌ای */
.card:hover{
transform: translateY(-10px) scale(1.03);
box-shadow: 0 18px 40px rgba(0,102,255,0.25);
}

/* عنوان */
.card h3{
margin-bottom:10px;
color:#0a2a66;
}

/* متن */
.card p{
font-size:14px;
color:#666;
margin-bottom:15px;
}

/* دکمه */
.card a{
display:inline-block;
padding:8px 16px;
background:#0066ff;
color:white;
text-decoration:none;
border-radius:8px;
transition:0.3s;
}

.card a:hover{
background:#004ecc;
}

/* 📱 ریسپانسیو */
@media(max-width:992px){
.cards{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.cards{
grid-template-columns:1fr;
}
}












.why-us{
padding:60px 20px;
background:#f4f6f9; /* دقیقاً مثل services */
text-align:center;
}

.why-us h2{
font-size:28px;
margin-bottom:40px;
color:#0a2a66;
}

/* گرید */
.why-cards{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
max-width:1200px;
margin:auto;
}

/* کارت‌ها (ست با services .card) */
.why-card{
background: linear-gradient(145deg, #ffffff, #f0f3f8);
padding:25px;
border-radius:18px;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
transition:0.3s;
border:1px solid rgba(0,0,0,0.05);
position:relative;
overflow:hidden;
}

/* خط رنگی بالا (مثل کارت خدمات) */
.why-card::before{
content:"";
position:absolute;
top:0;
right:0;
width:100%;
height:4px;
background:linear-gradient(90deg,#0066ff,#00c6ff);
}

/* hover دقیقاً مثل کارت خدمات */
.why-card:hover{
transform: translateY(-10px) scale(1.03);
box-shadow: 0 18px 40px rgba(0,102,255,0.25);
}

/* متن */
.why-card h3{
margin-bottom:10px;
color:#0a2a66;
font-size:18px;
}

.why-card p{
font-size:14px;
color:#666;
line-height:1.8;
}

/* 📱 ریسپانسیو */
@media(max-width:992px){
.why-cards{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.why-cards{
grid-template-columns:1fr;
}
}










.contact{
padding:60px 20px;
background:#f4f6f9;
text-align:center;
}

.contact h2{
margin-bottom:30px;
color:#0a2a66;
}

form{
max-width:500px;
margin:auto;
display:flex;
flex-direction:column;
gap:15px;
}

input, select, textarea{
padding:12px;
border-radius:10px;
border:1px solid #ccc;
font-family:tahoma;
outline:none;
}

textarea{
height:120px;
resize:none;
}

button{
background:linear-gradient(90deg,#0066ff,#00c6ff);
color:white;
padding:12px;
border:none;
border-radius:10px;
cursor:pointer;
font-size:16px;
transition:0.3s;
}

button:hover{
opacity:0.9;
transform:translateY(-2px);
}



















/* دکمه‌های شناور */
.float{
position:fixed;
width:55px;
height:55px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
color:white;
text-decoration:none;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
z-index:999;
transition:0.3s;
}

/* واتساپ */
.whatsapp{
bottom:20px;
right:20px;
background:#25D366;
}

/* تماس */
.call{
bottom:90px;
right:20px;
background:#0066ff;
}

/* hover */
.float:hover{
transform:scale(1.1);
}

/* موبایل */
@media(max-width:600px){
.float{
width:50px;
height:50px;
font-size:22px;
}
}










.footer{
background:#0a2a66;
color:white;
padding:60px 20px 20px;
margin-top:50px;
}

/* کانتینر */
.footer-container{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
max-width:1200px;
margin:auto;
}

/* باکس‌ها */
.footer-box h3{
margin-bottom:15px;
font-size:18px;
}

.footer-box p,
.footer-box li{
font-size:14px;
color:#ddd;
line-height:1.8;
}

.footer-box ul{
list-style:none;
padding:0;
}

.footer-box a{
color:#ddd;
text-decoration:none;
}

.footer-box a:hover{
color:#00c6ff;
}

/* پایین فوتر */
.footer-bottom{
text-align:center;
margin-top:40px;
padding-top:15px;
border-top:1px solid rgba(255,255,255,0.2);
font-size:13px;
color:#ccc;
}

/* =========================
   GLOBAL MOBILE FIX
========================= */

@media (max-width: 992px){

  /* Navbar */
  .menu{
    width:100%;
  }

  /* Services + Why Us */
  .cards,
  .why-cards{
    grid-template-columns:repeat(2,1fr);
  }

  /* Footer */
  .footer-container{
    grid-template-columns:repeat(2,1fr);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

  /* HERO */
  .hero h1{
    font-size:28px;
  }

  .hero p{
    font-size:16px;
  }

  /* SERVICES + WHY US */
  .cards,
  .why-cards{
    grid-template-columns:1fr;
  }

  /* Navbar dropdown fix */
  .submenu{
    position:static;
  }

  /* Contact */
  form{
    width:100%;
    padding:0 10px;
  }

  /* Footer */
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px){

  .hero h1{
    font-size:24px;
  }

  .btn{
    width:100%;
    display:block;
  }

  .cards .card,
  .why-card{
    padding:18px;
  }

  .float{
    width:45px;
    height:45px;
    font-size:20px;
  }
}
















