/* CSS Variables - Root Colors */
:root {
    --primary-color: #4A90E2;
    --primary-hover: #5BA3F5;
    --primary-light: #E3F2FD;
    --primary-gradient-start: #4A90E2;
    --primary-gradient-end: #5BA3F5;
    
    --text-primary: #333;
    --text-secondary: #555;
    --text-tertiary: #666;
    --text-light: #999;
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafafa;
    --bg-gray: #f8f8f8;
    --bg-medium: #f0f0f0;
    
    --border-color: #e0e0e0;
    --border-light: #eee;
    --border-lighter: #f0f0f0;
    --border-medium: #ddd;
    
    --accent-yellow: #FFC107;
    --accent-pink: #E91E63;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(74, 144, 226, 0.15);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: 'IRANSans-Edit', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    background: linear-gradient(178deg, #bcdbff, #ffffff, #f4d0ff);
    background-size: 600% 600%;
	/*	background-position:0% 0%; */
    background-attachment: fixed;
    -webkit-animation: backgroundAnimation 47s ease infinite;
    -moz-animation: backgroundAnimation 47s ease infinite;
    -o-animation: backgroundAnimation 47s ease infinite;
    animation: backgroundAnimation 47s ease infinite;
    min-height: 100vh;
}

/* بک‌گراند متحرک */
@keyframes backgroundAnimation {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 51% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}

/* غیرفعال کردن انیمیشن برای کاربرانی که حرکت را ترجیح نمی‌دهند */
@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        background: linear-gradient(178deg, #bcdbff, #ffffff, #bcdbff);
        /*	background-position:50% 50%; */
        background-size: 100% 100%;
    }
}

main {
    min-height: 60vh;
    padding: 10px 2rem 2rem 2rem;
    background: transparent;
}

main h1 {
    color: var(--primary-color);
   /* margin-bottom: 1rem;*/
}

/* Footer Styles */
.footer {
/*    background: rgba(255, 255, 255, 0.7);*/
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
/*    border-top: 1px solid rgba(224, 224, 224, 0.5);*/
    padding: 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Services Section */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
/*    border-bottom: 1px solid rgba(240, 240, 240, 0.5); */
/*    background: rgba(250, 250, 250, 0.4); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);*/
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
/*    background: rgba(255, 255, 255, 0.6); */
/*    backdrop-filter: blur(8px); */
/*    -webkit-backdrop-filter: blur(8px); */
    border-radius: 8px;
/*    box-shadow: var(--shadow-sm); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-white);
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Main Footer Content */
.footer-main {
    display: grid;
    /* grid-template-columns: 2fr 1fr 1fr 2fr; */
    /* gap: 3rem;  */
    grid-template-columns: 3fr 2fr 2fr 3fr;
    gap: 1rem;
    padding: 3rem 0;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding-left: 1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    /*    background: var(--bg-light); */
    background: #cce3ff;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: #c2dcf9;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Social Media Section */
.social-section h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
/*    background: var(--bg-medium);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.social-link:hover svg {
    color: var(--bg-white);
}

/* Footer Links */

.certificate-item {
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-right 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 0.5rem;
}

.footer-links a::before {
    content: '+';
    color: var(--primary-color);
    margin-left: 0.5rem;
    font-weight: bold;
}

/* Logo Section */
.logo-section {
    padding-right: 1rem;
}

.main-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.logo-sub {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.logo-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.company-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .logo-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 0.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .contact-section,
    .logo-section {
        padding: 0;
    }
    
    .main-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .certificates {
        gap: 1rem;
    }
    
    .certificate-item img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .service-content h3 {
        font-size: 1rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .certificates {
        gap: 0.75rem;
    }
    
    .certificate-item img {
        width: 45px;
        height: 45px;
    }
}

/* Animation for smooth loading */
.footer {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better interactivity */
.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}

/* Focus styles for accessibility */
.social-link:focus,
.footer-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .footer {
        background: var(--bg-white) !important;
        color: black !important;
    }
    
    .service-item,
    .contact-item {
        background: var(--bg-white) !important;
        box-shadow: none !important;
    }
}

/* Header Styles */
.header {
    width: 100%;
/*    background-color: rgba(255, 255, 255, 0.8); */
    background-color: rgb(255 255 255 / 0%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
/*    box-shadow: var(--shadow-sm); */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Announcement Bar */
.top-announcement-bar {

	color: #a0cdff;
	padding: 0.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(180deg, #8ec2ff, #8ec2ff00);
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: scroll-left 20s linear infinite;
}

.announcement-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Main Header Section */
.main-header {
    padding: 10px 0;
    /* border-bottom: 1px solid var(--border-light); */
}

.main-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-pink);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
	height:40px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
/*  background-color: transparent; */
	background-color: #ecf5ff;
    color: var(--primary-color);
/*  border: 1px solid var(--primary-color); */
	border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.search-bar {
    display: flex;
    width: 100%;
    max-width: 500px;
	height: 40px;
/*  border: 1px solid var(--border-medium);	*/
	border: none;
    border-radius: 5px;
    overflow: hidden;
/*  background-color: var(--bg-gray);	*/
	background-color: #f8f8f8;
}

.search-bar input {
    border: none;
    padding: 0.75rem 1.25rem;
    flex-grow: 1;
    font-size: 0.9rem;
    outline: none;
    background-color: #ffffff66;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-bar button {
    background-color: #eeeeee7a;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--border-light);
}

.search-bar button svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
}

.header-right .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right .logo img {
    height: 40px;
    width: auto;
}

.header-right .logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.header-right .logo .logo-main {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.header-right .logo .logo-sub {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.header-right .logo .logo-desc {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Navigation Bar */
.navbar {
    background-color: rgba(248, 248, 248, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
/*  border-top: 1px solid rgba(238, 238, 238, 0.5); */
	border-top: none;
    /* padding: 0.75rem 0; */
    direction: ltr;

}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.product-categories .category-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.product-categories .category-btn:hover {
    background-color: var(--primary-hover);
}

.product-categories .category-btn svg {
    width: 20px;
    height: 20px;
    color: var(--bg-white);
}

/* Responsive Design for Header */
@media (max-width: 1024px) {
    .main-header .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .header-left,
    .header-right {
        flex-basis: 100%;
        justify-content: center;
    }
    
    .header-center {
        order: 3;
        margin-top: 1rem;
        flex-basis: 100%;
    }
    
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-announcement-bar {
        font-size: 0.8rem;
    }
    
    .announcement-content {
        animation: scroll-left 15s linear infinite;
    }
    
    .header-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .product-categories .category-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-announcement-bar {
        font-size: 0.75rem;
        padding: 0.3rem 0;
    }
    
    .announcement-content {
        animation: scroll-left 10s linear infinite;
    }
    
    .main-header .header-container {
        padding: 0 0.5rem;
    }
    
    .header-left {
        gap: 0.25rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .search-bar input {
        padding: 0.6rem 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .product-categories .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}