
.hero-slider,
.service-card {
    overflow: hidden;
    position: relative;
}

.btn,
.contact .section-title,
.service-card:hover .service-icon i,
.service-card:hover .service-title {
    color: #fff;
}

.hero-slider,
.portfolio-item,
.section-title,
.service-card,
.slide,
.slide-content {
    position: relative;
}

.form-control,
.submit-btn,
body {
    font-family: Vazirmatn, sans-serif;
}

.footer-links,
.nav-links {
    list-style: none;
}

.btn,
.filter-btn,
.form-label,
.nav-links a,
.read-more,
.submit-btn {
    font-weight: 500;
}

.btn,
.footer-links a,
.logo,
.mobile-menu a,
.nav-links a,
.read-more {
    text-decoration: none;
}

.copyright,
.mobile-btn,
.section-header,
.service-card,
.slide-content {
    text-align: center;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8fafc 0, #e2e8f0 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
}

.hero-slider {
    height: 100vh;
}

.service-card:hover::before,
.slide {
    height: 100%;
}

.slides-container {
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn,
.section-title {
    display: inline-block;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 100%);
}

.slide-content {
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
    z-index: 2;
    transform: translateY(50px);
    opacity: 0;
    animation: 0.8s 0.5s forwards slideUp;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.3s;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
    background: 0 0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-outline:hover,
.section-title::after {
    background: var(--primary);
}

.btn-outline {
    background: 0 0;
    margin-left: 15px;
}

.section {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    padding: 40px 25px;
    z-index: 1;
}

.news-card,
.portfolio-item {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: 0.4s;
    z-index: -1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: 0.4s;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: 0.4s;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: 0.4s;
    font-weight: bold;
}

.service-desc {
    color: var(--gray);
    transition: 0.4s;
}

.service-card:hover .service-desc {
    color: rgba(255, 255, 255, 0.8);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* کارت خبر */
.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all .35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

/* hover کلی کارت */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
}

/* تصویر خبر */
.news-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
}

/* زوم نرم تصویر */
.news-card:hover .news-img {
    transform: scale(1.06);
}

/* محتوا */
.news-content {
    padding: 20px;
}

/* تاریخ */
.news-date {
    font-size: 13px;
    color: #4f8cff;
    margin-bottom: 10px;
}

/* عنوان خبر */
.news-title {
    min-height: 76px;
    line-height: 30px;
    font-size: 18px;
    margin-bottom: 15px;
    min-height: 55px;
    /* برای تراز شدن دکمه‌ها */
    color: black;
}

.news-title {
    position: relative;
}

.news-title::after {
    content: "";
    width: 0;
    height: 3px;
    background: #4f8cff;
    display: block;
    margin-top: 8px;
    transition: .4s;
}

.news-card:hover .news-title::after {
    width: 40px;
}


/* لینک ادامه مطلب */
.read-more {
    color: #2563eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .3s ease;
}

/* hover دکمه */
.news-card:hover .read-more {
    color: #1e40af;
    gap: 12px;
}

.footer-col h3,
.form-group {
    margin-bottom: 25px;
}

.footer-contact p,
.footer-links a {
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.contact {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    color: #fff;
}

.contact-form,
.form-control {
    background: rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: #ccc;
}

.contact .section-title::after {
    background: var(--secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-form {
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-label {
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: 0;
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    color: #fff;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;

}


.form-select option {
    background-color: #0f172a;
    /* مشکی تیره */
    color: #ffffff;
}

.form-select option:checked {
    background-color: #2563eb;
    color: #fff;
}



.footer-col h3::after,
.nav-links a::after,
.social-links a:hover,
.submit-btn {
    background: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.header,
.mobile-menu {
    position: fixed;
    right: 0;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.submit-btn:focus:not(:active)::after {
    animation: 1s ease-out ripple;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }

    20% {
        transform: scale(25, 25);
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.footer {
    background: var(--dark);
    color: #fff;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: 0.3s;
    display: flex;
    gap: 10px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.header {
    padding: 20px 0;
    transition: 0.4s;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header.scrolled .logo,
.logo i {
    color: var(--primary);
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.map-frame {
    margin-top: 100px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    transition: 0.3s;
    position: relative;
    font-weight: bold;
}

.header.scrolled .mobile-menu-btn,
.header.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu {
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s;
    z-index: 999;
}

.mobile-menu a {
    padding: 15px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-btn {
    background: #00d1ff;
    color: #000 !important;
    font-weight: 700;
    margin: 15px;
    border-radius: 25px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-toggle {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: 0.35s;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-toggle.scrolled span {
    background: #000;
}

.glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-glass {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
    .slide h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.3rem;
    }

    .section {
        padding: 70px 0;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header.scrolled {
        padding: 12px 0;
    }
}

@media (max-width: 576px) {

    .section-title,
    .slide h1 {
        font-size: 2rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .contact-wrapper {
        gap: 30px;
    }

    .news-card {
        margin-left: 10px;
    }

    @media (hover: hover) {
        .news-card:hover {
            transform: translateY(-8px);
        }
    }

}

@media (hover: hover) {
    .news-card:hover {
        transform: translateY(-8px);
    }
}



.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 46px;
    width: auto;
    max-width: 160px;
    transition: 0.3s;
}


.view-project {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.portfolio-card {
    border-radius: 22px;
    overflow: hidden;
    background: #0b0f19;
    height: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

/* ظرف تصویر */
.portfolio-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* تصویر بلند سایت */
.portfolio-image img {
    width: 100%;
    height: auto;
    transform: translateY(0);
    transition: transform 6s linear;
}

/* اسکرول تصویر روی hover */
.portfolio-card:hover .portfolio-image img {
    transform: translateY(calc(-100% + 420px));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 1);
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .6),
            rgba(0, 0, 0, .85));
    opacity: 0;
    transition: .4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 0.9;
}

/* بالا: عنوان */
.overlay-top h3 {
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin: 0;
}

/* پایین: دکمه */
.overlay-bottom {
    display: flex;
    justify-content: center;
}

.btn-view {
    background: #FF8040;
    color: #000;
    padding: 10px 22px;
    border-radius: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: .3s;
}

.btn-view:hover {
    background: #ffa376ff;
}


------------------------------

/* Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .7),
            rgba(0, 0, 0, .2),
            rgba(0, 0, 0, .7));
    opacity: 0;
    transition: .4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Title top */
.overlay-top h3 {
    color: #fff;
    font-size: 18px;
    transform: translateY(-20px);
    transition: .4s ease;
}

.portfolio-card:hover .overlay-top h3 {
    transform: translateY(0);
}

/* Button bottom */
.overlay-bottom {
    text-align: center;
    transform: translateY(20px);
    transition: .4s ease;
}

.portfolio-card:hover .overlay-bottom {
    transform: translateY(0);
}
