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

:root {
    --purple: #6032ac;
    --purple-bright: #8b5fd8;
    --purple-dark: #3d1f6e;
    --bg: #0a0a0f;
    --surface: #14141a;
    --glass: rgba(20, 20, 26, 0.7);
    --border: rgba(139, 95, 216, 0.15);
    --text: #ffffff;
    --text-muted: #9999aa;
    --success: #10b981;
    --danger: #ef4444;
}

html, body {
    min-height: 100%;
    font-family: 'Sora', sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* Animated Background */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.3;
    animation: drift 30s infinite ease-in-out;
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--purple), transparent);
    top: -20%;
    left: 5%;
}

.glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--purple-bright), transparent);
    bottom: -15%;
    right: 10%;
    animation-delay: -12s;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--purple-dark), transparent);
    top: 35%;
    right: 15%;
    animation-delay: -18s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.15); }
    66% { transform: translate(-40px, 40px) scale(0.85); }
}

.mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 95, 216, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 95, 216, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 0.375rem;
    background: var(--glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.375rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    padding: 0.5rem 1.125rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 100px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-bright));
    box-shadow: 0 6px 24px rgba(96, 50, 172, 0.6);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    animation: fadeIn 0.9s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
}

.logo-box {
    width: 200px;
    height: 200px;
    margin: -10px auto;
    position: relative;
}

.logo-box::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle, rgba(139, 95, 216, 0.35), transparent);
    filter: blur(25px);
    animation: pulse 3.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.logo-box img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 50px rgba(139, 95, 216, 0.8));
    animation: float 4.5s ease-in-out infinite;
}

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

.slogan {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    background: linear-gradient(135deg, var(--text), var(--purple-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    text-shadow: 0 0 50px rgba(139, 95, 216, 0.9);
}

/* Contact Section */
.contact-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.9s ease-out 0.2s both;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 95, 216, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.55s;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--purple-bright);
    box-shadow: 0 35px 80px rgba(96, 50, 172, 0.5);
}

.contact-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple), var(--purple-bright));
    border-radius: 18px;
    font-size: 1.875rem;
    box-shadow: 0 12px 35px rgba(96, 50, 172, 0.6);
    transition: transform 0.55s;
}

.contact-card:hover .card-icon {
    transform: scale(1.2) rotate(8deg);
}

.card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    text-align: start;
}

.card-content span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.card-content strong {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.card-content small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--success);
    width: fit-content;
}

.live-status i {
    font-size: 0.5rem;
    animation: blink 2.5s infinite;
}

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

.live-status.closed {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

/* Social Section */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.9s ease-out 0.4s both;
}

.social-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

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

.social-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--purple), var(--purple-bright));
    border-color: var(--purple-bright);
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 18px 45px rgba(96, 50, 172, 0.6);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(25px);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.94);
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.125rem;
    transition: all 0.35s;
}

.close-btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: rotate(90deg) scale(1.1);
}

.modal-panel h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text), var(--purple-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 95, 216, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.55s;
}

.team-card:hover {
    transform: translateY(-12px);
    border-color: var(--purple);
    box-shadow: 0 35px 80px rgba(96, 50, 172, 0.5);
}

.team-card:hover::before {
    opacity: 1;
}

.team-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.team-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple), var(--purple-bright));
    border-radius: 50%;
    font-size: 2.25rem;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(96, 50, 172, 0.7);
    transition: transform 0.55s;
}

.team-card:hover .team-avatar {
    transform: scale(1.2) rotate(5deg);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.team-card p {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple-bright);
    margin-bottom: 1.75rem;
}

.team-links {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
}

.team-links a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 13px;
    font-size: 1.0625rem;
    transition: all 0.35s;
}

.team-links a:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-4px);
}

/* RTL */
[dir="rtl"] {
    direction: rtl;
    font-family: 'Cairo', 'Sora', sans-serif;
}

[dir="rtl"] .lang-toggle {
    left: 2rem;
    right: auto;
}

[dir="rtl"] .close-btn {
    left: 1.5rem;
    right: auto;
}

[dir="rtl"] .card-content {
    text-align: right;
}

[dir="rtl"] strong[dir="ltr"] {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .card-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 58px;
        height: 58px;
        font-size: 1.625rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 0.875rem 3rem;
        gap: 1.5rem;
        min-height: 100vh;
        overflow-y: auto;
    }

    .logo-box {
        width: 130px;
        height: 130px;
        margin-bottom: -10px;
    }

    .slogan {
        font-size: 0.8125rem;
        letter-spacing: 0.25em;
    }

    .card-row {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .contact-card {
        padding: 0.875rem;
        gap: 0.875rem;
        border-radius: 16px;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
        border-radius: 12px;
    }

    .card-content span {
        font-size: 0.625rem;
    }

    .card-content strong {
        font-size: 0.8125rem;
    }

    .card-content small {
        font-size: 0.625rem;
    }

    .live-status {
        padding: 0.375rem 0.75rem;
        font-size: 0.625rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-panel {
        padding: 1.75rem 1.25rem;
        border-radius: 28px;
    }

    .modal-panel h2 {
        margin-bottom: 2rem;
        font-size: 1.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .team-card {
        padding: 0.875rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.875rem;
        text-align: left;
        border-radius: 16px;
    }

    [dir="rtl"] .team-card {
        text-align: right;
    }

    .team-info {
        flex: 1;
        text-align: left;
    }

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

    .team-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
        margin: 0;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .team-card h3 {
        margin-bottom: 0.125rem;
        font-size: 0.8125rem;
        line-height: 1.25;
    }

    .team-card p {
        margin-bottom: 0.5rem;
        font-size: 0.625rem;
    }

    .team-links {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    [dir="rtl"] .team-links {
        justify-content: flex-start;
    }

    .team-links a {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .lang-toggle {
        top: 0.875rem;
        right: 0.875rem;
        padding: 0.3125rem;
    }

    [dir="rtl"] .lang-toggle {
        left: 0.875rem;
    }

    .lang-btn {
        padding: 0.4375rem 1rem;
        font-size: 0.6875rem;
    }

    .container {
        padding: 1.5rem 0.625rem 3.5rem;
        gap: 1.125rem;
    }

    .logo-box {
        width: 110px;
        height: 110px;
        margin-bottom: -10px;
    }

    .slogan {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
    }

    .contact-card {
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: 14px;
    }

    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .card-content span {
        font-size: 0.5625rem;
    }

    .card-content strong {
        font-size: 0.75rem;
    }

    .card-content small {
        font-size: 0.5625rem;
    }

    .live-status {
        padding: 0.3125rem 0.625rem;
        font-size: 0.5625rem;
        margin-top: 0.5rem;
    }

    .social-section {
        gap: 0.75rem;
    }

    .social-label {
        font-size: 0.75rem;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9375rem;
        border-radius: 12px;
    }

    .modal-panel {
        padding: 1.5rem 1rem;
        border-radius: 24px;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    [dir="rtl"] .close-btn {
        left: 1rem;
    }

    .modal-panel h2 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .team-grid {
        gap: 0.75rem;
    }

    .team-card {
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: 14px;
    }

    .team-avatar {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .team-card h3 {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .team-card p {
        font-size: 0.5625rem;
        margin-bottom: 0.375rem;
    }

    .team-links {
        gap: 0.375rem;
    }

    .team-links a {
        width: 30px;
        height: 30px;
        font-size: 0.6875rem;
        border-radius: 8px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-bright);
}
