/* الخطوط والألوان الأساسية */
:root {
    --primary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --sky-blue: #0ea5e9;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--sky-blue) 0%, var(--light-blue) 100%);
    --font-cairo: 'Cairo', sans-serif;
    --font-tajawal: 'Tajawal', sans-serif;
}

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

body {
    font-family: var(--font-cairo);
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
    background: var(--gradient-primary);
    min-height: 100vh;
}

/* صفحة الترحيب والانيميشن */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 1s ease-in-out;
}

.welcome-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 0;
}

.welcome-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.candidate-image-container {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.candidate-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1.5s ease-out;
    transition: all 0.3s ease;
    opacity: 1;
    display: block;
}

.candidate-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.welcome-text {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.typing-text {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    min-height: 3rem;
    display: inline-block;
    text-align: center;
    width: auto;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0;
    text-align: center;
    display: inline-block;
    width: auto;
    max-width: 100%;
    transition: opacity 0.5s ease;
}

.logo-container {
    opacity: 0;
    animation: slideUp 1s ease-out 3s both;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

/* أنماط الصور الجديدة */
.book-icon-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bookFloat 3s ease-in-out infinite;
}

.book-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.book-img:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.4));
}

.number-badge-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.number-img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(14, 165, 233, 0.4));
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.number-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 35px rgba(14, 165, 233, 0.6));
}

.book-icon {
    width: 80px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 200px;
}

.book-cover {
    position: absolute;
    width: 35px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-radius: 4px 8px 8px 4px;
    right: 0;
    top: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--sky-blue);
    z-index: 3;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: white;
    border-radius: 1px;
    opacity: 0.8;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: white;
    border-radius: 1px;
    opacity: 0.8;
}

.book-pages {
    position: absolute;
    width: 40px;
    height: 50px;
    left: 15px;
    top: 5px;
    z-index: 2;
}

.page {
    position: absolute;
    width: 35px;
    height: 48px;
    background: white;
    border-radius: 2px 6px 6px 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.page-1 {
    transform: rotateY(-15deg);
    z-index: 3;
}

.page-2 {
    transform: rotateY(-8deg);
    z-index: 2;
    opacity: 0.9;
}

.page-3 {
    transform: rotateY(-3deg);
    z-index: 1;
    opacity: 0.8;
}

.page::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: #ccc;
    border-radius: 1px;
}

.page::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 4px;
    right: 8px;
    height: 1px;
    background: #ccc;
    border-radius: 1px;
}

.book-spine {
    position: absolute;
    width: 6px;
    height: 50px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, #1e40af 100%);
    left: 10px;
    top: 5px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.number-badge {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tajawal);
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    border: 4px solid white;
    position: relative;
    animation: pulse 2s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.number-badge::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.hashtag {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.hashtag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.progress-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--sky-blue);
    width: 0;
    border-radius: 2px;
    animation: progressFill 4s ease-out 1s both;
}

/* الموقع الرئيسي */
.main-site {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.main-site.visible {
    opacity: 1;
    transform: translateY(0);
}

/* شريط التنقل */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--primary-blue);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.logo-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* أنماط الصور المصغرة */
.party-logo-mini-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-img-mini {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.party-img-mini:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

.book-icon-mini-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-img-mini {
    width: 35px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.book-img-mini:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

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

.number-img-mini {
    width: 30px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

.number-img-mini:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(14, 165, 233, 0.6));
}

.book-icon-mini {
    width: 40px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 100px;
}

.book-cover-mini {
    position: absolute;
    width: 18px;
    height: 25px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-radius: 2px 4px 4px 2px;
    right: 0;
    top: 2.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--sky-blue);
    z-index: 3;
}

.book-cover-mini::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: white;
    border-radius: 0.5px;
    opacity: 0.8;
}

.book-cover-mini::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: white;
    border-radius: 0.5px;
    opacity: 0.8;
}

.book-pages-mini {
    position: absolute;
    width: 20px;
    height: 25px;
    left: 8px;
    top: 2.5px;
    z-index: 2;
}

.page-mini {
    position: absolute;
    width: 18px;
    height: 24px;
    background: white;
    border-radius: 1px 3px 3px 1px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: 0.5px solid #e0e0e0;
}

.page-mini-1 {
    transform: rotateY(-10deg);
    z-index: 2;
}

.page-mini-2 {
    transform: rotateY(-5deg);
    z-index: 1;
    opacity: 0.9;
}

.page-mini::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 2px;
    right: 2px;
    height: 0.5px;
    background: #ccc;
    border-radius: 0.5px;
}

.page-mini::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 2px;
    right: 4px;
    height: 0.5px;
    background: #ccc;
    border-radius: 0.5px;
}

