/* ============================================
   GLOBAL VARIABLES
   ============================================ */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --gold: #e94560;
    --gold-light: #ff6b6b;
    --text-light: #eaeaea;
    --text-muted: #a0a0a0;
    --card-bg: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.1);
}

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

/* ============================================
   BODY & BASE
   ============================================ */
body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.8;
}

/* English page font */
html[dir="ltr"] body {
    font-family: 'Inter', sans-serif;
}

/* Particles Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 50px;
    background: rgba(15, 15, 30, 0.98);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* RTL underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* LTR underline animation */
html[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-switch:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
}

.lang-switch i {
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 50px 80px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s both;
}

html[dir="ltr"] .hero h1 {
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.4s both;
    min-height: 2rem;
}

.cursor {
    color: var(--gold);
    animation: blink 1s infinite;
}

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

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 2;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 100px 50px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 25px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon-box {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3);
    position: relative;
}

.about-icon-box::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 30px;
    z-index: -1;
}

html[dir="ltr"] .about-icon-box::before {
    right: auto;
    left: -15px;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--gold);
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.about-tag {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.about-tag:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--gold-light));
    border-radius: 3px;
}

html[dir="ltr"] .experience-timeline::before {
    right: auto;
    left: 0;
}

.experience-item {
    position: relative;
    padding-right: 50px;
    padding-bottom: 50px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

html[dir="ltr"] .experience-item {
    padding-right: 0;
    padding-left: 50px;
    transform: translateX(-50px);
}

.experience-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.experience-item::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

html[dir="ltr"] .experience-item::before {
    right: auto;
    left: -8px;
}

.experience-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateX(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.1);
}

html[dir="ltr"] .experience-card:hover {
    transform: translateX(10px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.experience-date {
    background: rgba(233, 69, 96, 0.15);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.experience-company {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.experience-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.experience-duties {
    list-style: none;
}

.experience-duties li {
    position: relative;
    padding-right: 10px;
    margin-bottom: 10px;
    margin-right: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

html[dir="ltr"] .experience-duties li {
    padding-right: 0;
    padding-left: 10px;
    margin-right: 0;
    margin-left: 20px;
}

.experience-duties li::before {
    content: '-';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--gold);
}

html[dir="ltr"] .experience-duties li::before {
    right: auto;
    left: 0;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(233, 69, 96, 0.15);
}

.education-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.education-degree {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-light);
}

.education-school {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 5px;
}

.education-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.education-year {
    display: inline-block;
    background: rgba(233, 69, 96, 0.15);
    color: var(--gold);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.skill-card:hover::after {
    width: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

html[dir="ltr"] .skill-header {
    flex-direction: row;
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.skill-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
}

.skill-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(233, 69, 96, 0.1);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   LANGUAGES SECTION
   ============================================ */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.language-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.language-card:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

.language-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.language-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.language-level {
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(15, 52, 96, 0.2));
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
    display: block;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 15px;
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-value {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.3);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

html[dir="ltr"] .scroll-top {
    right: auto;
    left: 30px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

html[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 30, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    html[dir="ltr"] .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }

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

    .about-icon-box {
        width: 180px;
        height: 180px;
        font-size: 5rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .experience-timeline::before {
        right: 10px;
    }

    html[dir="ltr"] .experience-timeline::before {
        right: auto;
        left: 10px;
    }

    .experience-item {
        padding-right: 40px;
    }

    html[dir="ltr"] .experience-item {
        padding-right: 0;
        padding-left: 40px;
    }

    .experience-item::before {
        right: 2px;
    }

    html[dir="ltr"] .experience-item::before {
        right: auto;
        left: 2px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    html[dir="ltr"] .scroll-top {
        right: auto;
        left: 20px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 1.5rem;
    }

    html[dir="ltr"] .whatsapp-float {
        left: auto;
        right: 20px;
    }

    .lang-switch {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}
