@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    margin: 0;
    background: #eef2f7;
    color: #333;
}

/* هدر مدرن */
header {
    background: linear-gradient(135deg, #005ab3, #007be5);
    padding: 25px;
    text-align: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

nav ul li {
    display: inline-block;
    margin: 0 12px;
}

nav a {
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.3s;
    text-decoration: none;
    font-size: 15px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* بدنه */
main {
    padding: 40px 60px;
    max-width: 1200px;
    margin: auto;
}

/* سکشن های کارت‌دار */
section, .card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.hero {
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #dcecff);
}

.hero h2 {
    font-size: 30px;
    color: #003d80;
    margin-bottom: 10px;
}

/* گالری گرید حرفه‌ای */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery img:hover {
    transform: scale(1.05);
}

/* فرم تماس حرفه‌ای */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #bbb;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #007be5;
    box-shadow: 0 0 6px rgba(0,123,229,0.3);
}

button {
    background: #005ab3;
    color: white;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #003d80;
}

.success {
    background: #d4ffd4;
    padding: 12px;
    border-radius: 8px;
    color: #0a7200;
}

/* فوتر زیبا */
footer {
    text-align: center;
    padding: 20px;
    background: #003d80;
    color: white;
    margin-top: 30px;
    border-radius: 0;
}
/* اسلایدر */
.slider {
    position: relative;
    width: 100%;
    height: 470px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 20px;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s ease;
}

.slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.slide-caption h2 {
    margin: 0;
    font-size: 32px;
}

.slide-caption p {
    margin-top: 5px;
}

/* دکمه‌های قبل/بعد */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 16px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

/* نقاط پایین */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #aaa;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dots span.active {
    background: #fff;
    transform: scale(1.3);
}
/* ====== SLIDER ====== */

.slider{
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* container slides */
.slides{
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s ease;
}

/* each slide */
.slide{
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.slide img{
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* caption text */
.slide-caption{
    position: absolute;
    bottom: 35px;
    left: 35px;
    color: white;
    background: rgba(0,0,0,0.45);
    padding: 18px 28px;
    border-radius: 8px;
}

.slide-caption h2{
    margin: 0;
    font-size: 30px;
}

.slide-caption p{
    margin-top: 6px;
    font-size: 16px;
}

/* arrows */

.slider-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 16px;
    font-size: 24px;
    background: rgba(0,0,0,0.45);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-btn:hover{
    background: rgba(0,0,0,0.7);
}

.prev{
    left: 10px;
}

.next{
    right: 10px;
}

/* dots */

.dots{
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dots span{
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dots span.active{
    background: white;
    transform: scale(1.3);
}
/* ==== HERO STATIC IMAGE ==== */

.hero-image{
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    margin: 30px auto;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.hero-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* متن روی عکس */
.hero-caption{
    position: absolute;
    bottom: 35px;
    left: 35px;
    background: rgba(0,0,0,0.45);
    padding: 20px 28px;
    border-radius: 10px;
    color: white;
}

.hero-caption h2{
    margin: 0;
    font-size: 32px;
}

.hero-caption p{
    margin-top: 6px;
    font-size: 16px;
}
