/* ===============================================
   Global Styles & Variables
   =============================================== */
:root {
    --primary-color: #0150a5;
    --primary-dark: #013d85;
    --primary-light: #0260c5;
    --accent-color: #ffd700;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e0e0e0;
    --dark-gray: #333333;
    --text-dark: #1a1a1a;
    --shadow-sm: 0 2px 10px rgba(1, 80, 165, 0.1);
    --shadow-md: 0 5px 20px rgba(1, 80, 165, 0.15);
    --shadow-lg: 0 10px 40px rgba(1, 80, 165, 0.2);
    --shadow-xl: 0 20px 60px rgba(1, 80, 165, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-gray);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===============================================
   Loading Screen
   =============================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-content h2 {
    font-size: 2rem;
    font-weight: 700;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===============================================
   Particles Background
   =============================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-200px) translateX(-50px); }
    75% { transform: translateY(-100px) translateX(100px); }
}

/* ===============================================
   Navigation
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(1, 80, 165, 0.98);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.brand-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===============================================
   Hero Section
   =============================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.8s ease-out;
}

.hero-label i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.hero-roles {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    animation: slideInRight 0.8s ease-out 0.4s backwards;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.role-item i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.role-divider {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 700px;
    animation: slideInRight 0.8s ease-out 0.6s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.8s backwards;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 1s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button span,
.cta-button i {
    position: relative;
    z-index: 1;
}

.cta-button.primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    animation: slideInUp 0.8s ease-out 1.2s backwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInLeft 0.8s ease-out;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.profile-badge i {
    color: var(--accent-color);
}

.profile-info {
    color: var(--white);
    margin-bottom: 25px;
}

.profile-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.profile-info p {
    opacity: 0.9;
    font-size: 1rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px) rotate(5deg);
    border-color: var(--accent-color);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
    animation: floatElement 4s ease-in-out infinite;
}

.float-element:nth-child(2) {
    animation-delay: 1s;
}

.float-element:nth-child(3) {
    animation-delay: 2s;
}

.float-element:nth-child(4) {
    animation-delay: 3s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   Section Headers
   =============================================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/* ===============================================
   About Section
   =============================================== */
.about-section {
    padding: 120px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    gap: 40px;
}

.about-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 50px;
    border-radius: 25px;
    color: var(--white);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.about-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.95;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--light-gray);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-box p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===============================================
   Expertise Section
   =============================================== */
.expertise-section {
    padding: 120px 0;
    background: var(--light-gray);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
}

.expertise-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border-right: 5px solid var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.expertise-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: var(--white);
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.expertise-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.expertise-card ul {
    list-style: none;
    padding: 0;
}

.expertise-card li {
    padding: 12px 0;
    padding-right: 30px;
    color: var(--dark-gray);
    line-height: 1.7;
    position: relative;
    border-bottom: 1px solid var(--gray);
}

.expertise-card li:last-child {
    border-bottom: none;
}

.expertise-card li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.2rem;
}

/* ===============================================
   Experience Timeline
   =============================================== */
.experience-section {
    padding: 120px 0;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    padding-right: 100px;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    right: -80px;
    top: 35px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    right: 26px;
    top: 40px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border: 5px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.timeline-content {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.company-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
}

.timeline-info {
    flex: 1;
}

.timeline-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-info h4 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-date i {
    color: var(--accent-color);
}

.timeline-body {
    padding-top: 20px;
    border-top: 2px dashed var(--gray);
}

.achievement-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    padding: 12px 0;
    padding-right: 35px;
    color: var(--dark-gray);
    line-height: 1.8;
    position: relative;
    font-size: 1.05rem;
}

.responsibilities li i {
    position: absolute;
    right: 0;
    top: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.companies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    color: var(--dark-gray);
    font-size: 1.05rem;
    border-right: 3px solid var(--primary-color);
}

.company-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* ===============================================
   Skills Section
   =============================================== */
.skills-section {
    padding: 120px 0;
    background: var(--light-gray);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.skills-category {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.skill-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.skill-bar {
    height: 12px;
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-item.visible .skill-progress {
    width: var(--progress-width);
}

/* Certifications */
.certifications {
    background: var(--primary-color);
    padding: 60px;
    border-radius: 25px;
    color: var(--white);
}

.certifications-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.certifications-title i {
    font-size: 2.5rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.cert-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.cert-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===============================================
   Achievements Section
   =============================================== */
.achievements-section {
    padding: 120px 0;
    background: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.achievement-card {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border-right: 5px solid var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.achievement-card.premium {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-right: 5px solid var(--accent-color);
}

.achievement-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.achievement-card.premium .achievement-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.achievement-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.achievement-card.premium h3 {
    color: var(--accent-color);
}

.achievement-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.achievement-card.premium p {
    color: var(--white);
    opacity: 0.95;
}

.achievement-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.client-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.client-tag i {
    color: var(--accent-color);
}

/* ===============================================
   Contact Section
   =============================================== */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.contact-section .section-label {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), var(--white));
}

.contact-section .section-subtitle {
    color: var(--white);
    opacity: 0.95;
}

.contact-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px;
    border-radius: 20px;
    color: var(--white);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-8px);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.contact-info-card p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.nationality {
    font-size: 1rem;
    opacity: 0.85;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.info-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.contact-form-section {
    background: var(--white);
    padding: 45px;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
}

.form-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group label i {
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(1, 80, 165, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===============================================
   Footer
   =============================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.footer-brand p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer .social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    opacity: 0.9;
    font-size: 1rem;
}

/* ===============================================
   Scroll to Top Button
   =============================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===============================================
   Responsive Design
   =============================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--primary-dark);
        flex-direction: column;
        padding: 30px 20px;
        gap: 10px;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-roles {
        flex-direction: column;
        gap: 15px;
    }
    
    .role-divider {
        display: none;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .image-placeholder {
        font-size: 90px;
    }
    
    .timeline::before {
        right: 20px;
    }
    
    .timeline-item {
        padding-right: 70px;
    }
    
    .timeline-item::before {
        font-size: 0.75rem;
        padding: 8px 12px;
        right: -75px;
    }
    
    .timeline-item::after {
        right: 5px;
        width: 25px;
        height: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        padding: 25px;
    }
    
    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
}
/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    gap: 10px;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 20px;
    margin-right: 0;
}

html[dir="ltr"] .lang-switcher {
    margin-right: 20px;
    margin-left: 0;
}

.lang-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff !important;  /* أبيض ثابت */
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lang-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* التأكد من أن كل النصوص بيضاء */
#home h1 {
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html[dir="rtl"] .lang-switcher {
        margin-left: 10px;
    }

    html[dir="ltr"] .lang-switcher {
        margin-right: 10px;
    }
}
