@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+Pinstripe:wght@400&family=Open+Sans:wght@300;800&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body {
    background-color: #f3f4f642;
    color: #f3f4f6;
    user-select: none;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#home {
    background: url(/photos/lee-campbell-DtDlVpy-vvQ-unsplash.jpg) no-repeat center center fixed;
    background-size: cover;
}

main {
    display: block;
}

article {
    text-align: center;
    color: #b5b5b5;
    font: bold 20px/1 system-ui;
}

article h2,
article p {
    opacity: 0;
    animation: fade-in 10s forwards;
    margin: 0;
}

article:nth-of-type(3) p {
    font-size: 60px;
    color: #c51;
}

@media screen and (min-width: 600px) {
    article:nth-of-type(3) p::before,
    article:nth-of-type(3) p::after {
        content: "";
        position: absolute;
        height: 100vh;
        width: 100vw;
        border: 2px solid transparent;
        border-image: linear-gradient(135deg, #b5b5b5, transparent) 1;
    }
}

@keyframes fade-in {
    100% {
        opacity: 1;
    }
}

#thecontant ul li a {
    font-size: 20px;
    color: #f3f4f6;
    padding: 8px;
    margin: 0 10px;
    background: linear-gradient(to right, #f3f4f6, #ffffff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    font-weight: bold;
    animation: glow 6s infinite alternate ease-in-out;
}

#thecontant ul li a:hover {
    background: linear-gradient(to right, #f3f4f642, #ffffff);
}

#thelogo, #thecontant ul, #thenav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

nav {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(6px) saturate(150%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.137);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.043);
    padding: 20px;
    width: 250px;
    text-align: center;
    color: #f3f4f6;
    font-weight: bold;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    display: none;
}

nav.active {
    right: 0;
    display: block;
}

h3 {
    font-size: 27px;
    color: #ffffff;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    #thenav {
        display: block;
    }
    #thecontant {
        display: none;
    }
    nav {
        width: 90%;
        padding: 10px;
    }
}

#thetext {
    display: flex;
    height: 500px;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#thetext h2 {
    font-size: 70px;
    color: #ffffff;
}

#thetext p {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* تحسين تصميم الصور */
#theimg {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+Pinstripe:ital@0;1&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');



* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body {
    background-color: #f3f4f642;
    margin: 0;
    touch-action: none;
    overflow: hidden;
    display: grid;
    user-select: none;
    color: #f3f4f6;
}

canvas {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#home {
    background: url(photos/lee-campbell-DtDlVpy-vvQ-unsplash.jpg) no-repeat center center fixed;
    background-size: cover;
}


main {
    display: grid;
    

}

main > * {
    grid-row: 1;
    grid-column: 1;
}

article {
    position: relative;
    align-self: center;
    justify-self: center;
    width: 18ch;
    font: bold 20px/1 system-ui;
    color: #b5b5b5;
    text-rendering: optimizeLegibility;
}

article > h2 {
    font-size: 2em;
    opacity: 0;
    animation: fade-in 10s forwards 0s;
    margin: 0;
    line-height: 1.6;
}

article > p {
    opacity: 0;
    animation: fade-in 10s forwards 4s;
    margin: 0;
    line-height: 1.2;
}

article > p::before,
article > p::after {
    opacity: 0;
    animation: fade-in 10s forwards 8s;
}

article:nth-of-type(2) {
    margin-left: 5ch;
    text-align: right;
}

article:nth-of-type(3) {
    margin-left: 15ch;
}

article:nth-of-type(3) > h2 {
    text-align: center;
    line-height: 100%;
    margin: 0;
}

article:nth-of-type(3) > p {
    position: relative;
    font-size: 60px;
    line-height: 100%;
    margin: 0;
    color: #c51;
}

@media screen and (min-width: 600px) {
    article:nth-of-type(3) > p::before,
    article:nth-of-type(3) > p::after {
        content: "";
        position: absolute;
        height: 100vh;
        width: 100vw;
        border-top: 2px solid transparent;
        border-left: 2px solid transparent;
        border-image: linear-gradient(315deg, #b5b5b5, transparent) 1;
        left: -80px;
        top: -65px;
    }

    article:nth-of-type(3) > p::after {
        border-bottom: 2px solid transparent;
        border-right: 2px solid transparent;
        border-image: linear-gradient(135deg, #b5b5b5, transparent) 1;
        right: -80px;
        bottom: -55px;
    }
}

.hide > *,
.hide > *::before,
.hide > *::after {
    animation: fade-out 1s forwards 0s;
}

.hidden {
    visibility: hidden;
}

@keyframes fade-in {
    80% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}



#thecontant ul li a  {
    font-size: medium;
    color: #f3f4f6;
    padding: 8px;
    margin-left: 10px;
    margin-right: 10px;
    background: linear-gradient(to right, #f3f4f6, #ffffff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    animation: glow 6s infinite alternate ease-in-out;
}

#thecontant ul li a:hover {
    background: linear-gradient(to right, #f3f4f642, #ffffff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    animation: glow 6s infinite alternate ease-in-out;
}

#thelogo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#thecontant ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

#thenav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    color: #f3f4f6;
    font-size: large;
}

#thenavs {
    display: none;
}

