body {
    margin: 0;
    font-family: Arial;
    background-color: #0f172a;
    color: white;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1e293b;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.logo {
    margin: 0;
}

/* Nav Links */
nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a:focus {
    background-color: #3b82f6;
    /* لون أزرق مميز */
    color: white;
    cursor: pointer;
}

/* Sections */
section {
    padding: 120px 20px;
    text-align: center;
}

/* Home Section Layout */
#home .home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

#home .home-text {
    text-align: left;
}

#home .home-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    margin-top: 0;
}

#home .home-text p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

.home-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    #home .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    #home .home-text {
        text-align: center;
    }
}

/* About Container */
.about-container {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    max-width: 750px;
    line-height: 1.8;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Light accent highlight */
.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.about-container p {
    margin: 0;
    color: #e2e8f0;
}

/* Education Section */
.education-container {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #ec4899);
}

.education-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.education-card .university {
    color: #94a3b8;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.education-card .year {
    color: #3b82f6;
    font-weight: bold;
    margin: 0;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tag {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #e2e8f0;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.4);
}

/* Projects Layout & Cards */
.projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background-color: #1e293b;
    padding: 25px 20px;
    width: 280px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.project-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.95rem;
    font-weight: bold;
}

.project-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: unset;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #e2e8f0;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.4);
}

.education-section {
    text-align: center;
}

.edu-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: 0.3s;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #ec4899);
}

.edu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
}

.edu-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.4rem;
}

.edu-card p {
    color: #94a3b8;
    margin: 6px 0;
}

.experience-section {
    text-align: center;
}

.exp-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #ec4899);
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
}

.exp-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.4rem;
}

.exp-card p {
    color: #94a3b8;
    margin: 6px 0;
}

.exp-card .year {
    color: #3b82f6;
    font-weight: bold;
}