.book-spine-mini {
    position: absolute;
    width: 3px;
    height: 25px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, #1e40af 100%);
    left: 5px;
    top: 2.5px;
    border-radius: 1.5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.number-mini {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tajawal);
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    border: 2px solid white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--sky-blue);
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* القسم الرئيسي */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* مساحة للـ navbar */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    color: white;
}

.candidate-name {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(-50px);
}

.candidate-number {
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 2px solid white;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
    font-size: 0.7em;
    display: inline-block;
    margin-right: 0.5rem;
}

.candidate-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.nav-number {
    font-weight: 700;
    color: var(--sky-blue);
    font-size: 0.9em;
}

.title-line.smaller {
    font-size: 0.85em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease-out;
}

.title-line.highlight {
    color: var(--sky-blue);
    animation-delay: 0.3s;
}

.title-line.year {
    font-size: 4rem;
    color: var(--sky-blue);
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.party-logo-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
}

.party-logo-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    border-radius: 8px;
}

.party-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}

.hero-hashtag {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    display: inline-block;
}

.hero-hashtag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--sky-blue);
    color: white;
    border: 2px solid var(--sky-blue);
}

.btn-primary:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.image-frame {
    position: relative;
    z-index: 2;
}

.main-candidate-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 1;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.main-candidate-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: -30px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    right: -10px;
    animation-delay: 2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto 10px;
}

/* الأقسام العامة */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-800);
    opacity: 0.8;
}

/* قسم من أنا */
.about-section {
    padding: 6rem 0;
    background: var(--gray-100);
    scroll-margin-top: 80px; /* مساحة للـ navbar عند التنقل */
}

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

.personal-info-full {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-align: center;
    grid-column: 1 / -1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.personal-info-full h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
}

.cv-columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.about-text {
    display: grid;
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* CV Styles */
.personal-info {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.personal-info h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
}

.basic-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-item {
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-item strong {
    color: var(--sky-blue);
}

.cv-section {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--sky-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cv-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cv-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-list li {
    padding: 0.8rem 0;
    color: var(--gray-700);
    line-height: 1.7;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding-right: 1.5rem;
}

.cv-list li:last-child {
    border-bottom: none;
}

.cv-list li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--sky-blue);
    font-weight: bold;
}

.cv-list li strong {
    color: var(--primary-blue);
}

.cv-section-center {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1rem;
    border-left: 4px solid var(--sky-blue);
    transition: all 0.3s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cv-section-center:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cv-section-center h4 {
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.cv-section-center .cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-section-center .cv-list li {
    padding: 0.8rem 0;
    color: var(--gray-700);
    line-height: 1.7;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding-right: 1.5rem;
}

.cv-section-center .cv-list li:last-child {
    border-bottom: none;
}

.cv-section-center .cv-list li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--sky-blue);
    font-weight: bold;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--sky-blue);
    display: block;
}

.stat-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 0.5rem;
}

/* قسم الرؤية */
.vision-section {
    padding: 6rem 0;
    background: white;
    scroll-margin-top: 80px; /* مساحة للـ navbar عند التنقل */
}

.program-intro,
.program-commitment {
    margin: 3rem 0;
    text-align: center;
}

.intro-text,
.commitment-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.intro-text h3,
.commitment-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.intro-text p,
.commitment-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.pillar {
    background: var(--gray-100);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pillar:hover {
    transform: translateY(-10px);
    border-color: var(--sky-blue);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pillar h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.pillar p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0;
    text-align: center;
}

.pillar ul {
    list-style: none;
    margin-top: 1.5rem;
}

.pillar li {
    padding: 0.5rem 0;
    color: var(--gray-800);
    position: relative;
    padding-right: 1.5rem;
}

.pillar li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--sky-blue);
    font-weight: bold;
}

/* باقي الأقسام */
.achievements-section,
.projects-section,
.contact-section {
    padding: 6rem 0;
}

.achievements-section {
    background: var(--gray-100);
}

.projects-section {
    background: white;
}

.contact-section {
    background: var(--gray-100);
    scroll-margin-top: 80px; /* مساحة للـ navbar عند التنقل */
}

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

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-year {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--sky-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* المشاريع المستقبلية */
.projects-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sky-blue);
    transform: translateX(50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--sky-blue);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
}

.timeline-content h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* قسم التواصل */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateX(-5px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-cairo);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
}

/* الفوتر */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.party-logo-footer-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-img-footer {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
    border-radius: 4px;
}

.party-img-footer:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sky-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--sky-blue);
}

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

