*{
    padding: 0;
    margin: 0;
}

html { scroll-behavior: smooth; }

section { 
  scroll-margin-top: 90px;
}
/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a; /* Light background color */
}


/* NAVBAR */


.navbar {
  background-color:#111;
  padding: 10px 0;         
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .nav-link {
  color: #e5e5e5;
  font-size: 18px;
  transition: color .2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #00ffcc;
}
.navbar-dark .navbar-nav .nav-link {
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00ffcc;
  transition: width .25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link:focus::after {
  width: 100%;
}

/* البراند */
.navbar-brand.left-nav,
.navbar-brand.left-nav:hover {
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}

/* تحسين زر الهامبرجر */
.navbar-dark .navbar-toggler {
  border-color: rgba(255,255,255,.25);
}


/* Section Styles */
section {
    padding: 60px 0;
}

h1, h2, h3 {
    color: #343a40; /* Dark color for headings */
}
img{
      width: 230px;
      height: 230px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #00ffcc;
      box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
      margin-bottom: 40px;
}
img:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 20, 16, 0.5);
}

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

/* Home Section */
#home {
    color: white;
    padding: 100px 0; /* Extra padding for emphasis */
          min-height: 100vh;

}

#home h1 {
    margin-bottom: 35px;
    font-size: 40px;
}

#home p {
    margin-bottom: 35px;
    font-size: 25px;
}
#home a{
    margin-left: 50px;
    margin-right: 50px;
    background-color: #054c3e;
    font-size: 26px;
    padding: 18px 35px;
    border-radius: 25px;
    margin-bottom: 40px;
}

#home a:hover {
    transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(1, 186, 149, 0.773);
}


@media only screen and (max-width:992px){
    #home{
        height: fit-content;
    }
    @media (max-width: 768px) {
  #home a {
    display: block;
    margin: 10px auto;
  }
}
    
}


/* About Section */
#about  {
    background-color: var(--secondary-bg);
    margin-bottom: 6rem;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 30px;
    position: relative;
    background-image: radial-gradient(circle at right top, #001f19, transparent 70%);
    padding: 30px 70px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #015947;
    border-image: initial;
    overflow: hidden;
}

#about h2{
    font-size: 40px;
    color: #e5e5e5;
    margin-bottom: 20px;

}
#about P
{
    font-size: 20px;
    color: #e5e5e576;
    line-height: 1.8;
    letter-spacing: 1;
}
#about:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}

/* Skills Section */

#skills {
background-color: var(--secondary-bg);
    margin-bottom: 6rem;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 30px;
    position: relative;
    background-image: radial-gradient(circle at right top, #001f19, transparent 70%);
    padding: 30px 70px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #015947;
    border-image: initial;
    overflow: hidden;

}

#skills {
  text-align: center;
  color: white;
  background-color: #111;
  padding: 50px 20px;
}



#skills h2 {
    color: #e5e5e5;
  font-size: 60px;
  margin-bottom: 20px;
  border-bottom: 2px solid#015947;
  display: inline-block;
  padding-bottom: 5px;
}

#skills h3 {
  margin-top: 30px;
  color: #01a181;
  border-bottom: 2px solid #015947;
  display: inline-block;
  padding-bottom: 5px;
}
#skills:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}

.stack-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.stack-icons img {
  background: #1a1a1a;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.stack-icons img:hover {
  transform: scale(1.1);
}

/* Projects Section */
#projects {
    background-color: var(--secondary-bg);
    margin-bottom: 6rem;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 30px;
    position: relative;
    background-image: radial-gradient(circle at right top, #001f19, transparent 70%);
    padding: 30px 70px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #015947;
    border-image: initial;
    overflow: hidden;
}
#projects:hover{
   transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}
@media only screen and (max-width:768px){
    #projects{
        padding: 30px 20px;
    }
  
}



#projects h2
{
    color: #e5e5e5;
    font-size: 60px;
} 

.project
{
    
    background-color: var(--secondary-bg);
    margin-bottom: 6rem;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 30px;
    position: relative;
    background-image: radial-gradient(circle at right top, #001f19, transparent 70%);
    padding: 40px 30px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #015947;
    border-image: initial;
    overflow: hidden;
}


.project h3{
    margin-top: 30px;
  color: #01a181;
  border-bottom: 2px solid #015947;
  display: inline-block;
  padding-bottom: 5px;
}
.project p
{
font-size: 15px;
    color: #e5e5e576;
    line-height: 1.8;
    letter-spacing: 1;
}

.project a
{
   margin-left: 10px;
    background-color: #00382d;
    font-size:15px;
    padding: 18px 35px;
    border-radius: 25px;
    margin-bottom: 10px; 
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}


/* Contact Section */
#contact-me {
    background-color: var(--secondary-bg);
    margin-bottom: 6rem;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 30px;
    position: relative;
    background-image: radial-gradient(circle at right top, #001f19, transparent 70%);
    padding: 40px 30px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #015947;
    border-image: initial;
    overflow: hidden;
}

#contact-me:hover {
   transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}

#contact-me h2 {
    color: #e5e5e5;
    font-size: 60px;
    margin-bottom: 40px;
}

#contact-me h3 {
    margin-top: 30px;
  color: #01a181;
  border-bottom: 2px solid #015947;
  display: inline-block;
  padding-bottom: 5px;
    
}

#contact-me p{
    font-size: 15px;
    color: #e5e5e576;
    line-height: 1.8;
    letter-spacing: 1;
    
}

.contact-card{
  background-color: #111;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #018066;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
  margin-bottom: 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}



.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}

.contact-card i {
  color: #00ffcc;
  margin-bottom: 15px;
}

.contact-card h3 {
  color: #01a181;
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-card p {
  color: #e5e5e5b3;
  font-size: 15px;
}

.contact-card a {
  color: #00ffcc;
  text-decoration: none;
}

.contact-card a:hover {
  color: #01a181;
  text-decoration: underline;
}

#contact {
  width: fit-content;
  background-color: #111;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #018066;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
  margin-bottom: 30px;
  margin-top: 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media only screen and (max-width:768px){
    #contact{
        width: 100%;
    }
  
}

#contact form {
  display: flex;
  flex-direction: column;
}

#contact input, 
#contact textarea {
  color: white;
  margin: 20px;
  background-color: #111;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #018066;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  font-size: 25px;
}

#contact button {
 background-color: #018066;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  font-size: 25px;
}

#contact button:hover {
  text-decoration: none;
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.848);
}

/* Animation */
.contact-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}



@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
footer {
    background-color: #343a40; /* Dark background for footer */
    color: white;
    padding: 20px 0;
}

footer a {
    color: white; /* White color for social media links */
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    color: #007bff; /* Change color on hover */
}

/* Button Styles */
.btn-primary {
    background-color: #007bff; /* Primary button color */
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.btn-secondary {
    background-color: #6c757d; /* Secondary button color */
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268; /* Darker shade on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem; /* Smaller heading on mobile */
    }

    #home p {
        font-size: 1.2rem; /* Smaller paragraph on mobile */
    }
}


/* animation */
#home img, 
#home h1, 
#home p, 
#home a {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s forwards;
}

#home img { animation-delay: .5s; }
#home h1 { animation-delay: 0.6s; }
#home p { animation-delay: 0.7s; }
#home a:nth-child(1) { animation-delay: 0.8s; }
#home a:nth-child(2) { animation-delay: 1s; }
#home a:nth-child(3) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

