:root {
    --midnight-blue: #2c3e50;
    --clouds: #ecf0f1;
    --turquoise: #1abc9c;
    --green-sea: #16a085;
    --peter-river: #3498db;
    --silver: #bdc3c7;
    --wet-asphalt: #34495e;
    --carrot: #e67e22;
    --asbestos: #7f8c8d;
    --emerald: #2ecc71;
    --amethyst: #9b59b6;
    --white: #ffffff;
}

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

body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--clouds);
    overflow-x: hidden;
}


/* Smooth scroll behavior for the whole page */
html {
    scroll-behavior: smooth;
}

/* Ensure smooth scrolling even when user uses mouse wheel */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Style for active navigation link */
.nav-link.active {
    color: var(--turquoise);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--turquoise);
    border-radius: 2px;
}

/* Hover effects for better UX */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--turquoise);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--turquoise);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


.hero-description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-description.fade-in {
    opacity: 1;
    transform: translateY(0);
}





/* نوار ناوبری */
.navbar {
    background-color: var(--midnight-blue);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--turquoise);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clouds);
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--turquoise);
}

.nav-logo h2 {
    font-size: 1.3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--clouds);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--turquoise);
    background-color: rgba(255,255,255,0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--clouds);
    transition: all 0.3s ease;
}

/* بخش هیرو */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    background: var(--midnight-blue);
    color: var(--clouds);
    min-height: 100vh;
    /* border-bottom: 3px solid var(--turquoise); */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-left: 10px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* border: 3px solid var(--turquoise); */
}

.tech-elements {
    display: none; /* غیرفعال کردن عناصر شناور در موبایل */
}

/* بخش دستگاه‌ها */
.devices-section {
    padding: 4rem 1rem;
    background-color: var(--clouds);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--turquoise);
    border-radius: 2px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.device-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--peter-river);
    border: 2px solid var(--silver);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: var(--peter-river);
}

.device-icon {
    font-size: 3rem;
    color: var(--peter-river);
    margin-bottom: 1rem;
}

.device-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--midnight-blue);
}

.device-card p {
    color: var(--asbestos);
    margin-bottom: 1.5rem;
}

.device-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.control-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.control-btn.on {
    background-color: var(--emerald);
    color: white;
}

.control-btn.off {
    background-color: #e74c3c;
    color: white;
}

.control-btn.up, .control-btn.down {
    background-color: var(--peter-river);
    color: white;
    font-size: 1.2rem;
}

.control-btn.lock {
    background-color: var(--carrot);
    color: white;
}

.control-btn.unlock {
    background-color: var(--emerald);
    color: white;
}

.control-btn.view {
    background-color: var(--peter-river);
    color: white;
}

.control-btn.record {
    background-color: #e74c3c;
    color: white;
}

/* بخش صحنه‌ها */
.scenes-section {
    padding: 4rem 4rem 7rem 4rem;
    background-color: var(--wet-asphalt);
    color: var(--clouds);
}

.scenes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.scene-card {
    overflow: hidden;
    background-color: var(--midnight-blue);
    border-radius: 12px;
    /* padding: 2rem 1.5rem; */
    /* transition: all 0.3s ease; */
    display: flex;
    /* flex-direction: column; */
    /* justify-content: space-between; */
    /* border-right: 4px solid var(--turquoise); */
    /* border: 2px solid var(--asbestos); */
}


.scene-content h3 {
    font-size: 1.4rem;
    /* margin-bottom: 1rem; */
    color: var(--turquoise);
}

.scene-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.scene-activate {
    background-color: var(--turquoise);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
}

.scene-activate:hover {
    background-color: var(--green-sea);
}

/* بخش خودکارسازی */
.automation-section {
    padding: 4rem 1rem;
    background-color: var(--clouds);
}

.automation-list {
    max-width: 850px;
    margin: 0 auto;
}

.automation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    /* border-left: 4px solid var(--carrot); */
    /* border: 2px solid var(--silver); */
}

