@font-face {
    font-family: 'IranSans';
    src: url('fonts/IranSans.woff2') format('woff2'),
         url('fonts/IranSans.woff') format('woff'),
         url('fonts/IranSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'IranSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
    background-color: #0B0B0B;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.about-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container a {
    display: inline-block;
}

.logo {
    width: 80px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #850909;
    opacity: 0.8;
}

nav ul li a.active {
    color: #850909;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #850909;
}

/* Hero Section */
.hero-about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
    background: linear-gradient(180deg, #0B0B0B 0%, #1a1a1a 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    direction: rtl;
}

.typewriter-container {
    width: 100%;
    text-align: right;
    direction: rtl;
}

.typewriter-text {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
    line-height: 1.8;
    display: inline-block;
    position: relative;
    max-width: 100%;
}

.typewriter-text::after {
    content: '●';
    color: #850909;
    margin-right: 6px;
    animation: blink 1s infinite;
    display: inline-block;
    font-size: 0.9em;
    vertical-align: baseline;
}

.typewriter-text.typing::after {
    animation: blink 0.8s infinite;
}

.typewriter-text.complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Address Section */
.address-section {
    padding: 120px 40px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0B0B0B 100%);
}

.address-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
    letter-spacing: -1px;
}

.address-text {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Map Section */
.map-section {
    padding: 0 40px 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-embed {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 11, 11, 0.9) 0%, transparent 100%);
    padding: 30px;
    text-align: center;
}

.map-link {
    color: #850909;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.map-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
.about-footer {
    background-color: #0B0B0B;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.instagram-link:hover {
    color: #850909;
    transform: scale(1.1);
}

.instagram-link svg {
    width: 24px;
    height: 24px;
}

.developer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
    text-align: center;
}

.developer-link {
    color: #850909;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    margin-left: 5px;
}

.developer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

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

    .features-grid {
        gap: 40px;
    }

    .feature-card {
        padding: 50px 30px;
    }

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

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .hero-about {
        padding: 100px 20px 60px;
    }

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

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

    .features-section {
        padding: 60px 20px;
    }

    .typewriter-text {
        font-size: 16px;
    }

    .address-section {
        padding: 80px 20px;
    }

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

    .address-text {
        font-size: 18px;
    }

    .map-section {
        padding: 0 20px 80px;
    }

    .map-embed {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 60px;
    }

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

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

    .features-section {
        padding: 40px 15px;
    }

    .typewriter-text {
        font-size: 14px;
    }

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

    .address-text {
        font-size: 16px;
    }

    .map-embed {
        height: 300px;
    }
}

