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

@font-face {
    font-family: 'Vazir';
    src: url('./fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('./fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.background {
    width: 100%;
    min-height: 100vh;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-box {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
    border-radius: 20px;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: center;
}

.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.logo-container {
    margin-bottom: 15px;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    max-width: 300px;
    max-height: 180px;
    object-fit: contain;
    display: none;
}

.logo.visible {
    display: block;
}

.logo-placeholder {
    width: 300px;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.logo-placeholder.hidden {
    display: none;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.title {
    font-size: 42px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slogan {
    font-size: 18px;
    color: #000;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.registration-number {
    font-size: 16px;
    color: #000;
    text-align: center;
    margin-top: 2px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reg-label {
    font-weight: 600;
    margin-right: 5px;
}

html[dir="rtl"] .reg-label {
    margin-right: 0;
    margin-left: 5px;
}

.reg-value {
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-info {
    text-align: left;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
}

.contact-item-clickable:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-weight: 600;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: #000;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
}

.contact-item-clickable .contact-value {
    color: #000;
}

.contact-item-clickable:hover .contact-value {
    color: #e0e7ff;
}

.contact-value:hover {
    color: #e0e7ff;
}

.language-switcher {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    padding: 10px 20px;
    color: #ffffff;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Persian (RTL) styles */
html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] .lang-btn {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] .language-switcher {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .contact-item:hover,
html[dir="rtl"] .contact-item-clickable:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .contact-info {
    text-align: right;
}

html[dir="rtl"] .title {
    text-align: center;
}

html[dir="rtl"] .slogan {
    text-align: center;
}

html[dir="rtl"] .logo-container {
    justify-content: center;
}

html[dir="rtl"] .left-section {
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .background {
        align-items: flex-start;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .content-box {
        padding: 30px 20px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .left-section {
        align-items: center;
        text-align: center;
    }
    
    .right-section {
        align-items: center;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .title {
        font-size: 32px;
        text-align: center;
    }
    
    .slogan {
        font-size: 16px;
        text-align: center;
    }
    
    .registration-number {
        font-size: 14px;
    }
    
    .logo-placeholder,

    
    .logo-placeholder {
        width: 150px;
        height: 90px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        padding: 12px;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .contact-icon {
        display: none;
    }
    
    .contact-item .contact-details {
        align-items: center;
        text-align: center;
    }
    
    .contact-value {
        font-size: 14px;
    }
    
    .language-switcher {
        top: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    html[dir="rtl"] .language-switcher {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    html[dir="rtl"] .left-section {
        align-items: center;
    }
    
    html[dir="rtl"] .logo-container {
        justify-content: center;
    }
    
    html[dir="rtl"] .title {
        text-align: center;
    }
    
    html[dir="rtl"] .slogan {
        text-align: center;
    }
    
    html[dir="rtl"] .contact-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content-box {
        padding: 25px 15px;
    }
    
    .content-wrapper {
        gap: 25px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .slogan {
        font-size: 14px;
    }
    
    .registration-number {
        font-size: 12px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .contact-item .contact-details {
        align-items: center;
        text-align: center;
    }
    
    html[dir="rtl"] .contact-item {
        flex-direction: column;
    }
    
    .contact-icon {
        display: none;
    }
    
    html[dir="rtl"] .contact-icon {
        display: none;
    }
}

