/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #111827;
    color: #f9fafb;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
}

/* Container for consistent max-width and centering */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 80px 0 100px;
    text-align: center;
    border-bottom: 1px solid #374151;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-section {
    margin-bottom: 60px;
}

.main-title {
    position: relative;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: inline-block;
}

.title-text {
    background: linear-gradient(45deg, #06b6d4, #0891b2, #0e7490);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #06b6d4, #0891b2);
    opacity: 0;
    filter: blur(20px);
    transition: all 0.3s ease;
    z-index: 1;
}

.main-title:hover .title-accent {
    opacity: 0.3;
    transform: scale(1.1);
}

.main-title:hover .title-text {
    transform: translateY(-2px);
    text-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.tagline {
    font-size: 1.4rem;
    color: #d1d5db;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    position: relative;
}

.tagline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tagline:hover::after {
    opacity: 1;
}

.team-intro {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.intro-box {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.6));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #0891b2, #0e7490);
    border-radius: 20px 20px 0 0;
}

.intro-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.intro-box:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 
        0 30px 60px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.intro-box:hover::after {
    opacity: 1;
}

.intro-text {
    font-size: 1.2rem;
    color: #f9fafb;
    line-height: 2;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

/* Scroll indicator for sections */
section .scroll-indicator {
    animation-delay: 2s;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #06b6d4;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* Main Content Styles */
main {
    padding: 80px 0;
    width: 100%;
    overflow-x: hidden;
}

/* Section Headings */
section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #06b6d4;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

section h2:hover {
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

section h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4);
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

section h2:hover::before {
    opacity: 1;
    left: -30px;
    width: 50px;
}

section h2:hover::after {
    width: 100px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Products Section */
#products {
    background-color: #1f2937;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: linear-gradient(145deg, #374151, #4b5563);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #4b5563;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-card p {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Manager Section */
#manager {
    padding: 80px 0;
    background-color: #111827;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

#manager::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.manager-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(31, 41, 55, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.manager-info:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}

.manager-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.manager-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    transition: width 0.3s ease;
}

.manager-info:hover h3::after {
    width: 100px;
}

.manager-info p {
    font-size: 1.1rem;
    color: #d1d5db;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.manager-info:hover p {
    color: #f9fafb;
}

/* Contact Section */
#contact {
    background-color: #1f2937;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-info {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(31, 41, 55, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}

.contact-info p {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.contact-info:hover p {
    color: #f9fafb;
}

.phone-number {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #06b6d4;
    text-decoration: none;
    padding: 20px 40px;
    border: 2px solid #06b6d4;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.phone-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
    transition: left 0.5s ease;
}

.phone-number:hover::before {
    left: 100%;
}

.phone-number:hover {
    background-color: #06b6d4;
    color: #111827;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
    border-color: #0891b2;
}

/* Footer Styles */
footer {
    background-color: #0f172a;
    padding: 60px 0 20px;
    border-top: 1px solid #374151;
    position: relative;
    overflow: hidden;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-column {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid transparent;
}

.footer-column:hover {
    background: rgba(31, 41, 55, 0.2);
    border-color: rgba(6, 182, 212, 0.1);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-column:hover h4 {
    transform: translateX(5px);
    text-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.footer-column p {
    color: #d1d5db;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-column:hover p {
    color: #f9fafb;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 10px;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    right: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #06b6d4;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    right: -20px;
}

.footer-column ul li a:hover {
    color: #06b6d4;
    padding-right: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom:hover p {
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    header {
        min-height: 100vh;
        padding: 60px 0 80px;
    }
    
    #products, #manager, #contact {
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .team-intro {
        max-width: 700px;
    }
    
    .intro-box {
        padding: 30px;
    }
    
    .intro-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card {
        padding: 25px;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
    }
    
    .manager-info {
        padding: 30px;
    }
    
    .manager-info h3 {
        font-size: 1.6rem;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .phone-number {
        font-size: 1.4rem;
        padding: 15px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    header {
        min-height: 100vh;
        padding: 40px 0 60px;
    }
    
    #products, #manager, #contact {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .team-intro {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .intro-box {
        padding: 25px;
        border-radius: 15px;
    }
    
    .intro-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    main {
        padding: 60px 0;
    }
    
    #products, #manager, #contact {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .manager-info, .contact-info {
        padding: 20px;
    }
    
    .phone-number {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
    
    .footer-column {
        padding: 10px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
* {
    max-width: 100%;
}

/* Ensure no element exceeds viewport width */
body, html, main, section, header, footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Loading animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
