/* ===================================
   MODERN PORTFOLIO - ALI ALGAREA
   Bilingual Support (EN/AR)
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --secondary-color: #FF6B35;
    --accent-color: #00D4AA;
    --success-color: #10b981;

    /* Neutrals */
    --dark-900: #0A0E27;
    --dark-800: #1A1F3A;
    --dark-700: #2D3349;
    --gray-600: #6B7280;
    --gray-500: #9CA3AF;
    --gray-400: #D1D5DB;
    --gray-300: #E5E7EB;
    --gray-200: #F3F4F6;
    --gray-100: #F9FAFB;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #F7B731 100%);
    --gradient-dark: linear-gradient(135deg, #0A0E27 0%, #1A1F3A 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Support */
[dir="rtl"] {
    font-family: var(--font-arabic);
}

[dir="ltr"] {
    font-family: var(--font-primary);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 999;
}

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

.lang-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.lang-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.lang-btn i {
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--gray-600);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

[dir="rtl"] .nav-link::before {
    left: auto;
    right: 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-800);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 150px 20px 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 1;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.1;
}

.name-first,
.name-last {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-info {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* Section Styling */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--dark-900);
    margin-bottom: 1rem;
    position: relative;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
.about {
    background: var(--gray-100);
}

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

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--gray-300);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.education-item {
    margin-bottom: 1.5rem;
    padding-left: 25px;
    position: relative;
}

[dir="rtl"] .education-item {
    padding-left: 0;
    padding-right: 25px;
}

.education-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

[dir="rtl"] .education-dot {
    left: auto;
    right: 0;
}

.education-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.education-school {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.education-year {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-800);
    border: 1px solid var(--gray-300);
    transition: var(--transition-base);
}

.interest-tag:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.interest-tag i {
    font-size: 1rem;
}

.language-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.language-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-800);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Experience Section */
.experience {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 80px;
}

.timeline-dot {
    position: absolute;
    left: 23px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 23px;
}

.timeline-content {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--gray-300);
    transition: var(--transition-base);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

[dir="rtl"] .timeline-content:hover {
    transform: translateX(-10px);
}

.timeline-date {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem;
    color: var(--gray-600);
    line-height: 1.7;
}

[dir="rtl"] .timeline-content li {
    padding-left: 0;
    padding-right: 25px;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

[dir="rtl"] .timeline-content li::before {
    content: '←';
    left: auto;
    right: 0;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 2rem;
    text-align: center;
}

.certificates-section,
.activities-section {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--gray-300);
    transition: var(--transition-base);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: var(--white);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.certificate-card:hover .certificate-icon {
    background: var(--white);
}

.certificate-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.certificate-card:hover .certificate-icon i {
    color: var(--primary-color);
}

.certificate-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.certificate-card:hover h4 {
    color: var(--white);
}

.certificate-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.certificate-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-300);
    transition: var(--transition-base);
}

.activity-item:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateX(10px);
}

[dir="rtl"] .activity-item:hover {
    transform: translateX(-10px);
}

.activity-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.activity-item:hover i {
    color: var(--white);
}

/* Skills Section */
.skills {
    background: var(--gray-100);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-300);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-900);
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-list li {
    position: relative;
    padding-left: 25px;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

[dir="rtl"] .skill-list li {
    padding-left: 0;
    padding-right: 25px;
}

.skill-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

[dir="rtl"] .skill-list li::before {
    left: auto;
    right: 0;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--gray-100);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--gray-300);
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: var(--white);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.info-card:hover .info-icon {
    background: var(--white);
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-card:hover .info-icon i {
    color: var(--primary-color);
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.info-card:hover h4 {
    color: var(--white);
}

.info-card a,
.info-card p {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
    word-break: break-word;
}

.info-card:hover a,
.info-card:hover p {
    color: var(--white);
}

.contact-form {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--gray-300);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-900);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-base);
    background: var(--white);
    color: var(--dark-800);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-400);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(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 scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        align-items: flex-start;
    }

    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    [dir="rtl"] .nav-menu.active {
        right: 0;
    }

    .language-switcher {
        top: 80px;
        right: 20px;
    }

    [dir="rtl"] .language-switcher {
        left: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    [dir="rtl"] .timeline::before {
        right: 15px;
    }

    .timeline-dot {
        left: 8px;
    }

    [dir="rtl"] .timeline-dot {
        right: 8px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    [dir="rtl"] .timeline-item {
        padding-right: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}