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

* {
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

     body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;

  background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover; /* ensures full coverage */
  background-position: center; /* centers the gradient */
  overflow-x: hidden;
}


/* NAVBAR */
nav {
  width: 100%;
  height: 10vh;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav.show {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo {
  color: black;
  font-size: 2rem;
  font-weight: bolder;
}

.logo span {
  color: rgb(150,100,40);
  text-shadow: 0 0 2px rgba(150,100,40,0.4);
}

.hamburg, .cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: black;
  font-size: 2rem;
  display: none;
}

.nav-container .links {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-container .links a {
  position: relative;
  font-size: 1.2rem;
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s linear;
}

.nav-container .links a::before {
  position: absolute;
  content: "";
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: rgb(150,100,40);
  transition: 0.2s linear;
}

.nav-container .links a:hover::before {
  width: 100%;
}

.nav-container .contact-btn {
  background-color: transparent;
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid rgb(150,100,40);
  transition: 0.2s linear;
  cursor: pointer;
}

.nav-container .contact-btn a {
  color: rgb(150,100,40);
  transition: 0.3s linear;
  text-decoration: none;
  display: block;
}

.nav-container .contact-btn:hover {
  background-color: rgb(150,100,40);
}

.nav-container .contact-btn:hover a {
  color: white !important;
}

.nav-container .links a:hover {
  color: rgb(150,100,40);
}

.dropdown {
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: 0.2s linear;
}

.dropdown .links {
  display: flex;
  flex-direction: column;
}

.dropdown .links a {
  color: black;
  display: flex;
  text-decoration: none;
  justify-content: center;
  padding: 15px 0;
  align-items: center;
  transition: 0.2s linear;
  font-weight: 500;
}

.dropdown .links a:hover {
  background-color: rgb(150,100,40);
  color: white;
}

section {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: 0;
  padding-top: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.main-container {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 4rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.main-container .image {
  width: min(400px, 90vw);
  height: min(400px, 90vw);
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-right: 3rem; /* المسافة بين الصورة والنص */
}

.main-container .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-container .content {
  color: black;
  flex: 1;
  max-width: 500px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
}

.content .btn {
  margin: 15px 0;
}

.content .btn a {
  text-decoration: none;
}

.content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.content h1 span {
  color: rgb(150,100,40);
  text-shadow: 0 0 3px rgba(150,100,40,0.5);
}

.content .typewriter {
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 15px;
}

.content .typewriter span {
  color: rgb(150,100,40);
  text-shadow: 0 0 2px rgba(150,100,40,0.4);
  position: relative;
  transition: 0.3s linear;
}

.typewriter span::before {
  content: "Data Engineer";
  animation: none;
}

.content p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: 15px 0;
  line-height: 1.6;
}

.social-links {
  margin: 20px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(45deg, rgb(150,100,40), rgb(180,130,70));
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(150,100,40,0.3);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(150,100,40,0.5);
  background: linear-gradient(45deg, rgb(180,130,70), rgb(150,100,40));
}

.social-links a:nth-child(2):hover {
  background: linear-gradient(45deg, #0077b5, #005885);
  box-shadow: 0 8px 25px rgba(0,119,181,0.4);
}

.social-links a:nth-child(3):hover {
  background: linear-gradient(45deg, #25d366, #1faa52);
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.content button {
  width: auto;
  min-width: 150px;
  height: 50px;
  margin: 30px 0;
  background-color: rgb(150,100,40);
  color: white;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.2s linear;
  cursor: pointer;
  padding: 0 20px;
}

.content button:hover {
  transform: scale(1.1);
  color: rgb(150,100,40);
  border: 2px solid rgb(150,100,40);
  background-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(150,100,40,0.6);
}

/* About */
.about {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
      
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

.about-content {
  flex: 1;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 300px;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: rgb(150,100,40);
  margin-bottom: 20px;
}

.about-content p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
  flex-wrap: wrap;
}

.about-buttons button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: rgb(150,100,40);
  border: 2px solid rgb(150,100,40);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(150,100,40,0.6);
}

.about-buttons button:hover {
  transform: scale(1.05);
  background: rgb(150,100,40);
  color: white;
  box-shadow: 0 0 25px rgba(150,100,40,0.8);
}

.about-buttons .alt-btn {
  background: rgb(150,100,40);
  color: white;
  border: 2px solid rgb(150,100,40);
  box-shadow: 0 0 20px rgba(150,100,40,0.6);
}

.about-buttons .alt-btn:hover {
  background: transparent;
  color: rgb(150,100,40);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(150,100,40,0.8);
}

.about-video {
  flex: 1;
    max-width: 100%;

  align-self: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Enhanced Skills Section with Glassmorphism */
.skills-section {
  width: 100%;
  max-width: 100vw;
  padding: 80px 40px;
      
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(150,100,40,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(150,100,40,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(150,100,40,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.skills-container {
  width: 100%;
  max-width: 1200px;
  color: #333;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.skills-container h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(45deg, rgb(150,100,40), rgb(100,70,30));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(150,100,40,0.2);
}

.main-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
   overflow: hidden;
}

.skill-box {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: inherit;
  display: block;
}

.skill-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.6s;
}

.skill-box:hover::before {
  left: 100%;
}

.skill-box:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 20px 60px rgba(150, 100, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(150, 100, 40, 0.3);
  border: 1px solid rgba(150, 100, 40, 0.4);
}

.skill-box:active {
  transform: translateY(-5px) scale(1.01);
}

.skill-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(150,100,40,0.2), rgba(150,100,40,0.1));
  border-radius: 50%;
  font-size: 2rem;
  color: rgb(150,100,40);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(150,100,40,0.2);
}

.skill-box:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(150,100,40,0.3), rgba(150,100,40,0.2));
  box-shadow: 0 8px 25px rgba(150,100,40,0.3);
}

.skill-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgb(100,70,30);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.skill-box:hover h3 {
  color: rgb(150,100,40);
  transform: scale(1.05);
}

.skill-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.8);
  margin: 0;
  transition: all 0.3s ease;
}

.skill-box:hover p {
  color: rgba(0, 0, 0, 0.9);
}

/* Click Animation */
.skill-box:active {
  animation: clickPulse 0.3s ease;
}
.skills-section {
  overflow-x: hidden;
}
@keyframes clickPulse {
  0% { transform: translateY(-10px) scale(1.02); }
  50% { transform: translateY(-8px) scale(1.05); }
  100% { transform: translateY(-10px) scale(1.02); }
}
/* Projects Section Styling */
.projects-section {
    width: 100%;
    max-width: 100vw;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(150,100,40,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(150,100,40,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(150,100,40,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.projects-container {
    width: 100%;
    max-width: 1200px;
    color: #333;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.projects-container h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(45deg, rgb(150,100,40), rgb(100,70,30));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(150,100,40,0.2);
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    overflow: hidden;
}

.project-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, background 0.3s;
}

.project-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.project-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #386098;
}

.project-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.project-content a {
    align-self: flex-end;
    color: #333;
    transition: color 0.3s;
}

.project-content a:hover {
    transform: scale(1.3);
    color: #00acee;
    text-shadow: 0 0 10px #00acee, 0 0 20px #00acee, 0 0 30px #00acee;
}

/* Services Section */
.services-section {
  width: 100%;
  max-width: 100vw;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(150,100,40,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(150,100,40,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(150,100,40,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.services-container {
  width: 100%;
  max-width: 1400px;
  color: #333;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.services-container h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(45deg, rgb(150,100,40), rgb(100,70,30));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(150,100,40,0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
  align-items: start;
}

.service-category {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-align: left;
}

.service-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.6s;
}

.service-category:hover::before {
  left: 100%;
}

.service-category:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 20px 60px rgba(150, 100, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(150, 100, 40, 0.3);
  border: 1px solid rgba(150, 100, 40, 0.4);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(150, 100, 40, 0.2);
}

.category-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(150,100,40,0.2), rgba(150,100,40,0.1));
  border-radius: 50%;
  font-size: 1.5rem;
  color: rgb(150,100,40);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(150,100,40,0.2);
}

.service-category:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(150,100,40,0.3), rgba(150,100,40,0.2));
  box-shadow: 0 8px 25px rgba(150,100,40,0.3);
}

.category-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(100,70,30);
  margin: 0;
  transition: all 0.3s ease;
}

.service-category:hover .category-header h3 {
  color: rgb(150,100,40);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.service-list li:hover {
  background: rgba(150, 100, 40, 0.1);
  border-left: 3px solid rgb(150, 100, 40);
  transform: translateX(5px);
}

.service-list li:last-child {
  margin-bottom: 0;
}

.service-list li i {
  color: rgb(150, 100, 40);
  font-size: 1rem;
  margin-top: 2px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.service-list li:hover i {
  color: rgb(120, 80, 30);
  transform: scale(1.2);
}

.service-list li span {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.5;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-list li:hover span {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-link:hover .project-box {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px rgba(150,100,40,0.3);
}

.github-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #333;
    transition: color 0.3s;
}

.project-link:hover .github-link {
    color: #00acee;
}

/* Add this CSS to your existing style.css file */

/* Special styling for image-based social icon */
.social-links a.image-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(45deg, rgb(150,100,40), rgb(180,130,70));
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(150,100,40,0.3);
  position: relative;
  overflow: hidden;
  padding: 0; /* Remove any padding */
}

.social-links a.image-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.social-links a.image-icon:hover::before {
  left: 100%;
}

.social-links a.image-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(150,100,40,0.5);
  background: linear-gradient(45deg, rgb(180,130,70), rgb(150,100,40));
}

.social-links a.image-icon img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(0) invert(1); /* Makes the image white to match other icons */
}

/* Alternative: If you want the image to fill the entire circle */
.social-links a.image-icon-full {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(150,100,40,0.3);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.social-links a.image-icon-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
  z-index: 2;
}

.social-links a.image-icon-full:hover::before {
  left: 100%;
}

.social-links a.image-icon-full:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(150,100,40,0.5);
}

.social-links a.image-icon-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .social-links a.image-icon,
  .social-links a.image-icon-full {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .social-links a.image-icon img {
    width: 20px;
    height: 20px;
  }
}
/* Responsive Design for Services */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
/* CONTACT SECTION STYLING */
.contact-hero {
  width: 100%;
  min-height: 100vh;
  padding: 80px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(254,215,173,0.9));
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
}

