/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    color: #fff;
}

#logg {
    color: #0077b6;
}


#logg-2 {
    color: #00b4d8;
}

/* naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaav */
.navbar {
    position: fixed;
    /* ثابت */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}


.logo {
    font-size: 26px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color .3s;
}

.nav-links a:hover {
    color: #d1d1d1;
}

/* زر المزيد */
.more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0d6efd;
    padding: 6px 12px;
    margin-left: 40px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    margin-inline-start: 10px;
    /* يبعد الزر شوية عن الحافة */

}

.more-btn:hover {
    background: #f1f1f1;
}

.menu-icon {
    font-size: 20px;
}

/* السايدبار يطلع من الشمال */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 250px;
    height: 100%;
    background: #3958e0;
    color: #fff;
    padding: 20px;
    transition: transform .4s ease;
    z-index: 1200;
    box-shadow: -2px 0 10px rgba(0, 0, 0, .2);
    padding-left: 30px;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar h3 {
    margin-bottom: 20px;
}

.sidebar a {
    padding-bottom: 8px;
    padding-top: 8px;
    display: block;
    margin: 12px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color .3s;
}

.sidebar a:hover {
    color: #d1d1d1;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 20px
}

/* Overlay لتعتيم الخلفية وإلتقاط الضغطات */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1150;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* رسبونسف */
@media (max-width: 768px) {
    .nav-links a {
        display: none;
    }

    .logo {
        position: relative;
        font-size: 30px;
    }

    .menu-icon {
        font-size: 12px;
    }

    .more-btn {
        font-size: 12px;
    }
}

/* naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaav */

/* Sections */
section {
    min-height: 100vh;
    padding: 190px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
}

section:nth-child(odd) {
    background: linear-gradient(135deg, #1b263b, #415a77);
}

/* Hero */
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
}

.hero .p123 {
    max-width: 600px;
    margin-bottom: 20px;
}

.hero .profile-pic {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #00b4d8;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    /* background */
}

.btn:hover {
    background: #0077b6;
}

/* What I Do */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.service-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.service-box i {
    font-size: 30px;
    color: #00b4d8;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 16px;
    margin-top: 10px;
    color: #ddd;
}

#resume-p {
    font-size: 20px;
    padding: 5px;
    font-weight: 400;
}

.service-box:hover {
    transform: translateY(-5px);
}

/* Resume */
.resume-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    margin-top: 30px;
}

/* Contact */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #00b4d8;
}

/* Headings */
section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#ss {
    color: #0077b6;
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        height: auto;
        flex-direction: row;
    }

    .logo {
        font-size: 18px;
        margin-right: 10px;
    }

    .menu-icon {
        font-size: 10px;
    }

    .more-btn {
        font-size: 10px;
    }

    .sidebar {
        width: 180px;
    }

    .social-links a {
        font-size: 22px;
    }
}

@media (max-width: 344px) {
    .logo {
        font-size: 14px;
    }
}



.nav-links.active {
    display: flex;
}

.navbar {
    flex-wrap: wrap;
    justify-content: space-between;
}

.logo {
    margin-bottom: 10px;
}

.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background-color: #415a77;
    font-weight: 300;
}

#devs {
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#spsp {
    font-weight: 400;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}


#pp1234 {
    margin-top: -15px;
    font-weight: 300;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #1b263b;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;

}

.p123 {
    font-size: 19px;
    margin-top: 20px;
}