/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    border-radius: 4px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* ========== HEADER ========== */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo img {
    max-height: 55px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.02);
}

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

.menu li a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #f97316;
    transition: width 0.3s ease;
}

.menu li a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.menu li a:hover {
    color: #f97316;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.hamburger:hover {
    transform: rotate(90deg);
}

/* ========== HERO SECTION ========== */
.hero {
    text-align: center;
    padding: 6rem 5%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%23f97316" fill-opacity="0.05" d="M69.8,-80.9C89.2,-70.2,102.4,-46.1,106.4,-20.7C110.4,4.7,105.2,31.4,91.5,52.6C77.8,73.8,55.6,89.5,31.1,93.8C6.6,98.1,-20.2,91,-44.4,77.7C-68.6,64.4,-90.2,44.9,-96.8,20.7C-103.4,-3.5,-95,-32.3,-78.1,-53.5C-61.2,-74.7,-35.8,-88.3,-9.5,-86.8C16.7,-85.3,50.4,-91.7,69.8,-80.9Z" transform="translate(100 100)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #f97316;
    color: #f97316;
}

.btn-outline:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
}

/* ========== SERVICES SECTION ========== */
#services {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    width: 270px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    border-color: #f97316;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

/* ========== PORTFOLIO SECTION ========== */
#portfolio {
    padding: 5rem 5%;
    background: #ffffff;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    width: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    text-align: center;
    padding: 10px;
    transition: bottom 0.3s ease;
    font-weight: bold;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-item p {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

/* ========== PRICING SECTION ========== */
#pricing {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.pricing-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-item {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    width: 320px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pricing-item.recommended {
    border: 2px solid #f97316;
    transform: scale(1.02);
    box-shadow: 0 25px 40px -12px rgba(249, 115, 22, 0.2);
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1rem 0;
}

.price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #64748b;
}

.pricing-item ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-item li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-item li i {
    color: #10b981;
    font-size: 1rem;
}

/* ========== CONTACT SECTION (مدرن و وسط چین) ========== */
.contact-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.contact-info {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2.5rem;
}

.contact-info h2 {
    text-align: right;
    color: #f97316;
    margin-bottom: 2rem;
}

.contact-info h2::after {
    left: auto;
    right: 0;
    transform: none;
    width: 60px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #f97316;
    width: 40px;
    text-align: center;
}

.info-item div {
    flex: 1;
    line-height: 1.5;
}

.contact-form {
    padding: 2.5rem;
    background: white;
}

.contact-form h2 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.captcha-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 1rem;
}

.captcha-code {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 4px;
}

.captcha-box button {
    margin: 0;
    padding: 10px 18px;
    background: #334155;
    width: auto;
}

.alert {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border-right: 4px solid #10b981;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-right: 4px solid #dc2626;
}

/* ========== FOOTER ========== */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col img {
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #f97316;
}

.social {
    display: flex;
    gap: 1rem;
}

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

.social a:hover {
    background: #f97316;
    transform: translateY(-3px);
}

.social a i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE (موبایل و تبلت) ========== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }
    
    .pricing-item {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 70px;
        right: 0;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
        border-radius: 0 0 20px 20px;
    }
    
    .menu.show {
        display: flex;
    }
    
    .hero {
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    #services, #portfolio, #pricing, .contact-section {
        padding: 3rem 1.5rem;
    }
    
    .service-item, .portfolio-item, .pricing-item {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .service-list, .portfolio-list, .pricing-list {
        gap: 1.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.8rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .info-item i {
        font-size: 2rem;
    }
    
    .captcha-box {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .btn {
        padding: 8px 20px;
    }
    
    .contact-container {
        margin: 0;
        border-radius: 20px;
    }
    
    .captcha-code {
        font-size: 1rem;
        padding: 8px 14px;
    }
}

/* اسکرول نرم و زیبا */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}