.automation-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--green-sea);
}

.automation-info p {
    color: var(--midnight-blue);
}

/* سوئیچ */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    /* top: 0; */
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    /* border-radius: 34px; */
    display: none;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    right: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--turquoise);
}

input:checked + .slider:before {
    transform: translateX(-26px);
}

/* پاورقی */
.footer {
    background-color: var(--midnight-blue);
    color: var(--clouds);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--turquoise);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--clouds);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--turquoise);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--clouds);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--turquoise);
    /* transform: translateY(-2px); */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* نوتیفیکیشن */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--emerald);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 1001;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* رسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    /* نوار ناوبری */
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--midnight-blue);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        padding: 2rem 0;
        gap: 0;
        border-top: 2px solid var(--turquoise);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 0.5rem 0;
        /* padding: 0.5rem 0; */
    }

    .nav-link {
        display: block;
        padding: 0.2rem 1rem;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* بخش هیرو */
    .hero {
        flex-direction: column;
        padding: 100px 15px 40px;
        min-height: auto;
        text-align: center;
    }

    .hero-content {
        order: 2;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-image {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-image img {
        border-width: 2px;
    }

    /* بخش دستگاه‌ها */
    .devices-section {
        padding: 3rem 15px;
    }

    .devices-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .device-card {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .device-controls {
        flex-wrap: wrap;
    }

    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 80px;
    }

    /* بخش صحنه‌ها */
    .scenes-section {
        padding: 3rem 15px;
    }

    .scenes-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
.img-automation img {
display:none;
}
    .scene-card {
        /* padding: 1.5rem 1rem; */
        min-height: auto;
    }

    /* بخش خودکارسازی */
    .automation-section {
        padding: 3rem 15px;
    }

    .automation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 1rem;
        text-align: right;
    }

    .automation-item .switch {
        align-self: center;
    }

    /* پاورقی */
    .footer {
        padding: 2rem 15px 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* عنوان بخش‌ها */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    /* نوتیفیکیشن */
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.active {
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }
}


/* بخش تکنولوژی‌های پشتیبانی شده - طراحی مینیمال و فلت */
.technologies-section {
    padding: 4rem 1rem;
    background-color: var(--clouds);
}

.technologies-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    /* color: var(--midnight-blue); */
    margin-bottom: 3.8rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--asbestos);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.technologies-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-item {
    background-color: var(--white);
    /* border-radius: 12px; */
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* border: 2px solid var(--silver); */
    /* transition: border-color 0.3s ease; */
}

.tech-item:hover {
    /* border-color: var(--peter-river); */
}

.tech-icon {
    width: 132px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ecf0f175;
    border-radius: 12px;
    padding: 10%;
}

.tech-content {
    flex: 1;
}

.tech-content h3 {
    font-size: 1.3rem;
    color: var(--midnight-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-content p {
    color: var(--asbestos);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* رسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .technologies-section {
        padding: 3rem 15px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
    }
    
    .tech-content h3 {
        font-size: 1.2rem;
    }
    
    .tech-content p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .technologies-section {
        padding: 2rem 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tech-item {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
    }
}

        .title-main .regular {
            color: var(--white);
            opacity: 0.9;
        }
        
        .title-main .ha-highlight {
            color: var(--green-sea);
            font-weight: 700;
            position: relative;
            display: inline-block;
        }
        
        .title-main .ha-highlight::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--ha-blue), transparent);
            border-radius: 2px;
        }
		
		
		
		
		/* اسلایدر متن Home Assistant */
.ha-slider-section {
    /* padding: 4rem 1rem; */
    background: linear-gradient(135deg, var(--wet-asphalt) 0%, var(--midnight-blue) 100%);
}

.ha-text-slider {
    /* max-width: 800px; */
    width: 100%;
    background: var(--silver);
    /* border-radius: 16px; */
    overflow: hidden;
    /* border: 1px solid var(--silver); */
    margin: 0 auto;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
    padding: 2.5rem 0;
}

.slider-header {
    background: var(--midnight-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--turquoise);
}

.slider-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--turquoise);
}