.contact-hero-container {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 300px;
  color: #333;
}

.contact-info h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgb(150,100,40);
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(150,100,40,0.4);
}

.contact-info .subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 15px;
  color: rgb(100,70,30);
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: rgba(0,0,0,0.85);
}

/* Contact Methods */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.25);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(150,100,40,0.2);
}

.contact-method i {
  font-size: 1.8rem;
  color: rgb(150,100,40);
  min-width: 40px;
  text-align: center;
}

.contact-method .method-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: rgb(100,70,30);
}

.contact-method .method-info p a {
  text-decoration: none;
  color: rgb(150,100,40);
  transition: 0.3s ease;
}

.contact-method:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(150,100,40,0.4);
}

.contact-method:hover i,
.contact-method:hover .method-info h3,
.contact-method:hover .method-info p a {
  color: rgb(180,130,70);
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.contact-form h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: rgb(150,100,40);
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 5px rgba(150,100,40,0.4);
}

.contact-form .success-message {
  display: none;
  margin-bottom: 20px;
  color: rgb(0,120,0);
  font-weight: 600;
  text-align: center;
}

/* Form Fields */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: rgb(100,70,30);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(150,100,40,0.4);
  background: rgba(255,255,255,0.8);
  outline: none;
  font-size: 1rem;
  color: #333;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgb(150,100,40);
  box-shadow: 0 0 10px rgba(150,100,40,0.3);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit Button */
