/* Fonts */
@font-face {
    font-family: 'Manchette';
    src: url('https://eny.sa/fonts/ManchetteFine-Regular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Manchette';
    src: url('https://eny.sa/fonts/ManchetteFine-Heavy.otf') format('opentype');
    font-weight: bold;
}

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #6366f1;
    /* Keeping a subtle accent */
    --card-bg: #111111;
    --font-main: 'Manchette', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utils */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links a {
    font-size: 1.1rem;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-bottom: 4rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap-reverse;
    /* Text on right, image on left (in LTR) -> Image on Right, Text on Left (in RTL) check logic */
}

/* In RTL: Flex start is Right. We want Image Right, Text Left? Or Centered? 
   eny.sa usually has centered or side-by-side. Let's do standard side-by-side.
*/

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 350px;
    height: auto;
    border-radius: 36px;
    /* Matches hint from curl */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.02);
}

.hero-text {
    flex: 1;
    text-align: right;
}

.name-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: bold;
}

.job-title {
    font-size: 2rem;
    color: #888;
    margin-bottom: 2rem;
    font-weight: normal;
}

.bio-text {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
    /* For background positioning */
    overflow: hidden;
    z-index: 1;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/skills.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
    filter: grayscale(100%) contrast(1.2);
    /* Keep it monochrome to match black theme */
}

#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/experience.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
    filter: grayscale(100%) contrast(1.2);
}

#education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/education.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
    filter: grayscale(100%) contrast(1.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.card {
    background-color: rgba(17, 17, 17, 0.7);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-item {
    background: #111;
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.skill-item:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-right: 2px solid #333;
    padding-right: 2rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -2.6rem;
    /* Adjust based on border + padding */
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-content {
    background: rgba(17, 17, 17, 0.7);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(-5px);
    /* Move slightly left in RTL */
    border-color: rgba(255, 255, 255, 0.2);
}

.role-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.company-name {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.duration {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.role-desc {
    color: #ccc;
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #111;
    color: #666;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 70%;
        height: 100vh;
        background-color: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        border-left: 1px solid #222;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Image top, text bottom on mobile? Or standard stack? Let's check eny.sa visual. Usually profile top. */
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .bio-text {
        margin: 0 auto 1.5rem auto;
    }

    .social-icons {
        justify-content: center;
    }

    .name-title {
        font-size: 2.5rem;
    }

    .profile-img {
        width: 250px;
        /* Smaller on mobile */
        margin-bottom: 2rem;
    }

    .job-title {
        font-size: 1.5rem;
    }
}