*{
    box-sizing: border-box;
    word-wrap: break-word;
}

/* body */

body{
    background: #f7f4f8;
    color: #2b2b2b;
    padding-top: 70px;
}

/* navbar */

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: none;
}


.navbar-toggler:focus{
  border: none !important;
  outline: none !important;
   box-shadow: none !important;
}

.navbar-toggler::before {
  content: "☰";
  font-size: 24px;
  color: #E8A6B8;
}

.nav-link{
    transition: 0.3s;
    color: #2B2B2B !important;
    font-weight: 500;
    margin: 10px 0;
    text-align: center;
}

.nav-link:hover{
    color: #E8A6B8;
    /* border-bottom: 2px solid #E8A6B8; */
    background-color: #e8a6b8;
    border-radius: 10px;
    color: white !important;
}

.nav-link.active{
    color: #A7A3D9 !important;
    
}


.glass-nav{
    background: rgba(247, 244, 248, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8a6b8;
}

.nav-button{
    background: #E8A6B8;
    border: none;
    transition: 0.3s;
}

.nav-button:hover{
    background: #a7a3d9;
    transform: scale(1.05);
    color: white;
}

.navbar-brand{
    color: #E8A6B8;
    font-weight: 700;
    /* letter-spacing: 2px; */
    transition: 0.3s;
}

.navbar-brand:hover{
    color: #A7A3D9;
    transform: scale(1.1);
}
/* hero */
#hero{
    padding-top: 120px;
}

#hero h1{
    font-weight: 700;

}

.h-two{
    background: #E8A6B8;
    display: inline;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    color: white;
    padding: 0 10px;
}
#hero button{
    background: #E8A6B8;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    transition: 0.3s;
    color: white;
}

#hero button:hover{
    background: #A7A3D9;
    transform: translateY(-3px);
}

/* about */

#About{
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
}

#About button{
    background: #E8A6B8;
    border: none;
    padding: 7px 18px;
    border-radius: 10px;
    transition: 0.3s;
    color: white;
}

#About button:hover{
    background: #A7A3D9;
    transform: translateY(-3px);
}

/* #Skills i {
  font-size: 40px;
  color: #A7A3D9;
  transition: 0.3s;
}

#Skills i:hover {
  color: #E8A6B8;
  transform: scale(1.2);
} */

.skill-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.skill-card {
  background: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(232,166,184,0.25);
  background: linear-gradient(135deg, #E8A6B8, #A7A3D9);
  color: white;
}

.skill-card i {
  font-size: 28px;
  color: #A7A3D9;
  margin-bottom: 8px;
  transition: 0.3s;
}

.skill-card:hover i {
  color: white;
  transform: scale(1.2);
}

.skill-card span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .skill-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skill-icons {
    grid-template-columns: repeat(1, 1fr);
  }
}


form {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}



.image-box{
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 20px;
}

/* عکس */
.image-box img{
    display: block;
    width: 300px;
    border-radius: 20px;
    transition: 0.5s;
}

/* نور متحرک */
.image-box::before{
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.25);
    transform: rotate(25deg);
    animation: shine 3s infinite;
}

/* Glow */
.image-box::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,204,255,0.5);
    opacity: 0;
    transition: 0.5s;
}

.image-box:hover img{
    transform: scale(1.05);
}

.image-box:hover::after{
    opacity: 1;
}

@keyframes shine{
    100%{
        left: 130%;
    }
}





.portfolio-box {
    position: relative;
    border-radius: 10px;
    /* box-shadow: 0 0 1rem var(); */
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    transition: 0.3s;
}

.portfolio-box:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(167, 163, 217, 0.4);
}
.portfolio-box img{
    width: 100%;
    transition: .5s ease;
}
.portfolio-box:hover img{
    transform: scale(1.1);
}
.portfolio-box .portfolio-layer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.411), #E8A6B8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 10px;
    transform: translateY(100%);
    transition: .5s ease;
}
.portfolio-box:hover .portfolio-layer{
    transform: translateY(0);
}

.portfolio-layer a{
    color: white;
}

/* experiences */

.exper {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  border-left: 4px solid #E8A6B8;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#Experiences .exper:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(167,163,217,0.25);
  border-left: 4px solid #A7A3D9;
}

#Experiences .exper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(232,166,184,0.08), transparent);
  transition: 0.5s;
}

.exper:hover::before {
    left: 100%;
}

#Experiences h3 {
  font-weight: 600;
  color: #2B2B2B;
  transition: 0.3s;
}

#Experiences h3:hover {
  color: #E8A6B8;
}

#Experiences span {
  font-size: 14px;
  color: #A7A3D9;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 8px;
}

#Experiences i.fa-calendar-days {
  color: #E8A6B8;
  margin-right: 6px;
  transition: 0.3s;
}

#Experiences i.fa-calendar-days:hover {
  color: #A7A3D9;
  transform: rotate(10deg);
}

#Experiences p {
  color: #555;
  line-height: 1.7;
}

#Experiences .row {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

#Experiences .row:nth-child(1) { animation-delay: 0.1s; }
#Experiences .row:nth-child(2) { animation-delay: 0.2s; }
#Experiences .row:nth-child(3) { animation-delay: 0.3s; }
#Experiences .row:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* contact */

#Contact button{
    background: #E8A6B8;
    border: none;
    padding: 7px 18px;
    border-radius: 10px;
    transition: 0.3s;
    color: white;
}

#Contact button:hover{
    background: #A7A3D9;
    transform: translateY(-3px);
}

@media (max-width: 786px) {
  .form{
    width: 90% !important;
  }
}