.submit-btn {
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: rgb(150,100,40);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background: transparent;
  color: rgb(150,100,40);
  border: 2px solid rgb(150,100,40);
  box-shadow: 0 0 20px rgba(150,100,40,0.6);
  transform: scale(1.05);
}
.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-hero-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .form-row {
    flex-direction: column;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 20px;
  }
}


@media (max-width: 768px) {
  .services-section {
    padding: 60px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-category {
    padding: 25px 20px;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .category-header h3 {
    font-size: 1.3rem;
  }

  .service-list li {
    padding: 10px 12px;
  }

  .service-list li span {
    font-size: 0.95rem;
  }
}
/* Responsive Design for Projects */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    max-width: 100%;
  }

  .nav-container .logo {
    font-size: 1.5rem;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg, .cancel {
    display: block;
  }

  .cancel {
    color: black;
  }

  section {
    min-height: auto;
    padding: 20px 0;
    padding-top: 15vh;
  }

   .main-container {
    flex-direction: column;
    padding: 20px;
    gap: 2rem;
    text-align: center;
    margin-top: 0;
  }

  .main-container .image {
    width: min(300px, 80vw); /* أكبر شوي من قبل */
    height: min(300px, 80vw);
    margin-right: 0; /* إزالة الهامش الأفقي */
    margin-bottom: 1.5rem; /* مسافة أسفل الصورة */
    order: 1;
  }
  .main-container .content {
    max-width: 100%;
    order: 2;
  }

  .content button {
    width: 100%;
    max-width: 200px;
  }

  .social-links {
    justify-content: center;
  }

  .social-links a {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.3rem;
  }

  .about {
    padding: 60px 20px;
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-content {
    min-width: 100%;
    text-align: center;
  }

  .about-video {
    max-width: 100%;
  }

  .about-buttons {
    justify-content: center;
  }

  .skills-section {
    padding: 60px 20px;
  }

  .main-skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-box {
    padding: 25px 20px;
  }


}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .main-skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
  
  .footer {
            width: 100%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(254, 215, 173, 0.3));
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-top: 1px solid rgba(150, 100, 40, 0.2);
            padding: 40px 0 20px;
            margin-top: 50px;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(150,100,40,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(150,100,40,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(150,100,40,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            pointer-events: none;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
            position: relative;
            z-index: 1;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

        /* Logo/Name Section */
        .footer-brand {
            text-align: center;
        }

        .footer-brand h3 {
            font-size: 2rem;
            font-weight: 700;
            color: rgb(150, 100, 40);
            margin: 0 0 10px 0;
            text-shadow: 0 2px 4px rgba(150, 100, 40, 0.3);
        }

        .footer-brand p {
            font-size: 1.1rem;
            color: rgba(0, 0, 0, 0.8);
            margin: 0;
            font-weight: 500;
        }

        /* Social Links */
        .footer-social {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-social a {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(150, 100, 40, 0.3);
            border-radius: 50%;
            color: rgb(150, 100, 40);
            font-size: 1.3rem;
            transition: all 0.3s ease;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(150, 100, 40, 0.2);
        }

        .footer-social a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: 0.5s;
        }

        .footer-social a:hover::before {
            left: 100%;
        }

        .footer-social a:hover {
            transform: translateY(-3px) scale(1.05);
            background: rgba(150, 100, 40, 0.1);
            box-shadow: 0 8px 25px rgba(150, 100, 40, 0.4);
            border-color: rgb(150, 100, 40);
        }

        /* Special hover colors for different platforms */
        .footer-social a[href*="linkedin"]:hover {
            color: #0077b5;
            border-color: #0077b5;
            box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
        }

        .footer-social a[href*="github"]:hover {
            color: #333;
            border-color: #333;
            box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
        }

        .footer-social a[href*="whatsapp"]:hover {
            color: #25d366;
            border-color: #25d366;
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
        }

        .footer-social a[href*="upwork"]:hover {
            color: #14a800;
            border-color: #14a800;
            box-shadow: 0 8px 25px rgba(20, 168, 0, 0.4);
        }

        .footer-social a[href*="khamsat"]:hover {
            color: #ff6b35;
            border-color: #ff6b35;
            box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
        }

        .footer-social a[href*="mostakel"]:hover {
            color: #2196f3;
            border-color: #2196f3;
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
        }

        /* Divider */
        .footer-divider {
            width: 100%;
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(150, 100, 40, 0.3), transparent);
            margin: 20px 0;
        }

        /* Copyright */
        .footer-copyright {
            text-align: center;
            color: rgba(0, 0, 0, 0.7);
            font-size: 0.95rem;
            font-weight: 500;
        }

        .footer-copyright span {
            color: rgb(150, 100, 40);
            font-weight: 600;
        }

        /* Quick Links (Optional) */
        .footer-links {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            justify-content: center;
            margin: 20px 0;
        }

        .footer-links a {
            color: rgba(0, 0, 0, 0.8);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 2px;
            background: rgb(150, 100, 40);
            transition: width 0.3s ease;
        }

        .footer-links a:hover::after {
            width: 100%;
        }

        .footer-links a:hover {
            color: rgb(150, 100, 40);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .footer-container {
                padding: 0 20px;
            }

            .footer-brand h3 {
                font-size: 1.7rem;
            }

            .footer-brand p {
                font-size: 1rem;
            }

            .footer-social {
                gap: 15px;
            }

            .footer-social a {
                width: 45px;
                height: 45px;
                font-size: 1.2rem;
            }

            .footer-links {
                gap: 20px;
                flex-direction: column;
                align-items: center;
            }

            .footer-copyright {
                font-size: 0.9rem;
                line-height: 1.5;
            }
        }

        /* Demo body styling to show the footer in context */
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
            font-family: 'Arial', sans-serif;
            display: flex;
            flex-direction: column;
        }

        .demo-content {
            flex: 1;
            padding: 50px 20px;
            text-align: center;
            color: #333;
        }

        .demo-content h1 {
            color: rgb(150, 100, 40);
            margin-bottom: 20px;
        }