*{
    margin: 0;
    box-sizing: border-box;
    padding: 0;
}
:root{
    --bg-color:#1A002B;
    --text-color:#fff;
    --min-color:#3A0CA3;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: sans-serif;

    background: linear-gradient(
        135deg,
        #1A002B,
        #14001b,
        #2d0a45,
        #6c1474
    );
    /* padding: 30px 0; */
}
/* ===== Global Responsive Rules ===== */

img{
    max-width: 100%;
    height: auto;
}

.container,
.services,
.projects,
.about,
.contact{
    width: 100%;
    padding: 20px;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;

}
/* action */
.reveal{
opacity: 0;
transform: translateY(50px);
transition: all 0.5s ease;
}
.reveal.active{
opacity: 1;
transform: translateY(0);
}
/* line */
.section-divider{
    height: 2px;
    width: 80%;
    margin: 60px auto;
    background: linear-gradient(
        to right,
        transparent,
        rgba(110, 52, 116, 0.8),
        rgba(110, 52, 116, 1),
        rgba(110, 52, 116, 0.8),
        transparent
    );
}
/* fixed-sp */
.fixed-sp{
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
    font-size: 40px;
}
/* start header */
header {
    
    background: linear-gradient(
        135deg,
        #1A002B,
        #14001b,
        #2d0a45,
        #6c1474
    );
    padding: 30px 0;
    /* padding-top: 120px; */
}
.container{
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 40px;
}
.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
/* 
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 85%; */
}
.hamburger {
    display: none; 
    font-size: 28px;
    color: white;
    cursor: pointer;
}
.logo{
    color: var(--text-color);
    padding: 10px;
    text-align: center;
    font-size: 20px;
    background-color: #94339b;
    border-radius: 50%;
}
.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.nav li{
    margin: 0 15px;
}
.nav a{
    color: var(--text-color);
    transition: 0.3s;
}
.nav a:hover{
    color:#9b19a7 ;
    transform: scale(1.2);
}
.navbar .btnc{
    background: #94339b;
    color: var(--text-color);
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.navbar .btnc:hover{
    background-color: #7b1d81;
    color: #fff;
    scale: calc(1.1);
}
.container h1{
    color: var(--text-color);
}
.container h1 span{
    color: #7b1d81;
    font-size: 35px;
}
.container h3{
    color: var(--text-color);
    padding: 20px 0;
    font-size: 25px;
}
.container p{
    line-height: 2;
    letter-spacing: 1.2px;
}
.container .content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.content .container-text{
    flex: 1;
}
.content .container-img{
    width: 350px;
}
.content .container-img img{
    width: 100%;
    display: block;
    border-radius: 20px;
}
.container-text p{
    color: var(--text-color);
    margin-bottom: 20px;
}
.container-text .btns{
    display: flex;
    gap: 20px;
}
.container-text .btns a{
    color: var(--text-color);
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid;
    border-radius: 50px;
    transition: 0.3s;
}
.container-text .btns a:hover{
    background-color: var(--text-color);
    color: #130219;
    scale: calc(1.1);
}
.container-text .btns .btnp{
    background: linear-gradient(45deg,#7209B7,#B5179E);
    color: #fff;
    border: none;
    
}


.container .social-icons{
    display: flex;
    gap: 20px;
    padding-left: 70px;
}

.social-icons a{
    color: #fff;
    font-size: 28px;
    padding-right: 5px;
    transition: 0.3s;
}

.social-icons a:hover{
    color: #B5179E;
    transform: translateY(-3px);
}

/* 
.scroll-down{
    position: fixed;
    bottom: 60px;
    right: 700px;
    margin-top: 40px;
    font-size: 24px;
    background: linear-gradient(45deg,#94449a,#eee3ef);
    color: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    text-align: center;
    animation: bounce 1.5s infinite;
}

@keyframes bounce{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(8px); }
} */


.scroll-down{
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 24px;
    background: linear-gradient(45deg,#94449a,#eee3ef);
    color: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    text-align: center;

    animation: bounce 1.5s infinite;
}

@keyframes bounce{
    0%,100%{ 
        transform: translateX(-50%) translateY(0);
    }
    50%{ 
        transform: translateX(-50%) translateY(8px);
    }
}
/* End Header */

/*  Start About */
.about{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
}
.about .about-img{
    width: 35%;
}
.about .about-img img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    -webkit-mask-image: radial-gradient(circle, black 20%, transparent 100%);
    mask-image: radial-gradient(circle, black 20%, transparent 100%);
}
.about .about-text{
    width: 60%;
    
}
.about .about-text h3{
    color: var(--text-color);
    padding-bottom: 20px;
    font-size: 40px;
}
.about .about-text p{
    color: #a288a4;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.about .about-text .abcon{
    padding: 10px 20px;
    color: var(--text-color);
    margin: 70px ;
    background: linear-gradient(45deg,#7209B7,#B5179E);
    border: none;
    border-radius: 20px;
}
/* .about .about-text a:hover{
    color: #130219;
    scale: 1.1;
} */

.about .about-text a{
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.about .about-text a:hover{
    color: #130219;
    transform: scale(1.1);
}
/*  End About */
/* start skills */
.skills{
    padding: 20px 50px;
}
.skills h2{
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
    font-size: 35px;
}
.skills .hard-skills{
    /* display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 في الصف */
    gap: 20px;
    color: white;
}
.hard-skills .box-skill{
    /* width: 22%; */
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
}
.box-skill i{
    color: #7209B7;
    font-size: 30px;
    padding-bottom: 10px;
}

.hard-skills .box-skill:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 35px rgba(114, 9, 183, 0.6);
    border: 1px solid rgba(114, 9, 183, 0.6);
}

.box-skill:hover i {
    transform: scale(1.2);
    transition: 0.3s;
}
.box-skill .icolor{
    color: #c77dff;
}
/* end skills */
/* start service */
.services{
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-bottom: 70px;
}
.services .service-card{
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    height: 100%;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
    background-color: #1b0422;
}
.service-card:hover{
    transform: translateY(-10px);
    /* box-shadow: 0 15px 50px rgba(114,9,183,0.4); */
    box-shadow: 
    0 20px 40px rgba(114, 9, 183, 0.6),
    0 0 25px rgba(114, 9, 183, 0.4);
    border-color: #7209B7;
    /* background-color: #88288f; */
}
.service-card i{
    text-align: center;
    color: #c77dff;
    font-size: 35px;
    padding: 10px 0;
}
.service-card:hover i{
    transform: scale(1.2);
    transition: 0.3s;
}
.service-card h3{
    color: var(--text-color);
    font-size: 20px;
    padding: 20px;
    margin-bottom: 10px;
}
.service-card p{
    color: #a288a4;
    font-size: 16px;
    line-height: 1.6;
}
/* end service */
/* start projects */
.projects{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    width: 80%;
    margin: auto;
    
}
.project-card{
    background-color: #17001d;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    transition: 0.3s ease;
}
.project-card:hover{
    background-color: #38083b;
    transform: scale(1.04);
}
.project-card .project-img{
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
}
.project-card .project-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card h2{
    color: var(--text-color);
    padding: 20px;

}
.project-card p{
    color: #b995bc;
    padding: 20px;
}
.pr-btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.project-card a{
    display: inline-block;
    margin: 20px;
    padding: 10px;
    border: 1px solid ;
    border-radius: 8px;
    /* color: #3b2241; */
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
    align-self: flex-start;
    background-color: #7b1d81;
    list-style: none;
}
.project-card a:hover{
    background-color: #fff;
    color: #3b2241;
    scale: 1.1;
}

/* end projects */
/* start contact */
.contact{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    padding-bottom: 30px;
}
.hh2 h2{
    font-size: 36px;
    line-height: 1.3;
    color: white;
}
.hh2 h2 span{
    background: linear-gradient(45deg,#7209B7,#C77DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-form input,
.contact-form textarea{
    padding: 18px 150px;
    border-radius: 10px;
    /* border: 2px solid rgba(199,125,255,0.3);
    background: rgba(255,255,255,0.05); */

    border: 2px solid transparent;   /* مهم جدًا */
    background: rgba(255,255,255,0.05);
    
    color: white;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus{
    /* border-color: #7209B7;
    box-shadow: 0 0 15px rgba(114,9,183,0.4); */
    background: 
        linear-gradient(#17001d, #17001d) padding-box,
        linear-gradient(45deg, #7209B7, #B5179E, #C77DFF) border-box;

    border: 2px solid transparent;
}
.contact-form button{
    padding: 12px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(45deg,#7209B7,#B5179E);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.contact-form button:hover{
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(114,9,183,0.5);
}
.contact-form h3{
    color: var(--text-color);
}
/* end contact */

.bottom-nav{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.5);
    padding: 15px 30px;
    border-radius: 50px;

    display: flex;
    gap: 25px;

    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.bottom-nav a{
    color: white;
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
}

.bottom-nav a:hover{
    transform: scale(1.2);
}
.bottom-nav a.active{
    background: #7b1d81;
    color: black;
}

/* responsev */

@media (max-width: 767px){

/* ===== Navbar ===== */
.nav{
    display: none;
}

.navbar{
    padding: 15px;
}

.navbar .btnc{
    padding: 8px 18px;
    font-size: 14px;
}
@media (max-width: 767px) {

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .logo {
        order: 1;
    }

    .hamburger {
        order: 2;
        display: block; 
        font-size: 28px;
        color: white;
        cursor: pointer;
        z-index: 9999;   
        position: relative; 
        margin: 0 20px;  
    }

    .btnc {
        order: 3;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: rgba(26, 0, 43, 0.95);
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        border-radius: 10px;
        padding: 20px;
        z-index: 999;
    }

    .nav li {
        margin: 15px 0;
    }

    .nav.active {
        display: flex;
    }
}

/* ===== Hero Section ===== */
.container .content{
    flex-direction: column;
    text-align: center;
}

.container-text .btns{
    flex-direction: column;
}

.container-text .btns a{
    width: 100%;
    text-align: center;
}

.container .container-img{
    width: 80%;
}

/* Social icons */
.container .social-icons{
    justify-content: center;
    padding-left: 0;
}

/* ===== About ===== */
.about{
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.about .about-img,
.about .about-text{
    width: 100%;
}

/* ===== Skills ===== */
.skills{
    padding: 20px;
}

.skills .hard-skills{
    grid-template-columns: repeat(2,1fr);
}

/* ===== Services ===== */
.services{
    width: 100%;
    grid-template-columns: 1fr;
}

/* ===== Projects ===== */
.projects{
    width: 100%;
    grid-template-columns: 1fr;
}

/* ===== Contact ===== */
.contact{
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.contact-form input,
.contact-form textarea{
    padding: 12px 20px;
    width: 100%;
}

/* ===== Bottom Nav ===== */
.bottom-nav{
    padding: 12px 20px;
    gap: 15px;
}

.scroll-down{
    left: 50%;
}
}




@media (min-width:768px) and (max-width:1023px){

/* Hero */
.container .content{
    flex-direction: row;
}

/* Skills */
.skills .hard-skills{
    grid-template-columns: repeat(3,1fr);
}

/* Services */
.services{
    grid-template-columns: repeat(2,1fr);
}

/* Projects */
.projects{
    grid-template-columns: repeat(2,1fr);
}

/* Contact */
.contact{
    flex-direction: column;
    text-align: center;
}

}



@media (min-width:1024px){

.skills .hard-skills{
    grid-template-columns: repeat(4,1fr);
}

.services{
    grid-template-columns: repeat(3,1fr);
}

.projects{
    grid-template-columns: repeat(3,1fr);
}

.contact{
    flex-direction: row;
}

}