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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #000000 25%, #CE1126 25%, #CE1126 50%, #FFFFFF 50%, #FFFFFF 75%, #007A3D 75%, #007A3D 100%);
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #CE1126 0%, #007A3D 50%, #000000 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(206, 17, 38, 0.2);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 50%, #FFFFFF 100%);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    padding: 2rem 0;
}

section {
    background: #ffffff;
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

section:hover {
    border-color: #e9ecef;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-section {
    border-left: 5px solid #CE1126;
    background: linear-gradient(135deg, #ffffff 0%, rgba(206, 17, 38, 0.02) 100%);
}

.summary-section {
    border-left: 5px solid #007A3D;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 122, 61, 0.02) 100%);
}

.links-section {
    border-left: 5px solid #000000;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 0, 0, 0.02) 100%);
}

.skills-section {
    border-left: 5px solid #CE1126;
    background: linear-gradient(135deg, #ffffff 0%, rgba(206, 17, 38, 0.02) 100%);
}

.interactive-section {
    border-left: 5px solid #007A3D;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 122, 61, 0.02) 100%);
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
    font-weight: 600;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #CE1126 0%, #007A3D 50%, #000000 100%);
    border-radius: 2px;
}

.info-section h2 {
    color: #CE1126;
}

.summary-section h2 {
    color: #007A3D;
}

.links-section h2 {
    color: #000000;
}

.skills-section h2 {
    color: #CE1126;
}

.interactive-section h2 {
    color: #007A3D;
}

section h3 {
    color: #007A3D;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    margin: 0 auto 1.5rem;
    display: block;
    transition: all 0.3s ease;
}

.profile-img:hover {
    border-color: #CE1126;
    box-shadow: 0 8px 25px rgba(206, 17, 38, 0.1);
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #007A3D;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #CE1126;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #007A3D 0%, #CE1126 100%);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.external-link {
    display: inline-block;
    background: linear-gradient(135deg, #CE1126 0%, #007A3D 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

.external-link:hover {
    background: linear-gradient(135deg, #007A3D 0%, #000000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 61, 0.4);
}

.external-link:hover::after {
    display: none;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    text-align: center;
}

.contact-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-item h4 {
    color: #CE1126;
    margin-bottom: 0.5rem;
}

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

.skill-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.skill-category h4 {
    color: #007A3D;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-list {
    list-style: none;
    margin-left: 0;
}

.skill-list li {
    background: white;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

footer {
    background: linear-gradient(135deg, #000000 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #000000 25%, #CE1126 25%, #CE1126 50%, #FFFFFF 50%, #FFFFFF 75%, #007A3D 75%, #007A3D 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-palestine {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    width: 100%;
}

.palestine-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    direction: rtl;
    color: #CE1126;
}

.hope-message {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #007A3D;
}

.palestinian-symbols {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.palestinian-symbols span {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.palestinian-symbols span:hover {
    transform: scale(1.1);
}

footer p {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .external-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .external-links {
        flex-direction: column;
        align-items: center;
    }
    
    .external-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .skills-table {
        font-size: 0.9rem;
    }
    
    .skills-table th,
    .skills-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .input-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .skills-table {
        font-size: 0.8rem;
    }
    
    .skills-table th,
    .skills-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .input-container input,
    .input-container select,
    .input-container button {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .external-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 0.75rem;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .skills-table th,
    .skills-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
}

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

section {
    animation: fadeInUp 0.6s ease-out;
}

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

.text-left {
    text-align: left;
}

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skills-table th,
.skills-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.skills-table th {
    background: linear-gradient(135deg, #CE1126 0%, #007A3D 50%, #000000 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: 0 2px 10px rgba(206, 17, 38, 0.2);
}

.skills-table tbody tr:nth-child(odd) {
    background-color: rgba(206, 17, 38, 0.03);
}

.skills-table tbody tr:nth-child(even) {
    background-color: rgba(0, 122, 61, 0.03);
}

.skills-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1) 0%, rgba(0, 122, 61, 0.1) 100%) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.1);
}

.skills-table tr:last-child td {
    border-bottom: none;
}

.personal-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.personal-info strong {
    color: #CE1126;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(206, 17, 38, 0.1);
}

.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.interactive-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.input-container label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.input-container input,
.input-container select {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.input-container input:focus,
.input-container select:focus {
    outline: none;
    border-color: #007A3D;
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.1);
    transform: translateY(-1px);
}

.input-container button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #CE1126 0%, #007A3D 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

.input-container button:hover {
    background: linear-gradient(135deg, #007A3D 0%, #000000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 61, 0.4);
}

.input-container button:active {
    transform: translateY(0);
}

.summary-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.info-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.links-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.skills-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.palestinian-elements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.cultural-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #CE1126;
    transition: all 0.3s ease;
}

.cultural-item:hover {
    background: #ffffff;
    border-left-color: #007A3D;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cultural-item .icon {
    font-size: 1.3rem;
    color: #007A3D;
}

.cultural-item span:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.palestine-tribute {
    background: #f8f9fa;
    text-align: center;
    position: relative;
    border: 1px solid #e9ecef;
}

.tribute-content {
    position: relative;
}

.arabic-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    direction: rtl;
    color: #CE1126;
}

.translation {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #007A3D;
}

.symbols {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.symbol {
    font-size: 1.5rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.symbol:hover {
    transform: scale(1.1);
}