/* ============ FONT FACE - LOCAL FONTS ============ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

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

:root {
    --primary-blue: #0ea5e9;
    --light-blue: #38bdf8;
    --sky-blue: #7dd3fc;
    --dark-blue: #0284c7;
    --primary-green: #10b981;
    --light-green: #34d399;
    --dark-green: #059669;
    --white: #ffffff;
    --light-bg: #f0f9ff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.08);
    --shadow-md: 0 8px 24px rgba(14, 165, 233, 0.12);
    --shadow-lg: 0 16px 40px rgba(14, 165, 233, 0.16);
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-light: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.logo-icon {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 6px;
    background: var(--light-bg);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gradient-main);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 3px;
    transition: 0.3s;
}

/* ============ HERO SECTION ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-green);
    bottom: 50px;
    left: -80px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--light-blue);
    top: 50%;
    right: 10%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-name {
    font-size: 3.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-full {
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-green);
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.image-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: var(--shadow-lg);
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.icon-1 { top: 10px; right: 10px; animation-delay: 0s; }
.icon-2 { bottom: 40px; left: -20px; animation-delay: 0.5s; }
.icon-3 { top: 50%; right: -30px; animation-delay: 1s; }

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

/* ============ SECTION HEADER (shared) ============ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--dark-blue);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* ============ ABOUT SECTION ============ */
.about {
    padding: 100px 0;
    background: white;
}

.about-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--light-bg);
    padding: 22px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--sky-blue);
}

.info-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-available {
    color: var(--primary-green);
}

/* ============ SKILLS SECTION ============ */
.skills {
    padding: 100px 0;
    background: var(--gradient-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background: white;
    padding: 32px 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.skill-card h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.skill-bar {
    height: 8px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* ============ APPS SECTION ============ */
.apps {
    padding: 100px 0;
    background: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.app-card {
    background: var(--light-bg);
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.app-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.app-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
}

.app-name {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.app-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.app-btn {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    transition: all 0.3s;
}

.app-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* ============ CONTACT SECTION ============ */
.contact {
    padding: 100px 0;
    background: var(--gradient-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: var(--gradient-main);
    padding: 50px 36px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: white;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    opacity: 0.9;
}

.contact-info-item p {
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-form {
    padding: 50px 40px 50px 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

#formMessage {
    margin-bottom: 15px;
}

#formMessage.success {
    background: #d1fae5;
    color: #059669;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

#formMessage.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--text-dark);
    padding: 50px 0 30px;
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-made {
    color: #64748b;
    font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid,
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-form {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 40px 30px;
        gap: 24px;
        transition: right 0.4s;
        box-shadow: var(--shadow-lg);
    }

    body.rtl .nav-links {
        right: -100%;
    }

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

    body.ltr .nav-links {
        right: auto;
        left: -100%;
    }

    body.ltr .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-name {
        font-size: 2.2rem;
    }

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

    .info-grid,
    .skills-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }

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

/* ============ TRUST SEAL (ENAMAD) ============ */
.trust-seals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.enamad-badge {
    width: 100px;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 6px;
    transition: transform 0.3s;
}

.enamad-badge:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .trust-seals {
        flex-wrap: wrap;
    }
    
    .enamad-badge {
        width: 80px;
    }
    
    .badge-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #94a3b8;
}

.badge-placeholder span {
    font-size: 1.8rem;
}

.badge-placeholder small {
    font-size: 0.75rem;
}
}