/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #181818;
    --text-color: #ffffff;
    --primary-color: #00ff88;
    --secondary-color: #00ff88;
    --accent-color: #00ff88;
    --nav-bg-color: rgba(0, 0, 0, 0.3);
    --nav-text-color: #ffffff;
    --nav-hover-color: rgba(255, 255, 255, 0.1);
    --card-bg-color: rgba(0, 0, 0, 0.3);
    --card-border-color: rgba(255, 255, 255, 0.1);
    --input-bg-color: rgba(255, 255, 255, 0.1);
    --input-text-color: #ffffff;
    --input-border-color: rgba(255, 255, 255, 0.2);
    --button-bg-color: #00ff88;
    --button-text-color: #000000;
    --button-hover-bg-color: #00cc6a;
    --social-icon-color: #ffffff;
    --social-icon-hover-color: #00ff88;
    --section-bg-color: rgba(0, 0, 0, 0.2);
    --scrollbar-track-color: #181818;
    --scrollbar-thumb-color: #00ff88;
    --scrollbar-thumb-hover-color: #00cc6a;
    --text-color-light: rgb(85, 85, 85);
    --container-bg: #fff;
    --border-color: rgb(163, 163, 163);
    --link-color: black;
    --link-hover-color: grey;
    --project-title-color: black;
    --icon-color: #000;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #00ff88;
    --secondary-color: #00ff88;
    --accent-color: #00ff88;
    --nav-bg-color: rgba(255, 255, 255, 0.3);
    --nav-text-color: #333333;
    --nav-hover-color: rgba(0, 0, 0, 0.1);
    --card-bg-color: rgba(255, 255, 255, 0.3);
    --card-border-color: rgba(0, 0, 0, 0.1);
    --input-bg-color: rgba(0, 0, 0, 0.1);
    --input-text-color: #333333;
    --input-border-color: rgba(0, 0, 0, 0.2);
    --button-bg-color: #00ff88;
    --button-text-color: #000000;
    --button-hover-bg-color: #00cc6a;
    --social-icon-color: #333333;
    --social-icon-hover-color: #00ff88;
    --section-bg-color: rgba(255, 255, 255, 0.2);
    --scrollbar-track-color: #ffffff;
    --scrollbar-thumb-color: #00ff88;
    --scrollbar-thumb-hover-color: #00cc6a;
    --text-color-light: rgb(85, 85, 85);
    --container-bg: #fff;
    --border-color: rgb(163, 163, 163);
    --link-color: black;
    --link-hover-color: grey;
    --project-title-color: black;
    --icon-color: #000;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #fff;
    --text-color-light: #ccc;
    --container-bg: #2d2d2d;
    --border-color: #404040;
    --link-color: #fff;
    --link-hover-color: #ccc;
    --project-title-color: #fff;
    --icon-color: #fff;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--text-color-light);
}

/* TRANSITON */

a,
.btn {
    transition: all 300ms ease;
}

/* THEME TOGGLE */

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .icon {
    transform: scale(1.1);
}

/* DESKTOP NAV */

nav,
.nav-links {
    display: flex;
}

nav {
    background-color: transparent;
    box-shadow: none;
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 300ms ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
    text-underline-offset: 1rem;
}

.logo {
    font-size: 2rem;
}

.logo-img {
    width: 150px;
    height: auto;
}

.logo:hover {
    cursor: default
}

/* HUMBURGER MENU  */

#hamburger-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

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

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

#theme-toggle-mobile {
    margin-left: 1rem;
}

/* SECTIONS  */

section {
    padding-top: 4vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* PROFILE SECTIONS  */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.profile-pic {
    aspect-ratio: 1;
    width: 100%;
}

.section__pic-container {
    display: flex;
    width: fit-content;
    max-width: 400px;
    margin: auto 0;
}


.about-pic {
    object-fit: cover;
    aspect-ratio: 1;
    width: 100%;
    border-radius: 2rem;
}


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

.section__text__p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 3rem auto;
    font-weight: 700;
}

@media (min-width: 768px) {
    .title {
        font-size: 2.5rem;
        /* شاشات كبيرة */
    }
}

@media (max-width: 767px) {
    .title {
        font-size: 1.8rem;
        /* شاشات موبايل */
    }
}



#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS  */

.icon {
    cursor: pointer;
    height: 2rem;
    filter: brightness(0) saturate(100%) invert(0);
}

[data-theme="dark"] .icon {
    filter: brightness(0) saturate(100%) invert(1);
}

.email-icon {
    height: 2.5rem;
    filter: brightness(0) saturate(100%) invert(0);
}

[data-theme="dark"] .email-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

/* BUTTONS  */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
    border-color: var(--text-color);
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-color-1:hover {
    background: var(--text-color-light);
}

.btn-color-2 {
    background: none;
    color: var(--text-color);
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1 rem solid;
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION  */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-me-card {
    display: inline-flex;
    align-items: center;
}

.about-containers-img {
    aspect-ratio: 1;
    width: 10em;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers,
.about-details-container {
    display: flex;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: var(--container-bg);
    border-radius: 2rem;
    border: var(--border-color) 0.1rem solid;
    border-color: var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: fit-content;
}

/* EXPERIENCE SECTION  */

#experience {
    position: relative;
}

.technical-skills-container {
    justify-content: flex-start;
}

.experience-sub-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
    width: 100%;
}

article {
    display: flex;
    width: 100%;
    max-width: 600px;
    justify-content: flex-start;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: none;
}

[data-theme="dark"] article .icon {
    filter: none;
}

article div {
    flex: 1;
    text-align: center;
}

/* PROJECTS SECTION  */

#projects {
    position: relative;
}

.color-container {
    border-color: var(--border-color);
    background: var(--container-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-img {
    border-radius: 2rem;
    width: 100%;
}

.project-title {
    margin: 1rem;
    color: var(--text-color);
}

.project-btn {
    color: var(--text-color);
    border-color: var(--border-color);
}

.project-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* CONTACT  */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: var(--border-color) 0.1rem solid;
    border-color: var(--border-color);
    background: var(--container-bg);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info-container a:hover {
    color: var(--link-hover-color);
}

.contact-icon {
    cursor: default;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
    padding-top: 1rem;
}