nav {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(6px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.137);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.043);
    padding: 20px;
    width: 300px;
    text-align: center;
    color: #f3f4f6;
    font-weight: bold;
    display: none;
    margin: 0;
    z-index: 100;
    position: fixed;
}

#thecontantnav ul li a,
#thelogonav {
    font-size: medium;
    color: #f3f4f6;
    padding: 8px;
    margin-left: 10px;
    margin-right: 10px;
}

#thecontantnav ul li a  {
    background: linear-gradient(to right, #f3f4f6, #ffffff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    animation: glow 6s infinite alternate ease-in-out;
    margin: 6px 0px;
}

#thecontantnav ul li a:hover {
    background: linear-gradient(to right, #f3f4f642, #ffffff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    animation: glow 6s infinite alternate ease-in-out;
}

h3 {
    font-size: 27px;
    color: #ffffff;
}

#thenav {
    display: none;
    font-size: 24px;
    color: #f3f4f6;
    cursor: pointer;
}

nav {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(6px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.137);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.043);
    padding: 20px;
    width: 250px;
    text-align: center;
    color: #f3f4f6;
    font-weight: bold;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    display: none;
}

nav.active {
    right: 0;
    display: block;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    #thenav {
        display: block;
    }

    #thecontant {
        display: none;
    }
}

#thetext {
    display: flex;
    height: 500px;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;

}

#thetext h2 {
    font-size: 70px;
    color: rgb(255, 255, 255);
    padding: 0px;
    margin: 0;
}
#thetext p {
    color: rgb(255, 255, 255);
    padding: 0;
    margin: 0;
}

/* Open Sans - Variable Font */
.open-sans-light {
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 300; /* خفيف */
    font-style: normal;
  }
  
  .open-sans-bold {
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 800; /* عريض */
    font-style: normal;
  }
  
  /* Alumni Sans Pinstripe - Regular */
  .alumni-sans-pinstripe-regular {
    font-family: "Alumni Sans Pinstripe", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .alumni-sans-pinstripe-regular-italic {
    font-family: "Alumni Sans Pinstripe", serif;
    font-weight: 400;
    font-style: italic;
  }


  #thetext p { 
    font-weight:600;
    font-size: 20px;
  }
  #theimg {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-between;
  }
  




/* Media Queries for different screen sizes */

/* Small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    header {
        height: 50px;
    }

    #thenavs {
        display: block;
        margin-top: 45px;
    }

    #thecontant ul li a {
        font-size: 16px;
        padding: 5px;
        margin-left: 5px;
        margin-right: 5px;
    }
    #thetext h2 {
        font-size: 44px;
        color: rgb(255, 255, 255);
        padding: 0px;
        margin: 0;
    }
    #thetext p {
        font-size: 10px;
        color: rgb(255, 255, 255);
        padding: 0px;
        margin: 0;
    }

    nav {
        width: 90%;
        padding: 10px;
    }

    h3 {
        font-size: 20px;
    }
}

/* Medium devices (tablets, 600px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    header {
        height: 60px;
    }

    #thecontant ul li a {
        font-size: 18px;
        padding: 6px;
        margin-left: 8px;
        margin-right: 8px;
    }
    #thetext h2 {
        font-size: 50px;
        color: rgb(255, 255, 255);
        padding: 0px;
        margin: 0;
    }

    #thenavs {
        display: block;
        margin-top: 38px;
    }

    nav {
        width: 80%;
        padding: 15px;
    }

    h3 {
        font-size: 22px;
    }
}

/* Large devices (laptops/desktops, 768px to 992px) */
@media only screen and (min-width: 769px) and (max-width: 992px) {
    header {
        height: 70px;
    }

    nav {
        width: 70%;
        padding: 20px;
    }

    h3 {
        font-size: 25px;
    }
}

/* Extra large devices (large laptops and desktops, 992px to 1200px) */
@media only screen and (min-width: 993px) and (max-width: 1200px) {
    header {
        height: 80px;
    }

    #thecontant ul li a {
        font-size: 22px;
        padding: 10px;
        margin-left: 12px;
        margin-right: 12px;
    }

    nav {
        width: 60%;
        padding: 25px;
    }

    h3 {
        font-size: 27px;
    }
}

/* Extra extra large devices (larger desktops, 1200px and up) */
@media only screen and (min-width: 1201px) {
    header {
        height: 90px;
    }

    #thecontant ul li a {
        font-size: 24px;
        padding: 12px;
        margin-left: 15px;
        margin-right: 15px;
    }

    nav {
        width: 50%;
        padding: 30px;
    }

    h3 {
        font-size: 30px;
    }
}



/* إزالة display: grid من main */
main {
    display: block;
}

/* إضافة أنماط للأقسام الجديدة */
.section-content {
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f3f4f6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.project-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #f3f4f6;
}

