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

html{
  scroll-behavior:smooth;
}

body{
  background:#f4f4f4;
  transition:0.3s;
}

/* Navbar */
nav{
  padding:15px 10%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:fixed;
  width:100%;
  top:0;
  transition:0.3s;
  z-index:1000;
}

nav.scrolled{
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

nav ul{
  list-style:none;
  display:flex;
  gap:20px;
}

nav a{
  text-decoration:none;
  color:#333;
  font-weight:500;
}

#darkToggle{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
}

/* Hero */
.hero{
  height:100vh;
  background:linear-gradient(135deg,#3a7bd5,#00d2ff);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:white;
  padding-top:80px;
}

.hero h1{
  font-size:34px;
  margin-bottom:10px;
}

.hero p{
  margin-bottom:20px;
}

.btn{
  background:white;
  color:#3a7bd5;
  padding:10px 25px;
  border-radius:30px;
  text-decoration:none;
  font-weight:bold;
  transition:0.3s;
}

.btn:hover{
  background:#eee;
}

/* Sections */
section{
  padding:80px 10%;
  text-align:center;
}

#projects{
  background:#f9f9f9;
}

.projects-container{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:20px;
  margin-top:30px;
}

.card{
  background:white;
  padding:25px;
  border-radius:15px;
  width:250px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
  transition:0.3s;
}

.card:hover{
  transform:translateY(-5px);
}

/* Contact */
form{
  max-width:400px;
  margin:30px auto 0;
  display:flex;
  flex-direction:column;
  gap:15px;
}

input, textarea{
  padding:12px;
  border-radius:10px;
  border:1px solid #ddd;
  outline:none;
}

button{
  padding:12px;
  border:none;
  border-radius:30px;
  background:linear-gradient(135deg,#3a7bd5,#00d2ff);
  color:white;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

button:hover{
  opacity:0.9;
}

/* Footer */
footer{
  background:#222;
  color:white;
  text-align:center;
  padding:15px;
  margin-top:40px;
}

/* WhatsApp Floating Button PRO */
.whatsapp{
  position:fixed;
  bottom:90px;
  right:20px;
  background:#25D366;
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  box-shadow:0 8px 25px rgba(0,0,0,0.4);
  transition:0.3s;
  z-index:9999;
  animation:float 3s ease-in-out infinite, pulse 2s infinite;
}

.whatsapp:hover{
  transform:scale(1.2);
}

/* حركة طلوع ونزول */
@keyframes float{
  0%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
  100%{ transform:translateY(0); }
}

/* تأثير Pulse */
@keyframes pulse{
  0%{
    box-shadow:0 0 0 0 rgba(37,211,102,0.7);
  }
  70%{
    box-shadow:0 0 0 20px rgba(37,211,102,0);
  }
  100%{
    box-shadow:0 0 0 0 rgba(37,211,102,0);
  }
}

/* Dark Mode */
body.dark{
  background:#111;
  color:white;
}

body.dark nav.scrolled{
  background:#1a1a1a;
}

body.dark .card{
  background:#1e1e1e;
  color:white;
}

body.dark input,
body.dark textarea{
  background:#222;
  color:white;
  border:1px solid #444;
}

body.dark footer{
  background:#000;
}