/* --- Global & Resets --- */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #fdfdff;
    --bg-dark-section: #2d3748;
    /* --- تغيير هنا --- */
    --font-primary: 'SaudiWeb', sans-serif; /* استخدم الخط الجديد للعناوين */
    --font-secondary: 'SaudiWeb', sans-serif; /* استخدم الخط الجديد للنصوص */
    /* ------------- */
}

@font-face {
  font-family: 'SaudiWeb'; /* اسم تختاره للخط */
  src: url('../font/SaudiWeb-Regular.woff2') format('woff2'), /* المسار النسبي من ملف CSS إلى ملف الخط - WOFF2 أولاً للأداء */
       url('../font/SaudiWeb-Regular.woff') format('woff'); /* ملف WOFF كبديل */
  font-weight: 400; /* أو normal - تأكد من أنه يطابق وزن الخط */
  font-style: normal;
  font-display: swap; /* يحسن تجربة المستخدم أثناء تحميل الخط */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
}

.page-wrapper {
    overflow-x: hidden; /* Prevent horizontal scroll caused by diagonal elements */
}

.container {
    /* Keep Bootstrap container behavior */
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* Adjusted for RTL */
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--primary-color); /* Use primary color */
    color: var(--text-light);
    padding: 6rem 0 8rem 0; /* Increased padding, more space at bottom for diagonal */
    position: relative;
    min-height: 80vh; /* Make hero section tall */
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out image and info */
    gap: 3rem; /* Gap between image and info */
}

.hero-image-wrapper {
    flex-basis: 35%; /* Image takes less space */
    text-align: center; /* Center image within its wrapper */
}

.hero-image img {
    width: 220px; /* Larger image */
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg-light); /* White border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease-out;
}
.hero-image img:hover {
     transform: scale(1.05) rotate(3deg);
}

.hero-info {
    flex-basis: 60%; /* Info takes more space */
}

.hero-name {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.2;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 300; /* Lighter weight for title */
    color: var(--secondary-color); /* Use accent color */
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.1rem;
    font-family: var(--font-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 550px; /* Limit bio width */
    line-height: 1.8;
}

.hero-contact-icons a {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    margin: 0 0.7rem;
    transition: all 0.3s ease;
}
.hero-contact-icons a:first-child { margin-right: 0.7rem; } /* Adjust for RTL */
.hero-contact-icons a:last-child { margin-left: 0.7rem; }

.hero-contact-icons a:hover {
    color: var(--text-light);
    transform: scale(1.2); /* Pop effect */
}

/* Diagonal Separator */
.diagonal-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Height of the diagonal area */
    background-color: var(--bg-light); /* Must match the next section's background */
    clip-path: polygon(0 100%, 100% 0, 100% 100%); /* Creates the diagonal cut */
    /* For RTL, you might adjust the clip-path if needed, but this usually works */
}

/* --- Unique Links Section --- */
.unique-links-section {
    padding: 6rem 0;
    background-color: var(--bg-light); /* Match diagonal separator */
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
}

.unique-link-item {
    display: flex;
    align-items: center;
    background-color: #ffffff; /* White cards */
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden; /* For hover effect */
}

.unique-link-item::before { /* Background slide effect on hover */
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Start from right for RTL */
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.1;
    transition: width 0.4s ease-out;
    z-index: 0;
}

.unique-link-item:hover::before {
    width: 100%;
}

.unique-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.unique-link-item .link-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-left: 1rem; /* Space after icon (RTL) */
    flex-shrink: 0;
    position: relative; /* Ensure icon is above ::before */
    z-index: 1;
}

.unique-link-item .link-text {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-dark);
    flex-grow: 1;
    margin-right: 1rem; /* Space before arrow (RTL) */
    position: relative;
    z-index: 1;
}

.unique-link-item .link-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.unique-link-item:hover .link-arrow {
    transform: translateX(-5px); /* Move arrow slightly on hover (adjust direction for RTL if needed) */
}

/* --- Simplified Jump Section --- */
.jump-section-simplified {
    padding: 3rem 0;
    background-color: #f1f3f5; /* Slightly different light grey */
}
.jump-section-simplified .form-control {
     border-radius: 20px; /* Rounded input */
}
.jump-section-simplified .btn {
     border-radius: 20px; /* Rounded button */
}


/* --- Unique Footer --- */
.site-footer-unique {
    padding: 2rem 0;
    background-color: var(--bg-dark-section); /* Dark footer */
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

/* --- Responsiveness --- */
@media (max-width: 991.98px) { /* Tablets */
    .hero-content {
        flex-direction: column; /* Stack image and info */
        text-align: center; /* Center text when stacked */
    }
    .hero-image-wrapper, .hero-info {
        flex-basis: 100%; /* Take full width */
    }
    .hero-image img {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }
    .hero-name {
        font-size: 2.8rem;
    }
    .hero-title {
        font-size: 1.3rem;
    }
     .hero-section {
        padding: 4rem 0 6rem 0;
        min-height: auto; /* Adjust height */
    }
    .diagonal-separator {
        height: 60px; /* Make diagonal smaller on smaller screens */
    }
    .unique-links-section {
         padding: 4rem 0;
    }
}

@media (max-width: 767.98px) { /* Mobile */
     .hero-name {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 1.1rem;
    }
    .hero-bio {
        font-size: 1rem;
    }
    .hero-contact-icons a {
        font-size: 1.3rem;
        margin: 0 0.5rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .links-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .unique-link-item {
         padding: 1rem 1.2rem;
    }
     .unique-links-section, .jump-section-simplified {
        padding: 3rem 0;
    }
}