/* Reset & Variables */
:root {
    --primary-color: #c9a063;
    --secondary-color: #2c3e50;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #666;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #c9a063 0%, #8b6f3f 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Yekan Bakh', 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        max-width: 90%;
        padding: 0;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-container {
    text-align: center;
}

.loader {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.loader .circle {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader .circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loader .circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    color: var(--white);
    font-weight: 400;
    letter-spacing: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .navbar {
        z-index: 1000;
    }
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .logo span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 40px;
        min-height: auto;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 160, 99, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hero-text {
    opacity: 0;
}

.greeting {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 20px;
    }
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(201, 160, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 160, 99, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    opacity: 0;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 160, 99, 0.2) 0%, rgba(44, 62, 80, 0.2) 100%);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .floating-card {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .floating-card i {
        font-size: 20px !important;
    }
    
    .card-1 {
        top: 5%;
        right: -5%;
    }
    
    .card-2 {
        bottom: 5%;
        left: -5%;
    }
}

.floating-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--secondary-color);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

.scroll-indicator p {
    font-size: 14px;
    color: var(--text-light);
}

/* Section Styles */
section {
    padding: 100px 0;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

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

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 100%;
    }
}

.about-image {
    position: relative;
    width: 100%;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .image-frame {
        max-width: 100%;
    }
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .experience-badge {
        bottom: 15px;
        right: 15px;
        padding: 20px;
    }
    
    .experience-badge h3 {
        font-size: 36px;
    }
    
    .experience-badge p {
        font-size: 13px;
    }
}

.experience-badge h3 {
    font-size: 48px;
    margin-bottom: 5px;
}

.experience-badge p {
    font-size: 16px;
}

.about-text h3 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .about-text h3 {
        font-size: 22px;
        line-height: 1.4;
    }
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-text p {
        font-size: 14px;
        line-height: 1.7;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 25px 0;
        width: 100%;
    }
    
    /* حذف افکت پله‌ای در موبایل برای آمارها */
    .stat-item:nth-child(1),
    .stat-item:nth-child(2),
    .stat-item:nth-child(3) {
        transform: translateY(0) !important;
    }
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .stat-item {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
}

/* افکت پله‌ای برای آمارها */
.stat-item:nth-child(1) {
    transform: translateY(-10px);
}

.stat-item:nth-child(2) {
    transform: translateY(0px);
}

.stat-item:nth-child(3) {
    transform: translateY(10px);
}

/* حفظ افکت پله‌ای در hover */
.stat-item:nth-child(1):hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(201, 160, 99, 0.25);
}

.stat-item:nth-child(2):hover {
    transform: translateY(0px) scale(1.05);
    box-shadow: 0 15px 40px rgba(201, 160, 99, 0.25);
}

.stat-item:nth-child(3):hover {
    transform: translateY(10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(201, 160, 99, 0.25);
}

.stat-number {
    font-size: 42px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1 !important;
    visibility: visible !important;
}

/* افکت پله‌ای برای کارت‌های خدمات */
.service-card:nth-child(3n+1) {
    transform: translateY(-15px);
}

.service-card:nth-child(3n+2) {
    transform: translateY(0px);
}

.service-card:nth-child(3n+3) {
    transform: translateY(15px);
}

/* حفظ افکت پله‌ای در hover */
.service-card:nth-child(3n+1):hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(201, 160, 99, 0.3);
    border-color: var(--primary-color);
}

.service-card:nth-child(3n+2):hover {
    transform: translateY(0px) scale(1.02);
    box-shadow: 0 20px 50px rgba(201, 160, 99, 0.3);
    border-color: var(--primary-color);
}

.service-card:nth-child(3n+3):hover {
    transform: translateY(15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(201, 160, 99, 0.3);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 160, 99, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
}

.service-card:hover::before {
    animation: shine 0.8s ease;
}

@keyframes shine {
    0% {
        top: -50%;
        right: -50%;
    }
    100% {
        top: 150%;
        right: 150%;
    }
}

/* Hover styles برای service-card در nth-child تعریف شده */

.service-icon-software {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid #f0f0f0;
}

.service-card:hover .service-icon-software {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(201, 160, 99, 0.3);
}

.service-icon-software img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-icon-software i {
    font-size: 48px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.service-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.service-badge {
    display: block;
    padding: 10px 24px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 auto;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(201, 160, 99, 0.3);
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
    font-size: 12px;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    opacity: 1 !important;
    visibility: visible !important;
}

/* افکت پله‌ای برای نمونه کارها */
.portfolio-item:nth-child(3n+1) {
    transform: translateY(-15px);
}

.portfolio-item:nth-child(3n+2) {
    transform: translateY(0px);
}

.portfolio-item:nth-child(3n+3) {
    transform: translateY(15px);
}

/* حفظ افکت پله‌ای در hover */
.portfolio-item:nth-child(3n+1):hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.portfolio-item:nth-child(3n+2):hover {
    transform: translateY(0px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.portfolio-item:nth-child(3n+3):hover {
    transform: translateY(15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Hover styles برای portfolio-item در nth-child تعریف شده */

.portfolio-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 15px;
}

.portfolio-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.portfolio-cta {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-info h3 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-items {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-item:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: var(--white);
}

.contact-details h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-social h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.social-links-contact {
    display: flex;
    gap: 15px;
}

.social-links-contact a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-links-contact a:hover {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Yekan Bakh', 'Vazirmatn', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.form-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--white);
    padding: 50px;
    text-align: center;
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
}

.form-success.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.form-success i {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.form-success p {
    font-size: 16px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo i {
    font-size: 48px;
    color: var(--primary-color);
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-logo p {
    color: #999;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #999;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
        min-height: 320px;
    }
    
    /* افکت پله‌ای در تبلت - 2 ستونه */
    .service-card:nth-child(odd) {
        transform: translateY(-10px);
    }
    
    .service-card:nth-child(even) {
        transform: translateY(10px);
    }
    
    .service-card:nth-child(odd):hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .service-card:nth-child(even):hover {
        transform: translateY(10px) scale(1.02);
    }
    
    .portfolio-item:nth-child(odd) {
        transform: translateY(-10px);
    }
    
    .portfolio-item:nth-child(even) {
        transform: translateY(10px);
    }
    
    .portfolio-item:nth-child(odd):hover {
        transform: translateY(-10px) scale(1.03);
    }
    
    .portfolio-item:nth-child(even):hover {
        transform: translateY(10px) scale(1.03);
    }

    .service-icon-software {
        width: 90px;
        height: 90px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
    }

    .portfolio-image {
        height: 280px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 40px 40px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
        min-height: auto;
    }
    
    /* حذف افکت پله‌ای در موبایل - 1 ستونه */
    .service-card:nth-child(n) {
        transform: translateY(0) !important;
    }
    
    .service-card:hover {
        transform: scale(1.02) !important;
    }
    
    .portfolio-item:nth-child(n) {
        transform: translateY(0) !important;
    }
    
    .portfolio-item:hover {
        transform: scale(1.02) !important;
    }

    .service-icon-software {
        width: 100px;
        height: 100px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .service-card p {
        font-size: 15px;
    }
    
    .portfolio-image {
        height: 250px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 140px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .about-text {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-text .btn {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
    }
    
    .about-image {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .about-image .image-frame {
        width: 100%;
        max-width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

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

    .floating-card {
        padding: 15px 20px;
    }

    .floating-card i {
        font-size: 24px;
    }

    .floating-card span {
        font-size: 14px;
    }
}

