/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f4f6f9;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
header {
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #e94560;
}

/* قسم الترحيب */
.hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    opacity: 0.8;
}

/* قسم المشاريع */
.projects {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #e94560;
    margin: 10px auto 0;
    border-radius: 5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card h3 {
    padding: 15px 20px 5px;
    font-size: 22px;
    color: #1a1a2e;
}

.project-card p {
    padding: 0 20px 15px;
    color: #555;
    font-size: 15px;
}

.project-card a {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 25px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.project-card a:hover {
    background: #c73652;
    transform: scale(1.05);
}

/* الفوتر */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}
/* ========== صفحة عني ========== */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-content h2 {
    font-size: 36px;
    color: #1a1a2e;
}

.about-title {
    font-size: 20px;
    color: #e94560;
    font-weight: 600;
    margin: 10px 0 20px;
}

.about-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 15px;
}

.skills h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.skill-tag {
    background: #f0f0f5;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    transition: 0.3s;
}

.skill-tag:hover {
    background: #e94560;
    color: white;
    transform: scale(1.05);
}

.about-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #c73652;
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid #1a1a2e;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #1a1a2e;
    color: white;
}

/* ========== صفحة التواصل ========== */
.contact-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.info-item:hover {
    background: #f8f9fa;
}

.info-item .icon {
    font-size: 28px;
}

.info-item h4 {
    font-size: 16px;
    color: #888;
    margin-bottom: 3px;
}

.info-item p {
    color: #1a1a2e;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f5;
}

.social-links a {
    padding: 8px 20px;
    background: #f0f0f5;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: 0.3s;
}

.social-links a:hover {
    background: #e94560;
    color: white;
}

/* نموذج التواصل */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e94560;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    font-size: 18px;
    padding: 15px;
}

/* ========== استجابة للموبايل ========== */
@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .about-buttons {
        justify-content: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 30px;
    }
}