:root {
    /* Color Palette */
    --primary: #0ea5e9;       /* Modern Light Blue */
    --primary-dark: #0284c7;
    --secondary: #10b981;     /* Modern Green */
    --accent: #d8b4fe;        /* Soft Purple/Lavender */
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    
    /* Font Settings */
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: var(--font-ar);
    text-align: right;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-lang:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
header {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fdf4ff 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.badge {
    background: #e0f2fe;
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    margin: 20px 0;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    opacity: 0.4;
    z-index: -1;
    border-radius: 5px;
}

.hero-text p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.img-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 5px solid white;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blob {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    height: 350px;
    background: var(--secondary);
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    animation: blob-bounce 5s infinite ease-in-out;
}

@keyframes blob-bounce {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0,0); }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-10px, 10px); }
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-top: -30px;
    margin-bottom: 50px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--secondary);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.about-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Frameworks */
.bg-light {
    background-color: #f0f9ff;
}

.frameworks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fw-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
}

.fw-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fw-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }
.fw-icon.blue { background: rgba(14, 165, 233, 0.1); color: var(--primary); }

/* Publications */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pub-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pub-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.pub-card.featured {
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid var(--primary);
    grid-column: 1 / -1;
}

.pub-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 10px;
}

.pub-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pub-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.pub-summary {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-link {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Mobile Responsive */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .img-wrapper {
        width: 250px;
        height: 250px;
    }
    .hero-text p {
        margin: 0 auto 30px;
    }
}