.social-link {
    background: var(--sky-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-hashtag {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sky-blue);
}

.developers-credit {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developers-credit p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

/* الانيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

img:not(.candidate-image):not(.main-candidate-image):not(.book-img):not(.number-img):not(.book-img-mini):not(.number-img-mini) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.candidate-image,
.main-candidate-image,
.book-img,
.number-img,
.book-img-mini,
.number-img-mini {
    opacity: 1 !important;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typeWriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes bookFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-5px) rotate(1deg);
    }

    66% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(14, 165, 233, 0.6);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6), 0 0 30px rgba(14, 165, 233, 0.4);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }

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

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 15px 15px;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .party-img-mini {
        width: 32px;
    }

    .book-img-mini {
        width: 28px;
    }

    .number-img-mini {
        width: 24px;
    }

    /* Welcome Screen */
    .welcome-screen {
        padding: 1rem;
    }
    
    .welcome-content {
        padding: 1rem;
        max-width: 95%;
    }

    .candidate-image-container {
        margin-bottom: 1.5rem;
    }

    .candidate-image {
        width: 180px;
        height: 180px;
    }

    .typing-text {
        font-size: 2rem;
        min-height: 2.5rem;
        white-space: normal;
        overflow: visible;
        line-height: 1.3;
        word-wrap: break-word;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1rem;
        white-space: normal;
        overflow: visible;
        line-height: 1.4;
        word-wrap: break-word;
        margin-bottom: 1rem;
    }

    .book-img {
        width: 60px;
    }

    .number-img {
        width: 55px;
    }

    .hashtag {
        font-size: 1.4rem;
        padding: 0.5rem 1.2rem;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 100px; /* زيادة المساحة على الموبايل */
        min-height: calc(100vh - 20px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }

    .candidate-name {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
        white-space: normal;
        overflow: visible;
        width: 100%;
        display: block;
        text-align: center;
        background: none;
        -webkit-text-fill-color: white;
        color: white;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .title-line.smaller {
        font-size: 0.75em;
    }

    .title-line.year {
        font-size: 2.2rem;
    }

    .hero-hashtag {
        font-size: 1.1rem;
        padding: 0.3rem 1rem;
    }

    .party-logo-img {
        width: 60px;
    }

    .candidate-number {
        font-size: 0.6em;
        padding: 0.2rem 0.5rem;
        margin-right: 0.2rem;
        display: block;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
        white-space: normal;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .image-frame {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .main-candidate-image {
        max-width: 280px;
        border-radius: 15px;
        border-width: 2px;
        margin: 0 auto;
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Content Sections */
    .container {
        padding: 0 1rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-columns-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-column {
        gap: 1rem;
    }

    .personal-info-full {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .personal-info-full h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .cv-section-center {
        padding: 1.5rem;
        margin-top: 1rem;
        max-width: 100%;
    }

    .cv-section-center h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .cv-section-center .cv-list li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
        padding-right: 1.2rem;
    }

    /* Vision Section */
    .vision-pillars {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .pillar {
        padding: 1.5rem;
        min-height: auto;
    }

    .pillar h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .pillar p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .pillar-icon {
        font-size: 2.5rem;
    }

    .intro-text,
    .commitment-text {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .intro-text h3,
    .commitment-text h3 {
        font-size: 1.6rem;
    }

    .intro-text p,
    .commitment-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* CV Sections */
    .personal-info {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .personal-info h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .basic-info {
        text-align: right;
    }

    .info-item {
        font-size: 1rem;
    }

    .cv-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .cv-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .cv-list li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
        padding-right: 1.2rem;
    }

    /* Contact Section */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .party-img-footer {
        width: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Timeline */
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content {
        margin: 1rem 0;
    }

    .projects-timeline::before {
        display: none;
    }
}


/* Additional Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .candidate-name {
        font-size: 1.6rem;
    }

    .title-line.year {
        font-size: 2rem;
    }

    .main-candidate-image {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .pillar {
        padding: 1.2rem;
    }

    .vision-pillars {
        gap: 1.5rem;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 0.8rem;
    }
}

/* Party Logo Styles */
/* Navigation Party Logo */
.party-logo-nav {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.party-logo-img-nav {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Removed filter to show original colors */
}

.party-logo-img-nav:hover {
    transform: scale(1.05);
}

/* Hero Section Party Logo */
.hero-party-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.party-logo-hero {
    display: flex;
    align-items: center;
}

.party-logo-img-hero {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Removed filter to show original colors */
}

.party-logo-img-hero:hover {
    transform: scale(1.05);
}

.hero-subtitle {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer Party Logo */
.footer-logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.party-logo-footer {
    display: flex;
    align-items: center;
}

.party-logo-img-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Removed filter to show original colors */
}

.party-logo-img-footer:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for party logos */
@media (max-width: 768px) {
    .party-logo-nav {
        margin-left: 10px;
    }
    
    .party-logo-img-nav {
        height: 35px;
    }
    
    .hero-party-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .party-logo-img-hero {
        height: 45px;
    }
    
    .footer-logos-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .party-logo-img-footer {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .party-logo-img-nav {
        height: 30px;
    }
    
    .party-logo-img-hero {
        height: 40px;
    }
    
    .party-logo-img-footer {
        height: 45px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