.project-card p {
    font-size: 1em;
    color: #f3f4f6;
}

/* التأكد من أن الأقسام الجديدة تتوافق مع التصميم الحالي */
#projects, #about, #contact {
    margin-top: 50px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 50px;
}


body {
    background-color: #f3f4f642;
    margin: 0;
    overflow: auto; /* تغيير overflow حسب الحاجة */
    user-select: none;
    color: #f3f4f6;
    display: block; /* أو حذف الخاصية إذا لم تكن مطلوبة */
}
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
}
/* إزالة أو تعديل القاعدة التي تضع جميع العناصر في نفس الخلية */
body > * {
    grid-column: 1;
}






body {
    background-color: #f3f4f642;
    margin: 0;
    overflow: auto;
    user-select: none;
    color: #f3f4f6;
    display: grid;
    grid-template-areas: 
        "header"
        "main"
        "footer";
    grid-template-rows: auto 1fr auto;
}







header {
    grid-area: header;
}

main {
    grid-area: main;
}

footer {
    grid-area: footer;
}



footer {
    background: rgba(14, 14, 14, 0.941);

}
main {
    background: rgba(255, 255, 255, 0.144); /* شفافية لتأثير الزجاج */
    backdrop-filter: blur(1px); /* تأثير الضبابية */
    -webkit-backdrop-filter: blur(10px); /* دعم Safari */
    
}
header {
    position: absolute; /* تثبيت الهيدر */
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); /* شفافية خفيفة */
    backdrop-filter: blur(10px); /* تأثير الضبابية */
    -webkit-backdrop-filter: blur(10px); /* دعم للمتصفحات القديمة */
}

#projects {
    margin: 0;
    box-shadow: 0px 0px 10px 10px rgba(90, 95, 127, 0.42);
}



























/* تحسين عام للاستجابة */
body {
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    color: #f3f4f6;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.section-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f3f4f6;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.projects-grid, .experience-container, .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card:hover, .experience-card:hover, .skill-category:hover {
    transition: transform 0.3s;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(120, 120, 120, 0.331);
}

.project-card h3, .experience-card h3, .skill-category h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #f3f4f6;
    font-weight: 500;
}

.project-card p, .experience-card p, .skill-category ul {
    font-size: 1em;
    color: #f3f4f6;
    line-height: 1.3;
}

.project-link, .submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    color: #fff;
    text-decoration: none;
    background-color: rgba(85, 85, 85, 0.8);
    box-shadow: 0px 0px 10px 5px rgb(54, 54, 54);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-link:hover, .submit-button:hover {
    background-color: rgba(102, 102, 102, 0.9);
    transform: scale(1.05);
}

.project-link i, .submit-button i {
    font-size: 1.2em;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #f3f4f6;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(43, 39, 78, 0.256);
}

.submit-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    background-color: rgba(85, 85, 85, 0.8);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: rgba(102, 102, 102, 0.9);
    transform: scale(1.05);
}

.section-content {
    position: relative;
    overflow: hidden;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

#projects, #experience, #skills, #about {
    height: auto;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.906), rgba(84, 84, 84, 0.9));
    box-shadow: 0px 0px 10px 10px rgba(214, 214, 214, 0.189);
}

#about {
    height: auto;
    padding: 50px 20px;
}

#skills {
    background: url('photos/harsh-kumar-HTKgGgP9a-Y-unsplash.jpg') repeat;
    background-size: cover;
}

.project-card, .skill-category {
    height: auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.projects-container, .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.project-card, .experience-card, .skill-category {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(41, 46, 58, 0.854), rgba(114, 124, 136, 0.9));
    backdrop-filter: blur(3px) saturate(80%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.119);
    box-shadow: 0 4px 10px rgba(43, 54, 69, 0.929);
    text-align: center;
    color: #f3f4f6;
    font-weight: bold;
    padding: 20px;
}

#h2pro {
    text-align: center;
    margin: 30px;
    font-size: 40px;
}

footer {
    margin: 0;
    border: 0px;
}



/* استعلامات الوسائط للاستجابة */
@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }

    .projects-grid, .experience-container, .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .project-card, .skill-category {
        max-width: 100%;
    }

    #h2pro {
        font-size: 30px;
    }

    .project-link, .submit-button {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8em;
    }

    .projects-grid, .experience-container, .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    #h2pro {
        font-size: 24px;
    }

    .project-link, .submit-button {
        font-size: 0.9em;
    }
}

#tele {
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
}
#tele:hover{
    color: #ffffff9f;
}

body {
    display: block;
    overflow: auto;

}
body {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    color: #fff;
    min-height: 100vh;
}

html, body {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
    display: block !important;
    position: relative !important;
}
main {
    display: block !important;
}
#home {
    min-height: 100vh !important; 
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

nav {
    max-width: 300px !important; /* لا تتجاوز 300px */
    height: 80vh !important; /* لا تأخذ كل الشاشة */
}



