/* Root Variables */
:root {
    --primary-color: #6366f1;    /* Indigo that complements purple */
    --secondary-color: #818cf8;  /* Lighter indigo for hover states */
    --text-color: #ffffff;
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --hover-color: #4f46e5;     /* Darker indigo for hover states */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --line-height-normal: 1.6;
    --line-height-heading: 1.3;
    --letter-spacing-normal: 0.01em;
    --letter-spacing-heading: -0.02em;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: var(--line-height-normal);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: var(--letter-spacing-normal);
    background: linear-gradient(135deg, #4a0080 0%, #2d004d 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* RTL Support */
[dir="rtl"] {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

[dir="ltr"] .content-ar {
    display: none !important;
}

[dir="rtl"] .content-en {
    display: none !important;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-block {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-tab {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-tab:hover,
.nav-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Language Switch Button */
.lang-switch {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    text-align: center;
}

.hero-profile {
    margin-bottom: 3rem;
}

.hero-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section .name {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.hero-section .title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-roles {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.role-item:hover {
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.role-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.role-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.about-section h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    padding-bottom: 1rem;
}

.about-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-intro {
    display: flex;
    align-items: start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-intro .hero-image {
    margin: 0;
}

.about-intro p {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.about-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 3rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section h2 i {
    font-size: 1.5rem;
}

.expertise-grid,
.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.expertise-card,
.writing-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.expertise-card:hover,
.writing-card:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.expertise-icon,
.writing-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.expertise-icon i,
.writing-icon i {
    font-size: 1.5rem;
    color: white;
}

.expertise-card strong,
.writing-card strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.expertise-card p,
.writing-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
}

.contact-card {
    width: 100%;
    max-width: 350px;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card .card-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card .card-header i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card .card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-card .card-content {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card .card-content p {
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

/* Footer */
.footer {
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 auto;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--hover-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .nav-content {
        padding-top: 4rem;
    }