.ha-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 188, 156, 0.2);
    border: 1px solid var(--turquoise);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    color: var(--turquoise);
}

.ha-badge i {
    margin-left: 0.5rem;
}

.slider-container {
    position: relative;
    height: 176px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding-top: 3rem;
    padding: 4rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-number {
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 0.9rem;
    color: var(--turquoise);
    font-weight: 600;
    background: rgba(26, 188, 156, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: none;
}

.slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--midnight-blue);
    line-height: 1.4;
    float: right;
}

.slide-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--midnight-blue);
    max-width: 600px;
    text-align: right;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem;
    background: var(--silver);
    /* border-bottom: 4px solid var(--silver); */
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--asbestos);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--turquoise);
    opacity: 1;
    transform: scale(1.2);
}

.slider-btn {
    background: var(--turquoise);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.slider-btn:hover {
    background: var(--green-sea);
    transform: scale(1.1);
}

/* رسپانسیو برای اسلایدر */
@media screen and (max-width: 768px) {
    .ha-slider-section {
        /* padding: 3rem 15px; */
    }
    
    .slider-header {
        padding: 1rem 1.5rem;
    }
    
    .slider-header h2 {
        font-size: 1.5rem;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slide {
        padding: 2rem 1.5rem;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .slide-content {
        font-size: 1rem;
    }
    
    .slider-controls {
        padding: 1rem 1.5rem;
    }
    
    .slider-dots {
        margin: 0 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .ha-slider-section {
        /* padding: 2rem 10px; */
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-content {
        font-size: 0.9rem;
    }
    
    .slider-container {
        height: 220px;
    }
    
    .slide-number {
        top: 0.5rem;
        left: 1rem;
        font-size: 0.8rem;
    }
}
/* بخش تکنولوژی‌های پشتیبانی شده - با اسکرول مخفی */
.technologies-section {
    padding: 4rem 1rem;
    background-color: var(--clouds);
    position: relative;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--asbestos);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-hint i {
    color: var(--turquoise);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.technologies-scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 460px;
    overflow: hidden;
    position: relative;
    /* border-radius: 12px; */
    /* border: 2px solid var(--silver); */
    /* background: var(--white); */
}

.technologies-scroll-container:hover {
    overflow-y: auto;
}

/* استایل‌های اسکرول مخفی */
.technologies-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.technologies-scroll-container::-webkit-scrollbar-track {
    background: var(--clouds);
    border-radius: 4px;
}

.technologies-scroll-container::-webkit-scrollbar-thumb {
    background: var(--turquoise);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.technologies-scroll-container:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.technologies-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--green-sea);
}

.technologies-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* gap: 1rem; */
    padding: 1.5rem;
}
.tech-items{

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem ;

}

.tech-item {
    background-color: #ffffffa3;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    /* border: 2px solid var(--silver); */
    /* transition: all 0.3s ease; */
    cursor: pointer;
}

.tech-item:hover {
    /* border-color: var(--turquoise); */
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

.tech-icon {
    /* width: 60px; */
    /* height: 60px; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* background: var(--clouds); */
    border-radius: 12px;
    /* padding: 10px; */
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-content {
    flex: 1;
}

.tech-content h3 {
    font-size: 1rem;
    color: var(--midnight-blue);
    margin-bottom: 0.3rem;
    font-weight: normal;
}

.tech-content p {
    color: var(--asbestos);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

/* رسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .technologies-section {
        padding: 3rem 15px;
    }
    
    .technologies-scroll-container {
        height: 500px;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .tech-item {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
    }
    
    .tech-content h3 {
        font-size: 1rem;
    }
    
    .tech-content p {
        font-size: 0.8rem;
    }
    
    .scroll-hint {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .technologies-section {
        padding: 2rem 10px;
    }
    
    .technologies-scroll-container {
        height: 400px;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
    }
}
.scene-image {
    /* width: 50%; */
    height: 124px;
    overflow: hidden;
    position: relative;
    float: right;
}

.scene-image img {
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scene-content {
    padding: 0.5rem;
    flex: 1;
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: space-between; */
    grid: unset;
    float: right;
}

.scene-content h3 {
    font-size: 1.4rem;
    /* margin-bottom: 0.2rem; */
    color: var(--turquoise);
    font-weight: 600;
}

.scene-content p {
    opacity: 0.9;
    /* margin-bottom: 1.5rem; */
    line-height: 1.6;
    font-size: 0.95rem;
}

.scene-activate {
    background-color: var(--turquoise);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}
.automation-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 20px 18px 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

.img-automation {
    flex-shrink: 0;
}

.img-automation img {
    width: 180px;
    /* height: 180px; */
    object-fit: cover;
    border-radius: 3px;
    background-color: #eee;
    overflow: hidden;
}

.automation-info {
    flex: 1;
}

.benefits-list {
    margin-top: 10px;
    padding-right: 0;
    list-style: none;
}

.benefits-list li {
    padding: 8px 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.benefits-list li i {
    color: var(--peter-river);
    margin-left: 8px;
    margin-top: 2px;
    min-width: 16px;
}
.tech-category {
    margin: 0 0 0px 0;
    padding: 0 1rem;
    font-size: 0.95em;
    font-weight: normal;
    color: var(--carrot);
    border-bottom: 1px solid #ccc;
}
.hero-stats {
    display: flex;
    gap: 80px;
}
   .hero-stats {
        justify-content: center;
    }

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2em;
    /* font-weight: 200; */
    background: linear-gradient(45deg, var(--carrot), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1em;
    color: var(--asbestos);
    margin-top: 5px;
}
section#hero-stat {
    background-color: var(--wet-asphalt);
    padding:2.2rem
}





/* استایل منوی فیلتر */
.tech-filter-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    /* margin: 30px 0; */
    /* padding: 0 20px; */
}

.filter-btn {
    font-family: vazir;
    padding: 5px;
    /* background: rgba(255, 255, 255, 0.1); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border-radius: 4px;
    /* color: var(--clouds); */
    cursor: pointer;
    transition: all 0.3s ease;
    /* font-family: 'Vazirmatn', 'Vazir', sans-serif; */
    /* font-size: 0.9em; */
    /* backdrop-filter: blur(10px); */
    border: none;
    background-color: var(--white);
}

.filter-btn:hover {
    background: rgba(26, 188, 156, 0.3);
    border-color: var(--turquoise);
    /* transform: translateY(-2px); */
}

/* استایل بخش‌های دسته‌بندی */
.tech-category-section {
    transition: all 0.5s ease;
    margin-bottom: 40px;
}

.tech-category-section.hidden {
    display: none;
}

.tech-category-section.visible {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل ریسپانسیو برای منوی فیلتر */
@media (max-width: 768px) {
    .tech-filter-menu {
        gap: 8px;
        padding: 0 8px;
    }
    
    .filter-btn {
        padding: 8px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .tech-filter-menu {
        /* flex-direction: column; */
        align-items: center;
    }
    
    .filter-btn {
        width: 115px;
        text-align: center;
    }
}
.footer-section.call i {
    margin-left: 10px;
}

@media screen and (max-width: 768px) {
    /* رفع مشکل اسکرول در بخش تکنولوژی‌ها */
    .technologies-scroll-container {
        height: 300px !important;
        overflow-y: visible !important;
        max-height: none !important;
    }
    
    /* رفع مشکل اسکرول در بخش خودکارسازی */
    .automation-list {
        height: 350px !important;
        overflow-y: visible !important;
        max-height: none !important;
    }
    
}